#! /bin/sh
txt=$(xclip -o) && curl -k https://prowl.weks.net/publicapi/add -d apikey=xxxxxx -d application="FromPC" -d description="$txt"https://prowl.weks.net/publicapi/add?apikey=API&priority=0&application=APP&event=EVENT&description=MESSAGE

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_"
It's so cool having my iMac tell me whenever it starts up. Thanks for your help! (the Prowl service is very cool too!) 
brainbarker wrote:Hi,
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?
http://prowl.weks.net/publicapi/add?apikey=xxx&application=xxx&event=xxx&description=xxx&priority=xxxyzf600 wrote:All you really need is to fetch this url:
- Code: Select all
http://prowl.weks.net/publicapi/add?apikey=xxx&application=xxx&event=xxx&description=xxx&priority=xxx
#!/bin/bash
# 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
APIKEY=YOURAPIKEY
# Script starts
PRIOR=$1
APPR=$2
EVENTR=$3
FIRST=$@
shift
SECND=$@
shift
THIRD=$@
shift
FINAL=$@
if [ $PRIOR = "-v" ] ; then
echo "usage: $0 prio applicationname event description"
echo "prio: 2 - -2 (standard prowler)"
else
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
fibobpatterson 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.rb30 12,23 * * * /home/mtbcalendar/adsense_prowler.rbGoogle AdSense - Info
Today's haul is $1.04
Monthly haul is $23.73

Users browsing this forum: No registered users