We have moved at community.getvera.com

Author Topic: VeraAlerts Version 3.0  (Read 12197 times)

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
VeraAlerts Version 3.0
« on: February 11, 2013, 05:15:54 pm »
There is an Android Version 3.0 and a Plugin Version 3.0.

The plugin version of 3.0 fixes the {TimeStamp}  field that I broke in version 2.0

The KEY feature for 3.0:
The ability to take  a snapshot or short video of a camera in Vera and attach it to the notification.
I need to work on the Video some more ... at this time all of Video Data is read at one time into Vera memory ... so keep the videos short for now. This is a function of amount of free memory on your Vera. I have test with 10-30 second clips. I have some ideas on improving this ... but not done yet.

In order to receive the Snapshots and Videos, your Android client will need to access your Vera to download these. These files are too big to send trough Google's Cloud Messaging. So in the settings page on Android is a place to set your UserName, Password, And Serial Number (info needed to connect to your Vera at cp.mios.com).

This will start the download as soon as it receives the Notification ... Chances are it will be downloaded before you get to look at it.

Once you get your Snapshot in the Android App ... there is a button to get a current snapshot.  This will be extended to videos when I solve the above problem.

With Videos you can zoom/pan and go backwards and forwards (like a DVR) .... Click the < and > keys to speed up ... touch the screen to pause.

And last ... in order to use this feature; add the following to your Notification Message:

{Picture(XXX)}  or {Video(XXX, YYY)
Where XXX is the Vera Device ID for one of your cameras ... and YYY is the time in seconds of Video to capture.

Note 1: At this time since it all goes through memory ... the message is NOT sent until the video is captured.

Note 2:On Android, the videos and pictures are stored on your SD card: as: /sdcard/Pictures/VeraAlerts
They are deleted when you delete the associated Notification from Vera.




Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: VeraAlerts Version 3.0
« Reply #1 on: February 11, 2013, 06:22:53 pm »
wauw..

Richard, i have not even tried version 3 but the text of your announcement is already exciting... ;D
I will give it a try very soon.

I appreciate your efforts, Vera Alerts is becoming very complete in this way!
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline rifu9655

  • Newbie
  • *
  • Posts: 7
  • Karma: +0/-0
Re: VeraAlerts Version 3.0
« Reply #2 on: February 12, 2013, 04:15:05 pm »
This is a great app on both sides. Has anyone found a way to override the sound profile settings of the phone? I've been trying to find a profile scheduler for android that will allow this app to be an exception when on quiet mode, or segregate this app so it can have higher volume that other phone alerts. Even if I'm in a meeting at work I want to know if someone is entering my house. Thanks for the great work!

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: VeraAlerts Version 3.0
« Reply #3 on: February 12, 2013, 07:24:24 pm »
Vera Alerts uses the Notification stream on the Android.
This is a different sound level than Music, and Ringtones.
When you have a Vera Alerts window open and operate the volume buttons ... it will effect the notification stream volume.

On your Andoid: Goto Settings -> Sounds -> Volume to see the comparative level of each stream.

Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: VeraAlerts Version 3.0
« Reply #4 on: February 14, 2013, 04:29:08 pm »
I have installed version 3 both on Vera and Android.
When I give the Picture or Video commands, then the message arrives at Android, but when i click the picture it does not load anything.

Also the pictures are not found on sdcard/pictures

i have entered username, password and veraID...

any suggestion?
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: VeraAlerts Version 3.0
« Reply #5 on: February 14, 2013, 06:40:35 pm »
I guess I would need to see the log file.
Start before you send a Notification with a picture.
http://YourVeraIP/cgi-bin/cmh/log.sh?Device=LuaUPnP

Stop when you get the Picture Viewer displayed on Vera without a picture.


Offline Otje

  • Full Member
  • ***
  • Posts: 214
  • Karma: +6/-1
Re: VeraAlerts Version 3.0
« Reply #6 on: February 15, 2013, 04:10:49 pm »
Hi Richard

this is the log dump:

JobHandler_LuaUPnP::HandleActionRequest device: 49 service: urn:richardgreen:serviceId:VeraAlert1 action: SendAlert <0x2e7eb680>
JobHandler_LuaUPnP::HandleActionRequest argument DeviceNum=49 <0x2e7eb680>
JobHandler_LuaUPnP::HandleActionRequest argument serviceId=urn:richardgreen:serviceId:VeraAlert1 <0x2e7eb680>
JobHandler_LuaUPnP::HandleActionRequest argument action=SendAlert <0x2e7eb680>
JobHandler_LuaUPnP::HandleActionRequest argument Message={Video(47,2)} <0x2e7eb680>
JobHandler_LuaUPnP::HandleActionRequest argument rand=0.39603769266977906 <0x2e7eb680>
luup_log:49: VeraAlert:49:SendAlert:Msg:(13):%7B%56%69%64%65%6F%28%34%37%2C%32%29%7D <0x2e7eb680>
luup_log:49: VeraAlert:49:WebGetInfo:admin:admin@192.168.0.62:80/snapshot.cgi <0x2e7eb680>
ZW_Send_Data node 17 NO ROUTE (nil) __LEAK__ this:8192 start:1077248 to 0xc67000 <0x2b5eb680>
<0x2b1eb680>
luup_log:49: VeraAlert:49:Msg::{video:va.47.8140629314883.mjpeg} __LEAK__ this:65536 start:1142784 to 0xc77000 <0x2e7eb680>
luup_log:49: VeraAlert:49:SendAlert:Return:200 <0x2e7eb680>
LOG_CHECK_MEMORY_LEAK pMem start 0xbd1000 now 0xc77000 last 0xc65000 leaked 679936 <0x2b1eb680>
ZW_Send_Data node 21 USING ROUTE 15.0.0.0 <0x2b5eb680>
VERA Plus, VERA 3 Lite , couple of PIR's, several switch units, wall mounted tablet, Sonos integration with TTS, Temperature sensors, Imperihome, Zwave LED bulbs

Offline baxy_AU

  • Sr. Member
  • ****
  • Posts: 269
  • Karma: +5/-0
Re: VeraAlerts Version 3.0
« Reply #7 on: February 19, 2013, 04:57:33 am »
Just a couple of questions.....
1 what do I need to do to make Vera alerts send the timestamp of the event for every event to my android device ..is the the keyword {timestamp} sufficient or do I need to add addition text/string?
2 also ive just started using the new xbmc plugin and i think it should be possible to send a notifcation of what is playing whenever xbmc starts playing something....can you tell me how I might be able to do this?

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: VeraAlerts Version 3.0
« Reply #8 on: February 19, 2013, 05:04:34 am »
You can set the Aux Message to {timestamp}
Then this will be appended to ALL events sent to the Android client.

Go to you xbmc device. Check the notifications tab. See if they support the event you are looking for.

If not you can always use the Program Logic Event Generator plugin to monitor changes to the appropriate xbmc variable and generate a condition for that. Then use the Notification from the PLEG device.

Offline baxy_AU

  • Sr. Member
  • ****
  • Posts: 269
  • Karma: +5/-0
Re: VeraAlerts Version 3.0
« Reply #9 on: February 19, 2013, 05:36:26 am »
Hi Richard
I have created a notification for when xbmc starts playing but the xbmc device also has a variable for what is currently playing.. how can I modify the notification to tell me what is playing

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: VeraAlerts Version 3.0
« Reply #10 on: February 19, 2013, 05:55:07 am »
Go to the Vera Alerts device on the Vera Control Panel.
Then go to the Notification Configuration Tab. You will change the message for
the appropriate Notification to something like:

XBMC is now playing: {device([DeviceID].service[ServiceID].VariableName)}

You get the values for DeviceID, ServiceID and VariableName from the Advanced tab for the XBMC device. To get the ServiceID for a variable, let  the mouse hover over the variable name in the advanced tab.
« Last Edit: March 09, 2013, 08:16:15 am by RichardTSchaefer »

Offline baxy_AU

  • Sr. Member
  • ****
  • Posts: 269
  • Karma: +5/-0
Re: VeraAlerts Version 3.0
« Reply #11 on: February 19, 2013, 07:40:49 pm »
You can set the Aux Message to {timestamp}
Then this will be appended to ALL events sent to the Android client.

Go to you xbmc device. Check the notifications tab. See if they support the event you are looking for.

If not you can always use the Program Logic Event Generator plugin to monitor changes to the appropriate xbmc variable and generate a condition for that. Then use the Notification from the PLEG device.
Is the timestamp added to the message or does it change the actual timestamp of the event?
As I'm not sure I have it working

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: VeraAlerts Version 3.0
« Reply #12 on: February 19, 2013, 08:13:07 pm »
The Plugin adds the current time stamp when it sees this tag.
This will be the time stamp from sending the Alert.
So if your phone is off for long periods of time ... It will still see the correct time stamps.

Quote
As I'm not sure I have it working
Can you describe your problem ?

Offline tobiwankenobi

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
Re: VeraAlerts Version 3.0
« Reply #13 on: February 20, 2013, 01:33:00 am »
For some reason VeraAlerts (in VeraLite) did not automatically update to version 3.0.  I had to uninstall the old version and install it from scratch.

The {timestamp} feature does work for me now, but only if I enter it in each item in the "Notification Configuration".  It does not work when I enter it as the Aux Message for all alerts send to the Android App.

Offline baxy_AU

  • Sr. Member
  • ****
  • Posts: 269
  • Karma: +5/-0
Re: VeraAlerts Version 3.0
« Reply #14 on: February 20, 2013, 05:24:15 am »
I have the string "at {timestamp}" in Aux message but the alert received just has "at " then the notification ie no timestamp in the message

Sent from my ASUS Transformer Pad TF300TG using Tapatalk HD