This PR primarily fixes a bug in !ptzdraw that was cause it to round down incorrectly for small zoom values. It also rearranges the position of the zoom variable to prevent a collision that was occurring in some place.
Additionally it adds some very simple input validation on the screen interaction commands, causing them to just stop and return if a non-numeric value is passed as an argument.
Finally it adds the zone clicked on to !ptzgetcam (in the json output only) as well as to the message feedback on the other click command, to assist with automation tooling and make it easier to follow the command flow at a glance.
This PR primarily fixes a bug in
!ptzdraw
that was cause it to round down incorrectly for small zoom values. It also rearranges the position of thezoom
variable to prevent a collision that was occurring in some place.Additionally it adds some very simple input validation on the screen interaction commands, causing them to just stop and return if a non-numeric value is passed as an argument.
Finally it adds the zone clicked on to
!ptzgetcam
(in the json output only) as well as to the message feedback on the other click command, to assist with automation tooling and make it easier to follow the command flow at a glance.