Snapshot IP camera

Forum All about Webcams, IP Camera's & Camera's (hardware, software, pan tilt zoom etc).

Moderator: Esteban

Snapshot IP camera

Postby labtec » Wed Jan 12, 2011 4:32 pm

Is it possible to make a snapshot with a IP cam when HS2 detects a security change, ie doorsensor or motion sensor. I have configured
my Y-cam in HS2 with the plugin Netcam and I can see the cam pictures.

How can I make an event that takes an snapshot when there is motion detected or when there is an alert from a doorsensor?

THX :)
labtec
Member
Member
 
Posts: 243
Joined: October 2010

Re: Snapshot

Postby Juande » Wed Jan 12, 2011 10:29 pm

You can do this by creating a device value change trigger in homeseer. Then you select the device that acts as a trigger and specify the value is set to alert.

Device RFXCOM Exterior Garage Door value becomes equal to Alert


As an action you can add 2 actions:

Action 1.
run script action and enter a line to take the snapshot, i.e.

Run script: &hs.GetURLImage "http://user:password@192.168.1.123","/axis-cgi/jpg/image.cgi?camera=3",false,80,"/html/images/CamAlerts/GarageDoorLast.jpg"

Action 2 (optional if you want to send the taken picture by email)

Send Email To: mailto@domain.com
Subj: ALERT: Garage Door is OPEN

(Specify to attach the picture taken in the previous action)

Hope it helps
JD
Juande
Member
Member
 
Posts: 52
Joined: October 2007
Location: Spain

Re: Snapshot

Postby labtec » Wed Feb 16, 2011 5:28 pm

&hs.GetURLImage "http://user:password@192.168.1.123","/axis-cgi/jpg/image.cgi?camera=3",false,80,"/html/images/CamAlerts/GarageDoorLast.jpg"

Wich part of this line is Cam info (type of camera) en wich part is the location of storage the jpg? I use a Panasonic BL-C111 cam.

I asume the path /html/images/CamAlerts/ is a pad in the HS directory? dir CamAlerts is not excisting?
labtec
Member
Member
 
Posts: 243
Joined: October 2010

Re: Snapshot

Postby Juande » Wed Feb 16, 2011 10:49 pm

This is the url to access to your cam snapshot: http://user:password@192.168.1.123","/axis-cgi/jpg/image.cgi?camera=3

And this is where you save it /html/images/CamAlerts/GarageDoorLast.jpg

CamAlerts is a manually created directory to store images ans also to be able to access them from HS web server
Last edited by Esteban on Wed Feb 16, 2011 10:55 pm, edited 1 time in total.
Reason: Quoting is not necessary when responding to the previous post.
Juande
Member
Member
 
Posts: 52
Joined: October 2007
Location: Spain


Return to Webcams & Camera Stuff Forum

Who is online

Users browsing this forum: No registered users and 1 guest