So I'm getting reasonable at hacking zm ptz control scripts to do what I want so far. But I'm working on a new type of camera (HooToo HT-IP006N) that doesn't send singular button events but rather start/stop events and don't have anything to model it off of.
What I mean is, let's say I hit the Pan Up button. The web interface then executes
Code: Select all
http://(blahblah)/decoder_control.cgi?command=0
and the camera pans up
and continues going up until I release the button. At that point the web interface executes
Code: Select all
http://(blahblah)/decoder_control.cgi?command=1
at which point the camera stops panning up. Each direction has its own unique start/stop combo, along with zoom in and zoom out having their own unique start/stop combos.
Anyone have an example script they know of that works in a similar way that I can hack up and re-purpose? I suppose I could send a start immediately followed by a stop, but am wondering out loud if there's a better way or (even better!) if someone has already invented this wheel.
Thanks in advance!