rulex / rtorrent-pushover Goto Github PK
View Code? Open in Web Editor NEWPushes names of finished torrents in rtorrent to your phone
Pushes names of finished torrents in rtorrent to your phone
put this in your rtorrent.rc
method.insert = cfg.pushover.userkey, private|const|string, (cat,"putyouruserkeyhere")
method.insert = cfg.pushover.apitoken, private|const|string, (cat,"putyourapp_tokenhere")
method.set_key = event.download.finished,notify_me,"execute=~/to/your/scripts/folder/rtorrent-pushover.sh,$d.get_name=,$cfg.pushover.userkey=,$cfg.pushover.apitoken="
rtorrent-pushover.sh (in your scripts folder of each user, or ln -s )
#!/bin/bash
if [ ! -f ~/torrents/log/.rtorrent-pushover.log ];
then
touch ~/torrents/log/.rtorrent-pushover.log
fi
[ $# -lt 3 ] || echo "too few args. 1=$1, 2=$2, 3=$3" >> ~/torrents/log/.rtorrent-pushover.log || exit
# pushover settings
[ $2 <> "" ] || userkey=$2
[ $3 <> "" ] || apitoken=$3
tname=$1
ts=$(date +%s)
# notify-send
if [[ -x $( which notify-send ) ]]; then
notify-send -t 60000 -a rtorrent "${tname}"
fi
# also notify tmux
if [[ -x $( which tmux ) ]]; then
tmux display-message "Torrent: ${tname}"
fi
# pushover
curly=$(curl https://api.pushover.net/1/messages.json -d "token=${apitoken}&user=${userkey}&title=Torrent&message=${tname}×tamp=${ts}")
echo ${ts} ${tname} ${curly} >> ~/torrents/log/.rtorrent-pushover.log
Hi,
Just wanted to correct the amendment on .rtorrent which is supposed to be:
system.method.set_key = event.download.finished,notificationscript,"execute=bash,home/user/rtorrent-pushover.sh,$d.get_name="
notificationscript should be there instead of notify_me.
Now it's working perfectly.
Thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.