Skip to content

Instantly share code, notes, and snippets.

@koma5
Created April 9, 2011 13:09
Show Gist options
  • Save koma5/911389 to your computer and use it in GitHub Desktop.
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
#! /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