We have moved at community.getvera.com

Author Topic: HOWTO: Get notifications via Prowl on your iPhone  (Read 51097 times)

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
HOWTO: Get notifications via Prowl on your iPhone
« on: September 29, 2010, 06:01:27 pm »
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:

Code: [Select]
-- 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).
« Last Edit: October 11, 2011, 05:11:37 am by futzle »

Offline santakrooz

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +0/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #1 on: September 29, 2010, 07:39:18 pm »
@futzle - Thanks for the tip! I just added it to my Kwikset unlock scene, worked first time.
VeraLite UI7 fw v1.7.830 / Kwikset Deadbolt / Express Controls EZMotion HSM100x3 / Monster IWD600Sx4 / Monster AVL300 / Wayne Dalton KEP-IV / Wayne Dalton WDHA-12R / Wayne Dalton WDRR-372R / GE 45603 Dimmers / Nest Thermostat

Offline shady

  • Hero Member
  • *****
  • Posts: 1331
  • Karma: +11/-0
  • This monkey knows his Window Coverings!
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #2 on: September 30, 2010, 01:53:40 am »
I'd part with the $3 for the app if I had an iPhone, thanks for the tip!
Vera3 1.5.346, Schlage (3)DB (2)Lever, Kwikset (1)Lever, RCS TZ43 Thermo, (2) Vizia RZI06-1LX 600W Dimmers, (17) Monster (Leviton) Dimmers (6) Monster (Leviton) IWC Scene Controllers (1) Etherrain-8, (3) HSM 100's (1)GE 3-Way set

Offline santakrooz

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +0/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #3 on: September 30, 2010, 03:15:27 am »
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://code.google.com/p/growlforandroid/
http://growl.info/
http://www.growlforwindows.com/gfw/
VeraLite UI7 fw v1.7.830 / Kwikset Deadbolt / Express Controls EZMotion HSM100x3 / Monster IWD600Sx4 / Monster AVL300 / Wayne Dalton KEP-IV / Wayne Dalton WDHA-12R / Wayne Dalton WDRR-372R / GE 45603 Dimmers / Nest Thermostat

Offline fall-line

  • Full Member
  • ***
  • Posts: 247
  • Karma: +1/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #4 on: September 30, 2010, 03:07:46 pm »
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.

Offline m0jon

  • Full Member
  • ***
  • Posts: 113
  • Karma: +0/-0
  • @m0jon
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #5 on: September 30, 2010, 03:45:25 pm »
Excellent TIP, thanks a lot it worked first time and now adding it to all events.

Cheers

Offline fall-line

  • Full Member
  • ***
  • Posts: 247
  • Karma: +1/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #6 on: September 30, 2010, 07:30:10 pm »
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.


Offline Boyo

  • Full Member
  • ***
  • Posts: 180
  • Karma: +0/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #7 on: October 03, 2010, 11:37:08 pm »
What would be the best way to pass the name/id of who opened a lock to this?
Vera UI4 1.1.1183; Schalge Link Door Handle; HA18WD 3-Way/Single-Pole Switch x2; WDHA-12R - Wireless Gateway Module; Trane Thermostat; Retired: WDTC-20 - Z-Wave Enabled Thermostat

MotoElement

  • Guest
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #8 on: January 02, 2011, 03:28:36 am »
Great info thanks!!



Offline BrianAz

  • Jr. Member
  • **
  • Posts: 50
  • Karma: +0/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #9 on: January 02, 2011, 08:41:18 pm »
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.

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

http://growlwebbridge.codeplex.com/

- Brian

MotoElement

  • Guest
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #10 on: January 05, 2011, 01:13:01 am »
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:

Code: [Select]
-- 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.)

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?

Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #11 on: January 05, 2011, 04:41:22 am »
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.

Offline kdiggz

  • Sr. Newbie
  • *
  • Posts: 24
  • Karma: +0/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #12 on: January 05, 2011, 02:19:39 pm »
very cool.  will implement this into my scenes

Offline mbairhead

  • Hero Member
  • *****
  • Posts: 516
  • Karma: +5/-2
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #13 on: January 05, 2011, 03:12:39 pm »
Thanks for doing this, just tested and it's very cool.

Offline LeonNabuurs

  • Newbie
  • *
  • Posts: 14
  • Karma: +0/-0
Re: HOWTO: Get notifications via Prowl on your iPhone
« Reply #14 on: January 06, 2011, 03:02:27 pm »
Works great!
How can I use text strings that contain spaces?
Any help welcome