transmission-daemon with growl support ?

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
nbcmayhem
Posts: 7
Joined: Thu Nov 01, 2007 8:02 pm

transmission-daemon with growl support ?

Post by nbcmayhem »

i recently switched from rtorrent to transmission-daemon on my headless linux server.
though i came across the idea that the daemon could send notifications to growl... is that already implemented ?

cheers
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: transmission-daemon with growl support ?

Post by lazybones »

I just setup my NAS with the daemon and was thinking exactly the same thing.. Another solution would be if the daemon processed a script or executable when the torrents complete or change state, then it would be easy to add this via a script.
Longinus00
Posts: 137
Joined: Fri Aug 21, 2009 5:46 am

Re: transmission-daemon with growl support ?

Post by Longinus00 »

This could probably be implemented with a cron job, no need to do it in transmission.
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: transmission-daemon with growl support ?

Post by lazybones »

Longinus00 wrote:This could probably be implemented with a cron job, no need to do it in transmission.
That is good and all to say but many of use are not really that good with scripting or linux. How would that work exactly anyway?
Longinus00
Posts: 137
Joined: Fri Aug 21, 2009 5:46 am

Re: transmission-daemon with growl support ?

Post by Longinus00 »

lazybones wrote:That is good and all to say but many of use are not really that good with scripting or linux. How would that work exactly anyway?
I run linux and can't help you with growl but this shell script is a good starting point if you want to write it.
http://forum.transmissionbt.com/viewtop ... f=1&t=9085
The major difference is that you'd have to save the current torrent list and states somewhere so you can compare it each time but you could get around that by just removing torrents after you send out a growl notification.
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: transmission-daemon with growl support ?

Post by lazybones »

That may be possible but hardly seems efficent. If the transmission daemon had the option to call custom scripts and pass parameters you could do far more without the need of diff tables an additional cron jobs.
ajeto
Posts: 2
Joined: Thu Dec 16, 2010 7:29 am

Re: transmission-daemon with growl support ?

Post by ajeto »

Any sollutions for this ?
All I've found is custom build of transmission daemon, which supports adding torrents with notifications:
https://github.com/liesen/transmission-horn
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: transmission-daemon with growl support ?

Post by lazybones »

ajeto wrote:Any sollutions for this ?
All I've found is custom build of transmission daemon, which supports adding torrents with notifications:
https://github.com/liesen/transmission-horn

This thread is old.. Since transmission 2.xx? there has been a option to call a script when a torrent completes.. I already use it to send notifications.
viniciusferrao
Posts: 1
Joined: Tue Dec 28, 2010 4:30 pm

Re: transmission-daemon with growl support ?

Post by viniciusferrao »

@lazybones

Can you post the growl-script please?
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: transmission-daemon with growl support ?

Post by lazybones »

I have been using prowl or boxcar on my iPhone.If I have time I will post the script, never did set up a plain growl one as I found phone notification more useful.
Moe
Posts: 16
Joined: Fri Dec 17, 2010 4:38 am

Re: transmission-daemon with growl support ?

Post by Moe »

I would use the iPhone script. Please post it!
lazybones
Posts: 220
Joined: Sun Jan 24, 2010 12:41 am

Re: transmission-daemon with growl support ?

Post by lazybones »

Moe wrote:I would use the iPhone script. Please post it!
This is a simple one liner for sending a message to prowl.

I enabled the done script with these two lines in my settings.json, note the path to your script may differ. Also note that transmission will wait for the script to complete before doing anything else. Something small like this script should not be a problem however if your script hangs it can be a problem...

Code: Select all

"script-torrent-done-enabled": true,
"script-torrent-done-filename": "/home/.config/transmission-daemon/transmission_complete.sh",
transmission_complete.sh
Note the /opt/bin part for calling curl is because I am running this on a NAS using optware... you probably just need to call curl directly. It is a good idea to test test the curl line from the console first.. the variables will not be there but you can at least test if your phone is getting a notification... Prowl supports priority so I mark my torrent complete notices as -1 you may want to mark them as more important.

Code: Select all

#!/bin/sh
/opt/bin/curl -k https://prowl.weks.net/publicapi/add -F apikey=[replace with your growl API key] -F priority=-1 -F application="Transmission" -F description="$TR_TORRENT_NAME completed on $TR_TIME_LOCALTIME"
mavericksane
Posts: 1
Joined: Mon May 30, 2011 4:12 pm

Re: transmission-daemon with growl support ?

Post by mavericksane »

@lazybones: Thanks very much for posting your solution. I thought I'd post the version I got to work on my DNS-323, which uses the funplug packages to run Transmission 2.31 and Automatic 0.6.5. Automatic includes Prowl support, so I added the following script as transmission-complete.sh, called from Transmission using the changes to settings.json outlined above. Note that the format has changed in the most recent cURL build:

Code: Select all

#!/bin/sh
/bin/curl -k -F apikey=[your Prowl API key here] -F application=Transmission -F event="Download Complete" -F description="$TR_TORRENT_NAME completed on $TR_TIME_LOCALTIME" https://api.prowlapp.com/publicapi/add
I ditched the priority tag as it isn't required by the Prowl API.

Best, Mark
Post Reply