-
-
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 |
@threespoons: sign up for pushover and then go to https://pushover.net/ Your token will be displayed on the pushover home page. The name is typically optional, but it is the device name, like "iPhone5"
This didn't work for me. I created an app, my shell script's permissions are 755, and Transmission's settings.json file is in ~/Library/Application Support/Transmission
. Are there supposed to be curly braces around the two json lines? I've tried with and without.
This feature also appears in the GUI in the Preferences window under Transfers --> Management --> Call Script.
what is the app token?
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.
Can someone tell me where I can find the app token and user token?