pstuart
(Patrick Stuart [@pstuart])
July 7, 2014, 11:43pm
7
After a week of hacking around while waiting for support to respond to my ticket, I finally figured out how to do local http GET and parse the response for cameras.
So I wrote this nice little generic camera device that I have tested with Panasonic Cameras and D-Link cameras and should work for any camera that has a url to retrieve the latest image.
Requirements:
Code here… https://github.com/pstuart/smartthings-ps/blob/master/devicetypes/generic_camera.groovy
Edit preferences after install in devices in IDE or on App on phone:
-IP of the camera, this is your local ip, does NOT need to be publicly accessible
-Port of the camera, typically 80 but could be anything
-Path to image, different for each camera
Panasonic Camera is "/SnapshotJPEG?Resolution=640x480&Quality=Clarity"
D-Link…
All details are in this, it finally makes sense… Your code for your tstat finally made it work for me once I understood device.deviceNetworkId had to be in hex