Customize PTZ Script / Buttons

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
JasonBorn
Posts: 39
Joined: Fri Jan 08, 2021 5:31 pm

Customize PTZ Script / Buttons

Post by JasonBorn »

Hi,
i got three PTZ Hikvision cameras and want to start a patrol drive by a script each camera by pressing a button - for example "wake up". I would "abuse" the "wake up" button to start the patrol.
That wouldn't be a problem if i got only one camera. But on 2+ i need more HikVision control scripts.
Is there an easy way to add this script for each cam?
User avatar
iconnor
Posts: 3362
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Customize PTZ Script / Buttons

Post by iconnor »

Why not just use presets. tell it to go to preset 1, then to preset 2...
alabamatoy
Posts: 361
Joined: Sun Jun 05, 2016 2:53 pm

Re: Customize PTZ Script / Buttons

Post by alabamatoy »

The Amcrest cameras have this functionality built into the new ones, its called "tour". But it has occurred to me that it could be very useful to have, and not all the difficult to code, a PTZ script function that would allow input of a wait time (the time to stay put on a given preset) and the presets to use (1, 3, 4, 7 and 10 for example) and have it just send the ordered PTZ preset after the specified wait time, and start the list over again after its done.

This caused me to wonder how long the little transmission motor and gears in the camera would last.....
JasonBorn
Posts: 39
Joined: Fri Jan 08, 2021 5:31 pm

Re: Customize PTZ Script / Buttons

Post by JasonBorn »

iconnor wrote: Sun Apr 25, 2021 2:40 am Why not just use presets. tell it to go to preset 1, then to preset 2...
I wanna press one button and the ptz should drive to (for example) preset 1 - wait 5 seconds, preset 4 - wait 5 seconds etc.
My script would do this but i havnt found an easy way for several ptz's.
New (or more expensive) hikvision cams got this feature on its own. But not the cheap ones.
JasonBorn
Posts: 39
Joined: Fri Jan 08, 2021 5:31 pm

Re: Customize PTZ Script / Buttons

Post by JasonBorn »

alabamatoy wrote: Sun Apr 25, 2021 11:44 am The Amcrest cameras have this functionality built into the new ones, its called "tour". But it has occurred to me that it could be very useful to have, and not all the difficult to code, a PTZ script function that would allow input of a wait time (the time to stay put on a given preset) and the presets to use (1, 3, 4, 7 and 10 for example) and have it just send the ordered PTZ preset after the specified wait time, and start the list over again after its done.

This caused me to wonder how long the little transmission motor and gears in the camera would last.....
Thats exacly what i want. User paranoid helped me with a ptz script for it. But now i need the "patrol" or "tour" for several ptz cameras
Post Reply