Created
April 9, 2011 13:09
-
-
Save koma5/911389 to your computer and use it in GitHub Desktop.
send prowl push notifications to your iOS device; requires curl -> for debian based distros # apt-get update && apt-get install curl -y
This file contains hidden or 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 | |
# Usage: ./prowl.sh priority(-2 to 2) app event description | |
# Example: ./prowl.sh 0 "transmission" "torrent has finished" "Coen Brothers Compilation has finised downloading" | |
priority=$1 | |
app=$2 | |
event=$3 | |
description=$4 | |
apikey=fill_in_your_API_key_here | |
if [ $# -ne 4 ]; then | |
echo "Usage: ./prowl.sh priority(-2 to 2) app event description" | |
echo 'Example: ./prowl.sh 0 "transmission" "torrent has finished" "Coen Brothers Compilation has finised downloading"' | |
else | |
curl https://prowl.weks.net/publicapi/add -F apikey=$apikey -F priority=$priority -F application="$app" -F event="$event" -F description="$description" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment