rtorrent + prowl

An iPhone client for Growl available on the App Store.
charlie00
Harmless
Posts: 3
Joined: Thu Sep 08, 2011 9:07 am

rtorrent + prowl

Postby charlie00 » Mon Nov 28, 2011 8:25 pm

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?

User avatar
zac
Cocoaforge Admin
Posts: 1518
Joined: Sun Mar 27, 2005 3:19 pm
Contact:

Re: rtorrent + prowl

Postby zac » Mon Nov 28, 2011 8:49 pm

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

charlie00
Harmless
Posts: 3
Joined: Thu Sep 08, 2011 9:07 am

Re: rtorrent + prowl

Postby charlie00 » Mon Nov 28, 2011 9:03 pm

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 :-)

dkjf
Harmless
Posts: 1
Joined: Fri Aug 31, 2012 3:18 pm

Re: rtorrent + prowl

Postby dkjf » Sun Sep 02, 2012 5:12 pm

where is the "typo", i am trying the same, but I can't find the mistake in your code :(


Return to “Prowl”

Who is online

Users browsing this forum: No registered users