Supergiovane / node-red-contrib-hikvision-ultimate

A native set of node for Hikvision Cameras, Doorbells, Alarms, Radars etc.
https://www.facebook.com/supergiovaneDev
MIT License
51 stars 11 forks source link

FR: Calling PTZ-Prreset by number from payload #33

Closed ozett closed 3 years ago

ozett commented 3 years ago

Salutation "Hello" Supergiovane

Describe the bug Wondering if i need for each preset a PTZ-Node with the PTZ-Preset "preset" in that node

Expected behavior maybe possible to send the preset-number with payload to call the preset? i.e. payload=1, (for preset 1) ?

Screenshots image

Hikvision-Ultimate Version 1.1.95 Node-Red running on ubuntu in vmware

Additional context did not try it out, but did also found no documentation.

Supergiovane commented 3 years ago

Hi ozett, node-red-contrib-hikvision-ultimate@1.0.57 is out. In the README you'll find how to recall the preset.

// Pass the Camera Number and PTZ preset by message
msg.payload.channelID = 1; // OPTIONAL, pass the Camera number
msg.payload.PTZPreset = 2; // OPTIONAL, pass the PTZ preset number
return msg;
ozett commented 3 years ago

thanks for putting this in. great. you may want to add some hints in further verision to that node, that this is possible?

image

Supergiovane commented 3 years ago

Hi Yes can be a good idea, but it may be better to go to the README file…