Hello,
I just installed my Vera Lite the other day. I’ve got all my Z-wave devices working properly (including the HSM100 which kind of works thanks to a quirky work around I discovered) and was able to install my Trendnet TV-IP400W PTZ camera as a generic camera. However, I have no idea how to get PTZ working. I’ve been trying to read up on a Foscam XML file and have been trying to edit and hack it to work, but after a full day of messing around with no progress, I’m hoping someone on the forum can help.
IMG URL: (works)
http://ip/IMAGE.JPG
I found online that the PTZ control is:
http://ip/PANTILTCONTROL.CGI
UP:
PanSingleMoveDegree=1&TiltSingleMoveDegree=1&PanTiltSingleMove=1
DOWN:
PanSingleMoveDegree=1&TiltSingleMoveDegree=1&PanTiltSingleMove=7
LEFT:
PanSingleMoveDegree=1&TiltSingleMoveDegree=1&PanTiltSingleMove=3
RIGHT:
PanSingleMoveDegree=1&TiltSingleMoveDegree=1&PanTiltSingleMove=5
Now, entering this into a browser’s URL doesn’t do anything. But if I use curl to send commands, it works:
curl -d ‘PanSingleMoveDegree=1&TiltSingleMoveDegree=1&PanTiltSingleMove=1’ http://username_here:passoword_here@ip_here/PANTILTCONTROL.CGI
This moves my camera to the right.
One blogger on the net had a fairly detailed bit of info regarding this camera and said that method must be POST for this to work and that GET wouldn’t do the trick.
The Foscam XML file seems to use the GET method, and I did find this page that mentions POST method for Lua, but I couldn’t get it to work
http://wiki.micasaverde.com/index.php/Luup_Scenes_Events#Invoke_HTTP_URL_with_POST_request_.28Method_3.29
And suggestions to lead me in the right direction?
Thanks!