Skip to content

Instantly share code, notes, and snippets.

@unapersona
Created August 10, 2012 09:26
Show Gist options
  • Star 25 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unapersona/3312877 to your computer and use it in GitHub Desktop.
Save unapersona/3312877 to your computer and use it in GitHub Desktop.
Pushover notification on Transmission file completed
#!/bin/sh
curl -s \
-F "token=APP_TOKEN" \
-F "user=USER_TOKEN" \
-F "title=Download Finished" \
-F "message=$TR_TORRENT_NAME: $TR_TIME_LOCALTIME" \
http://api.pushover.net/1/messages > /dev/null
@WiteWulf
Copy link

WiteWulf commented May 9, 2018

Thanks for this, working perfectly on my QNAP

@pnotz17
Copy link

pnotz17 commented Apr 21, 2020

i just want transmission to play a sound i did exactly what the above stated and i didn't work any help??

@PN62323424
Copy link

PN62323424 commented Oct 2, 2021

#!/bin/bash
curl -s -F "token=aa4q6fcg7fuhjjkebhfw2picfzqf3t"
-F "user=u6sxap9vv7x41sg51612um8ua8zv3b"
-F "title=Torrent Done"
-F "message=$TR_TORRENT_NAME has been downloaded successfully on $TR_TIME_LOCALTIME"
https://api.pushover.net/1/messages.json

It took me a long time to find the solution, above is the script I am currently using if you need it. Another thing, remember to use notpad+ to convert the document format to unix first, and then change the encoding to UTF-8, otherwise it will prompt "! /bin/bash: not found", because if you change the .txt file to .sh file directly, it will not be executed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment