txt=$(xclip -o) && curl -k https://prowl.weks.net/publicapi/add -d apikey=xxxxxx -d application="FromPC" -d description="$txt"
blaktornado wrote:Is there any way to send messages to Prowl through Applescript?
do shell script "curl -s -k https://prowl.weks.net/publicapi/add -F apikey=_APIKEY_ -F application=_APP_ -F description=_MESSAGE_"
I'd like to be able to send notifications from my router (Linksys WRT54GL running Tomato), maybe for an unknown WiFi client connecting, or reboots. Unfortunately, space is tight and there is no curl or perl. I might be able to roll my own busybox with curl and make a new firmware image, but that's probably more time that I have to devote to it. Does anyone have straight shell code (ash, in this case), that can send the notifications?
yzf600 wrote:All you really need is to fetch this url:
- Code: Select all
# Script is for prowler for iPhone and mISC
# Written by Basn <basn at lan2k.org>
# Copy and Modify as you wish, ugly code yes ;)
# API KEY
# Script starts
if [ $PRIOR = "-v" ] ; then
echo "usage: $0 prio applicationname event description"
echo "prio: 2 - -2 (standard prowler)"
curl -s https://prowl.weks.net/publicapi/add -F apikey=$APIKEY -F priority=$PRIOR -F application=$APPR -F event="$EVENTR" -F description="$FINAL" >> /dev/null
bobpatterson wrote:just wondering what people are doing with custom notifications with prowl.
$ gem install mechanize prowly
#### CUSTOMIZE THE VARIABLES BELOW
ADSENSE_LOGIN = "ENTER YOUR ADSENSE EMAIL LOGIN HERE"
ADSENSE_PASS = "ENTER YOUR ADSENSE PASSWORD HERE"
PROWL_API_KEY = "ENTER YOUR PROWL API HERE"
### DON'T CHANGE ANYTHING BELOW HERE
$ chmod +x adsense_prowler.rb
30 12,23 * * * /home/mtbcalendar/adsense_prowler.rb
Google AdSense - Info
Today's haul is $1.04
Monthly haul is $23.73
Users browsing this forum: No registered users