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.
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=“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.
[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.
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:
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.)