New Android App for IMMEDIATE ALERTING from Vera.

[quote=“mcvflorin, post:60, topic:167861”]Hi Kyle,

Can you try the plugin I attached?[/quote]

Florin,

I had to downgrade back to UI4… I was having too many problems with my scenes not running properly.

Hi Florin,

I’ve tested the plugin under VERA2 UI5 1.5.236, it was not working.
It seems that the command http.request() is broken. Using luup.inet.wget() instead of http.request() solves the issue.

Great work Ragmondo,

I installed this without any problems and it works great, and extremely fast. One thig I did change in your JSON code was to add my registration number to the ‘defaultvalue’ variable under sceneList, argument_2. This then automatically populates the second user input box with my registration code. Very easy fix and also very useful.

I’m not a very good Lua programmer yet, but I will keep tinkering until I understand it more. One thing I tried to fix, but couldn’t was the ‘name’ variables in the scene section. It seems that neither of those variables are being passed to the spot. Maybe one of the guru’s here can spot the problem for newbies like me.

Thanks for all your efforts. I really like your code.

I am getting Error “vera alert”
Startup Lua Failed"

Please give me the solution.

We would gladly like to help you with your problem, however you need to provide us with more information. The more information you can provide us, the better we can figure out what is going on.

What vera unit do you have?
What firmware are you running? UI4 or UI5?
How did you install the plugin?

  • Garrett

What vera unit do you have? ---->Vera 2
What firmware are you running? UI4 or UI5?----> UI4
How did you install the plugin?----> Uploaded all the required files from the link and create a device vera alert with the same process.

Any Luck Dear!!!

Issue Resolved!!!

There was a firewall in the Network which was blocking application to communicate.

[quote=“mcvflorin, post:60, topic:167861”]Hi Kyle,

Can you try the plugin I attached?[/quote]

I hope you don’t mind but I have uploaded these files to http://www.fawepark.com/android-software/veralertfiles

Hi,

Firstly, thanks for this useful app !

I test this app few days ago, i notice that sometimes the server is out.
it’s maybe about some overquota on my ID

here the last line when i check on a http request with a browser :
OverQuotaError: The API call datastore_v3.RunQuery() required more quota than is available.

How many messages can we send ?

Thanks a lot.

Great service!
Is there any way to send variables - for example if I send temperature related event I’d like to have the temperature included as part of the message

I was able to use Vera Alert with the UI5 package. It is working.

Regarding the Android application, it looks like there is a bug: I am not able to delete messages. The application systematically crashes.
Am I alone to notice that ?
My Android version is 2.3.x.

Regarding the Vera part, is it possible to generate an alert from the luup code of a scene, just calling a function ?

great plugin , it could use a little bit update and enhancement though. then it would be the best plugin. very usefull.

I answer to myself. It can be done just by copying code from the I_VeraAlert.xml file.
Putting these few lines of code in the start lua file should then allow to call the SendAlert from anywhere.

So, my only problem is how can I delete the messages without the crash of the Android application ?

If you are on Vera2 see:
[url=http://forum.micasaverde.com/index.php/topic,9596.0.html]http://forum.micasaverde.com/index.php/topic,9596.0.html[/url]n
I plan to upgrade this to Vera3.
It allows you to leave the Android VeraAlert Token out of your code … You set it once as property on the VeraAlert device. In fact you can set it to multiple VeraAlert Tokens … then when you send a VeraAlert it will go to all listed phones.

I would luv to make this available through normal notifications. If you think that would be nice then chime in at: [url=http://forum.micasaverde.com/index.php/topic,9525.0.html]http://forum.micasaverde.com/index.php/topic,9525.0.html[/url]

hell yeah
imma give it a try :slight_smile:
edit: i was ahead of myself lol… been there, done complaint lol

The application is working well when my Android phone is connected at home using WiFi.
When I am outside my home using 3G, it looks like I am receiving no notification. When I come back to home and enable the WiFi, the last notification arrives immediately.

Is it something that you notice ?

lolodomo -
Regarding the crash when deleting …
I did the last mods for VeraAlert on the Android … The code I released to Richard does not have the crash … I think he runs the code through a code mangling tool … and that tool does not handle things properly (Processes only Java files and not the corresponding XML files). It’s an easy fix … (moving about 4 lines of code from XML files to java file) … but I think Richard does not have much time to work on this … I aslo sent him a bunch of images to update the Android Market.

Regarding the delay when switching between Wifi and 3G --- I have seen that as well. I was going to look into it ... I think the Phone registers with the Alert Server when it is booted ... and will only get messages from that connection ... I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.

[quote=“RichardTSchaefer, post:78, topic:167861”]lolodomo -
Regarding the crash when deleting …
I did the last mods for VeraAlert on the Android … The code I released to Richard does not have the crash … I think he runs the code through a code mangling tool … and that tool does not handle things properly (Processes only Java files and not the corresponding XML files). It’s an easy fix … (moving about 4 lines of code from XML files to java file) … but I think Richard does not have much time to work on this … I aslo sent him a bunch of images to update the Android Market.[/quote]

Ok. Hope that the fix could be put on the Android Market one day.

Regarding the delay when switching between Wifi and 3G --- I have seen that as well. I was going to look into it ... I think the Phone registers with the Alert Server when it is booted ... and will only get messages from that connection ... I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.

Interesting. I will verify that.

[quote=“lolodomo, post:79, topic:167861”]

Regarding the delay when switching between Wifi and 3G — I have seen that as well. I was going to look into it … I think the Phone registers with the Alert Server when it is booted … and will only get messages from that connection … I think a mod to detect a change in the network will fix that. I will try to look into this and post a message back later about this.

Interesting. I will verify that.[/quote]

No, it does not work even if I start in 3G mode.
What is a little strange is that I am almost certain that it worked at least one time. But now it never works.