Send email snapshot triggered by telnet

Ramias

n3wb
Joined
May 23, 2014
Messages
23
Reaction score
7
I would like an event in my home automation system to cause my home automation system to telnet to the camera and send an email (with the email settings already saved on the camera) of a real-time snapshot.

Anybody know the telnet commands I need to key in on the camera to do this?

I know how to telnet to the camera; just don't know what to type in when I am there.

If there was an http call I could do that would work too.

Thanks
 

hmjgriffon

Known around here
Joined
Mar 30, 2014
Messages
3,386
Reaction score
979
Location
North Florida
I would like an event in my home automation system to cause my home automation system to telnet to the camera and send an email (with the email settings already saved on the camera) of a real-time snapshot.

Anybody know the telnet commands I need to key in on the camera to do this?

I know how to telnet to the camera; just don't know what to type in when I am there.

If there was an http call I could do that would work too.

Thanks

What exactly are you trying to accomplish? I don't understand why you need to telnet to the camera to send the email, you can send the email from anywhere, with any content you want. Are you wanting it to have a picture attached or something? I think there is probably a different better way to go about it.
 

Ramias

n3wb
Joined
May 23, 2014
Messages
23
Reaction score
7
I have a sensor in my mailbox tied to my alarm system. When that sensor is tripped I want the camera to send me an image at that point in time.

Using camera motion sensing creates too many false positives. Thus I want the trigger to be the alarm sensor.

My home automation controller can monitor the alarm sensor. My home automation controller can also make outbound network connections. Thus I want it to signal the camera to send an image via the email settings on the camera.

I sort of got this working -- my home automation controller can grab a snapshot from the camera but I don't know what that does to the cpu on my home automation system having it monitor the h.264 feed of the camera all the time (channel 2 quality isn't as good). Thus I wanted to try to just signal the camera instead.
 

hmjgriffon

Known around here
Joined
Mar 30, 2014
Messages
3,386
Reaction score
979
Location
North Florida
I have a sensor in my mailbox tied to my alarm system. When that sensor is tripped I want the camera to send me an image at that point in time.

Using camera motion sensing creates too many false positives. Thus I want the trigger to be the alarm sensor.

My home automation controller can monitor the alarm sensor. My home automation controller can also make outbound network connections. Thus I want it to signal the camera to send an image via the email settings on the camera.

I sort of got this working -- my home automation controller can grab a snapshot from the camera but I don't know what that does to the cpu on my home automation system having it monitor the h.264 feed of the camera all the time (channel 2 quality isn't as good). Thus I wanted to try to just signal the camera instead.

There should be an HTTP command for grabbing a snapshot from the camera only when you need to, for hikvision it's http://username:password@192.168.1.254/Streaming/channels/2/picture, there are also similar URL's if you run blue iris to pull images from it. If your camera has external alarm capability you can trigger it that way also. To get the camera itself to trigger using the home automation without an external hookup, you'd probably have to run a script on the camera in it's linux OS, I doubt there is any one command that would do it.
 

vigur

n3wb
Joined
Oct 29, 2014
Messages
5
Reaction score
0
Hello hmjgriffon

where did you get information how to get snapshot using HTTP api ? Is there any public manual with all possible features of HTTP api described ?

thank you beforehand for the answer.
 

networkcameracritic

Getting the hang of it
Joined
Mar 10, 2014
Messages
719
Reaction score
203
Not sure what you want to do but http://camera-ip/onvif/snapshot is the easiest way to get as snapshot prior to 5.2, easy, no password needed. If you are programming in Linux, write a shell script to grab the image with a curl command directed into a file, make file as an attachment in an email with sendmail, should be a few lines of code. If it's Windows you can easily write windows script using VBScript (.vbs files), of course more lines of code, just the Microsoft way.
 

LittleBrother

Pulling my weight
Joined
Sep 16, 2014
Messages
480
Reaction score
119
Further to networkcameracritic here is the exact syntax for firmware 5.2 including username/password. Just confirmed on two cams. That pulls back a .jpg.

http://<username>:<password>@<ip address>/Streaming/channels/1/picture
 

curve51

n3wb
Joined
May 4, 2018
Messages
2
Reaction score
0
Further to networkcameracritic here is the exact syntax for firmware 5.2 including username/password. Just confirmed on two cams. That pulls back a .jpg.

http://<username>:<password>@<ip address>/Streaming/channels/1/picture
Hello, How do You save it to hH.disk?
 
Top