We have moved at community.getvera.com

Author Topic: attach picture to Vera alerts message (to Android phone)  (Read 9030 times)

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
attach picture to Vera alerts message (to Android phone)
« on: March 28, 2014, 08:21:32 am »
I have a notification set up in Vera Alerts,

FDarmedtripped Front Door Motion Sensor armed is tripped {tone:tts}Front Door Sensor tripped

now when my armed fron todoor sensor is tripped I have a spoken message on my Android phone Front Door Sensor tripped. Yesterday looking at the device in Vera I thought I had seen something that I can somehow attach a picture to a message. I looked again at the device (remotely) today but cannot see it any more. Maybe I have seen it somewhere else, I am not sure. At the moment I use tasker on my phone to open dropbox in the right folder on my phone, that way I can see pictures of who has been at the door. But it would be even easier if I can attch pictures to Vera alert messages directly

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #1 on: March 28, 2014, 08:36:50 am »
Have you tried:
  {Picture(xxx)}   

Where XXX is the Vera Device ID of the camera.

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: attach picture to Vera alerts message (to Android phone)
« Reply #2 on: March 28, 2014, 08:49:40 am »
That is what I thought I had seen yesterday. Does that hint only show up when you access Vera local ?

So I have changed the notification to

{tone:tts}Front Door Sensor tripped{Picture(214)}      (214 being my camera)

Is it possible to have that notification send 4 pictures in a row from that camera ? At the moment my camera uploads 4 pictures taken after another to dropbox when the motion sensor has been tripped

I have just slightly changed it to:

{Picture(214)}{tone:tts}Front Door Sensor tripped
« Last Edit: March 28, 2014, 08:51:35 am by mikee123 »

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #3 on: March 28, 2014, 09:33:28 am »
You can use {Video(XXX, YYY)}
where XXX is the deviceID, YYY is in seconds ...
This can eat up space on you Vera quickly ... so do not let it run too long. (A USB stick for /tmp will ease this problem).

You need to specify the LOGIN credentials (bottom of settings page)  to get pictures and video. They are two big to send with a message.
Vera takes the pictures and sends the message.  Vera Mobil than tries to download the pictures remotely.

With Vera Alerts SMTP profile ... you can only send the Picture ... not the Video.

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: attach picture to Vera alerts message (to Android phone)
« Reply #4 on: March 28, 2014, 10:05:17 am »
At the moment no plans to attach video, pictures should do. Can I attach multiple pictures ?

Quote
You need to specify the LOGIN credentials (bottom of settings page)

You mean on the camera device ? (which I have anyway)  as I cannot see any login credentials on the Vera alerts settings page

I am currently only using the Vera Alerts mobile profile, I have set up smtp but not using it yet

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #5 on: March 28, 2014, 04:20:53 pm »
The settings are on the android phone ... not the Vera Plugin.
The login credentials are so Vera Mobil can call back home to the Vera to pick up the previously saved picture.

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: attach picture to Vera alerts message (to Android phone)
« Reply #6 on: March 29, 2014, 06:51:25 am »
It must be set up ok, as now i get a Vera alert message on my mobile with a picture symbol. When i click on that i get the camera picture. Perfect.
Now, the only thing left is how do i get a few more pictures ? So when the motion sensor trips i want 4 pictures in succession. Is that possible ?

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #7 on: March 29, 2014, 07:43:13 am »
Did you see my message about:

 {Video(xxx, yyy)}

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: attach picture to Vera alerts message (to Android phone)
« Reply #8 on: March 29, 2014, 12:01:43 pm »
yes but i did not want to attach video, just stills. I only want 4 pictures per alert, taken a few seconds apart (like my dropbox uploader does at the moment)

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #9 on: March 29, 2014, 05:01:25 pm »
I do not have that capability yet ... I can add it to the list.

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: attach picture to Vera alerts message (to Android phone)
« Reply #10 on: March 30, 2014, 06:01:36 am »
ok great

Offline mikee123

  • Hero Member
  • *****
  • Posts: 1521
  • Karma: +18/-11
Re: attach picture to Vera alerts message (to Android phone)
« Reply #11 on: April 03, 2014, 11:46:43 am »
I have found a simple solution to have multiple pictures sent to my mobile via Vera Alerts. I have created a scene and in advanced settings I have:

VeraAlerts SendAlert Message Message: {Picture(214)}

and have this repeated a few times with delays. Works fine. Just one problem, when trying to open the pictures on my mobile (Samsung S4) on Vera Alerts, quite often there is a very long lag before the pictures open when I click on the picture symbol. The lag can be a few minutes. Sometimes they open when the next notification comes in. The processor on the Samsung is quite fast, so don't think that is the issue
 

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #12 on: April 03, 2014, 05:09:02 pm »
When you try to open the picture ... it has to download it from your Vera.
SO you may have had some connectivity problems.

Offline LightsOn

  • Hero Member
  • *****
  • Posts: 754
  • Karma: +4/-3
Re: attach picture to Vera alerts message (to Android phone)
« Reply #13 on: May 29, 2014, 07:51:39 am »
Hi,

Both  {Video(xxx, yyy)} &  {Picture(xxx)} work great.

Question 1: Neither seem logged in my "My Alerts" section on vera so where are they stored (the pictures and video)? I can get them on my phone but where are they stored / downloaded form?

Question 2: Video seems more like a rolling picture library?  (e.g many pictures taken one after the other and then played back in succession) should it be / is this correct?

Offline RichardTSchaefer

  • Moderator
  • Master Member
  • *****
  • Posts: 10091
  • Karma: +764/-143
Re: attach picture to Vera alerts message (to Android phone)
« Reply #14 on: May 29, 2014, 08:19:31 am »
Question1:
They are temporarily stored on Vera ... the Vera Alerts Plugin downloads them to your phone hopefully before they are deleted on Vera.
 On your phone they are stored in:

    /SDCard/Pictures/VeraAlerts/....

Question2:
The only API that Vera Supports is picture snapshot. So the video format used is a stream of static pictures. There is no frame rate ... the frame rate is the speed at which Vera could acquire pictures from the camera ... for the specified interval. This may change in the future if Vera provides an API to capture a video from an attached camera.