Page 1 of 1

rtorrent + prowl

Posted: Mon Nov 28, 2011 8:25 pm
by charlie00
Hi!

I´m trying to get my linux box to send me a notification when a download is completed.

In .rtorrent.rc I have the following line

Code: Select all

system.method.set_key = event.download.finished,notify_me,"execute=~/sendNotification.sh,$d.get_name="
And I have a script sendNotification.sh with the following lines.

Code: Select all

#!/bin/sh
API_KEY="MYKEY"

SUBJECT="Download completed"

MESSAGE=$1
curl -d "apikey=$API_KEY&application=rTorrent&event=$SUBJECT&description=$MESSAGE" https://api.prowlapp.com/publicapi/add
Anyone got any idea what´s wrong with the code?

Re: rtorrent + prowl

Posted: Mon Nov 28, 2011 8:49 pm
by zac
Are you getting an error? The following curl command works for me:

Code: Select all

curl https://prowlapp.com/publicapi/add -F apikey=myAPIKey -F application=test -F event=test2 -F description=test3

Re: rtorrent + prowl

Posted: Mon Nov 28, 2011 9:03 pm
by charlie00
That curl line works for me aswell, but I can't get any notification from rtorrent with my script for some reason..any idea?

Edit: Nevermind, It was a typo *of course* . The code works :-)

Re: rtorrent + prowl

Posted: Sun Sep 02, 2012 5:12 pm
by dkjf
where is the "typo", i am trying the same, but I can't find the mistake in your code :(