HOWTO: Get notifications via Prowl on your iPhone

I use Prowl, an iPhone app which displays push notifications. Prowl has an HTTP API which lets programs running on your computer, or Vera, transmit push notifications to your phone.

Getting Vera to inform you of an event just requires adding the following Luup code to the event that triggers a scene. Create the scene event just as you normally would (here, “Alarm system is armed”), then put this code into the Luup event box:

-- Inform me when the alarm system is armed. luup.inet.wget("http://www.prowlapp.com/publicapi/add?apikey=0123456789012345678901234567890123456789&application=Vera&event=Armed&description=Alarm+Armed&priority=-1") return true

Just change the 40-digit API key to the one for your Prowl account.

Edit 2011-10-11: Changed the URL to http://www.prowlapp.com. SSL https://www.prowlapp.com also works (maybe).

@futzle - Thanks for the tip! I just added it to my Kwikset unlock scene, worked first time.

I’d part with the $3 for the app if I had an iPhone, thanks for the tip!

there are also free growl clients for Windows, Mac, and Android

http://growl.info/
http://www.growlforwindows.com/gfw/

Very cool, thanks for the tip(s). I’ve been using growl on my mac for years, but was unaware of the mobile client. I’ll check this out.

Excellent TIP, thanks a lot it worked first time and now adding it to all events.

Cheers

It seems that using the Prowl API can really only allow you to send notifications directly to your Prowl instance on your phone, which I guess makes sense. Is there an existing way to do something like this but have it update your local network growl instance(s) as well. It’d be pretty cool to be sitting at your computer doing some work or what not, and see a growl notification popup when a motion sensor gets triggered or someone opens your back door.

I’m sure I can write a simple Perl or PHP script to be hosted on my apache server that would take the place of the API and then call the growl-notify utility… but no sense doing it if it’s already been done.

What would be the best way to pass the name/id of who opened a lock to this?

Great info thanks!!

[quote=“fall-line, post:7, topic:166686”]It seems that using the Prowl API can really only allow you to send notifications directly to your Prowl instance on your phone, which I guess makes sense. Is there an existing way to do something like this but have it update your local network growl instance(s) as well. It’d be pretty cool to be sitting at your computer doing some work or what not, and see a growl notification popup when a motion sensor gets triggered or someone opens your back door.

I’m sure I can write a simple Perl or PHP script to be hosted on my apache server that would take the place of the API and then call the growl-notify utility… but no sense doing it if it’s already been done.[/quote]

I have this working (though it is still VERY rough) in .NET.

http://growlwebbridge.codeplex.com/

  • Brian

[quote=“futzle, post:1, topic:166686”]I use Prowl, an iPhone app which displays push notifications. Prowl has an HTTP API which lets programs running on your computer, or Vera, transmit push notifications to your phone.

Getting Vera to inform you of an event just requires adding the following Luup code to the event that triggers a scene. Create the scene event just as you normally would (here, “Alarm system is armed”), then put this code into the Luup event box:

-- Inform me when the alarm system is armed. luup.inet.wget("https://prowl.weks.net/publicapi/add?apikey=0123456789012345678901234567890123456789&application=Vera&event=Armed&description=Alarm+Armed&priority=-1") return true

Just change the 40-digit API key to the one for your Prowl account.

(Edit: Make more grammaticaller.)[/quote]

This worked perfect, if i wanted it to text two phones (two separate prowl accounts/API) do i just copy twice or do I have to reword anything?

I haven’t tried, but it looks from the Prowl documentation like you can put several 40-character API keys in the one request if you separate them with commas.

very cool. will implement this into my scenes

Thanks for doing this, just tested and it’s very cool.

Works great!
How can I use text strings that contain spaces?
Any help welcome

Use a plus sign. There’s one in the example at the top of this thread. For other characters, see the very good Wikipedia article on Percent-encoding.

Okay, thnx
;D

I try with your example in arm alarm and works perfect, but i wanna set the trigger of the event to be the “breached” one instead of “armed” one, and it DONT works… ive checked the json string of the partition1 before breach the alarm:

Armed: 0, StayArmed: 0, Disarmed: 1, Breached: 0, LastUser: 1, EnablePanic: 1, Configured: 0

and after the breach(armed+trigger a sensor):

Armed: 1, StayArmed: 0, Disarmed: 0, Breached: 1, LastUser: 1, EnablePanic: 1, Configured: 0

and with police panic:

Armed: 0, StayArmed: 0, Disarmed: 1, Breached: 1, LastUser: 1, EnablePanic: 1, Configured: 0

The scene dont invoke the URL to send the notification…

What can be wrong??

I bet it’s the mismatch in the variable name (“Breached” in the I_ files and “Breach” in the D_* and S_* files). Try changing one set of files so that the name matches everywhere.

(The Panic variables aren’t even present, so those would need added code. I plan to move the interface to Partition API 2, so that should take care of it.)

Anyone know how I would do this for a Schlage lever lock? I want it so when a certain code is entered it notifies me?