We have moved at community.getvera.com

Author Topic: Growl Notification for Android?  (Read 13219 times)

Offline akashk

  • Full Member
  • ***
  • Posts: 123
  • Karma: +0/-0
Growl Notification for Android?
« on: June 20, 2011, 09:55:10 pm »
I recently switched from an iPhone to an Android phone. The only thing I am missing sorely is the ability to see my HRDS1 notifications (used as a garage door monitor) that were being routed through Growl for windows and Prowl for iPhone.
Are any of the Android users using a similar setup for Growl? Since there is no Prowl for Android, I was looking at Notifo (Notifo.com). Not sure how to proceed further. Anyone with a bit more knowledge on this? The code in UI4 that I was using within a scene was:

luup.inet.wget("https://prowl.weks.net/publicapi/add?apikey="MY API KEY"&application=Vera&event=OPENED&description=Garage+Door+Opened&priority=-1")

I think I just need to replace the "prowl.weks.net" part with something from the notifo side. Not sure what though......This is where the experts kick in 8) 8)


Offline futzle

  • Beta Testers
  • Master Member
  • *****
  • Posts: 3260
  • Karma: +192/-9
Re: Growl Notification for Android?
« Reply #1 on: June 21, 2011, 05:34:24 am »
It's harder than that (sorry).

I went and looked at the API for Notifo.  The "send notification" call is sent over HTTP POST, whereas Prowl (and luup.inet.wget) use HTTP GET.

To do an HTTP POST from Lua, you'd have to construct the HTTP request yourself using LuaSocket calls.  Instead of one line, it might be more like ten.

Offline akashk

  • Full Member
  • ***
  • Posts: 123
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #2 on: June 21, 2011, 07:40:13 am »
It's harder than that (sorry).

I went and looked at the API for Notifo.  The "send notification" call is sent over HTTP POST, whereas Prowl (and luup.inet.wget) use HTTP GET.

To do an HTTP POST from Lua, you'd have to construct the HTTP request yourself using LuaSocket calls.  Instead of one line, it might be more like ten.

Thanks for the effort @futzle. I can take a stab at it but am totally illiterate in any kind of programming. Someone a bit more knowledgeable than me would have to take this on. I am sure this would be good for all the android users as the notifications on the iPhone using this method was almost instantaneous - much more efficient than the built in notification system within Vera.

Offline mikea9999

  • Sr. Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #3 on: June 21, 2011, 09:08:32 am »
Take a look at Notify my Android -

http://nma.usk.bz/

Works just like Prowl for iPhone.  Same syntax to send the messages.  Works great.


Offline akashk

  • Full Member
  • ***
  • Posts: 123
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #4 on: June 21, 2011, 01:35:38 pm »
Take a look at Notify my Android -

http://nma.usk.bz/

Works just like Prowl for iPhone.  Same syntax to send the messages.  Works great.


Looks promising. Although the primary reason I was hoping for the notifo solution was it also has notifications for google voice, gmail etc. All-in-one solution.

Offline deimos_anomaly

  • Sr. Newbie
  • *
  • Posts: 28
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #5 on: June 21, 2011, 02:01:22 pm »
Give veralert a try, with a bit of setup it works great. Infact while typing this I got a notification that my front door was open. It even gives you the option to use five different alerts.

Offline akashk

  • Full Member
  • ***
  • Posts: 123
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #6 on: June 21, 2011, 02:15:20 pm »
Give veralert a try, with a bit of setup it works great. Infact while typing this I got a notification that my front door was open. It even gives you the option to use five different alerts.
Will do once I get back home. Thanks.

Offline picatchoume

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #7 on: August 09, 2011, 07:29:14 pm »
Take a look at Notify my Android -

http://nma.usk.bz/

Works just like Prowl for iPhone.  Same syntax to send the messages.  Works great.



i don't find the good syntax with notify my android

luup.inet.wget(“https://www.notifymyandroid.com/publicapi/notify?apikey=*****&application=Vera&event=doors&description=Quelqu+un+vient+de+franchir+la+porte+d+entree″)
return true

Offline mikea9999

  • Sr. Newbie
  • *
  • Posts: 37
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #8 on: August 09, 2011, 10:15:18 pm »
Here is an example that is working for me:

luup.inet.wget("https://www.notifymyandroid.com/publicapi/notify?apikey=**mykey**&application=954&event=Garage+Door&description=Opened&priority=-1")

It looks like you do not have &priority=X at the end
« Last Edit: August 09, 2011, 10:16:51 pm by mikea9999 »

Offline gilles

  • Full Member
  • ***
  • Posts: 106
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #9 on: August 10, 2011, 02:34:45 am »
Hi all,

@ akashk,

There is a growl client on android. Don't know if it's usable but you can have a watch.

edit:

you can also use an e-mail serveur to send you e-mail with the SND plugin for vera.

I use it for now and it works great.

« Last Edit: August 10, 2011, 02:37:32 am by gilles »

Offline picatchoume

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Growl Notification for Android?
« Reply #10 on: August 10, 2011, 03:41:40 am »
Here is an example that is working for me:

luup.inet.wget("https://www.notifymyandroid.com/publicapi/notify?apikey=**mykey**&application=954&event=Garage+Door&description=Opened&priority=-1")

It looks like you do not have &priority=X at the end


It's ok, thanks