roleoroleo / sonoff-hack

Custom firmware for Sonoff GK-200MP2B camera
GNU General Public License v3.0
200 stars 45 forks source link

PTZ control via Zoneminder #25

Closed nigelspowage closed 1 month ago

nigelspowage commented 3 years ago

Has anyone got PTZ controls working through Zoneminder ?

I saw the readme said to use ONVIF camera for Blue Iris so I attempted using the same for Zoneminder but with no luck.

attilabalazsy commented 2 years ago

I'm playing with the same, no luck yet

roleoroleo commented 2 years ago

Does it work with ONVIF Device Manager?

attilabalazsy commented 2 years ago

Yes, ONVIF Device Manager is able to control the PTZ. My issue with zoneminder is, that it is in a different subnet, so it does not finds the camera. This is what I need to solve first, then I can share more info here.

roleoroleo commented 2 years ago

If the cam is in a different subnet, wsdd discovery will not run successfully. You need to input the ip address manually.

roleoroleo commented 2 years ago

Try this: immagine

attilabalazsy commented 2 years ago

I've implemented the native PTZ control for zoneminder. If you are interested, I can share the control script.

roleoroleo commented 2 years ago

Yes, please.

attilabalazsy commented 2 years ago

Here is it (pls rename it to .pm) SonoffHack.pm.txt

Installation details are in the description section of the script (at the bottom). It is working from ZM UI (1.36.12) and also from ZM Ninja mobile app I was not testing it very detailed and I'm also very new to ZM, so sorry for any mistakes. :)

roleoroleo commented 2 years ago

Thank you for sharing it.

avg-I commented 1 year ago

It would be great if @attilabalazsy 's script was integrated into zoneminder. Have you considered submitted a PR there?

github-actions[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.