Created
August 10, 2012 09:26
-
-
Save unapersona/3312877 to your computer and use it in GitHub Desktop.
Pushover notification on Transmission file completed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#!/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.