-
-
Save unapersona/3312877 to your computer and use it in GitHub Desktop.
#!/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 |
Works perfectly, and is incredibly simple. Thanks so much!
Where does it get the value for $TR_TORRENT_NAME? env variables?
Works GREAT! :)
you can add this line for custom sound:
-F "sound=cashregister" \
- Where cashregister
is one of the sounds you can find here https://pushover.net/api#sounds
Thanks!
Thanks for this, working perfectly on my QNAP
i just want transmission to play a sound i did exactly what the above stated and i didn't work any help??
#!/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.
what is the app token?