¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: ONVIF Camera PTZ Control Protocol


 

I like the being able to test on a PC.? Python is very much a "get things done" language, and works identically on PC and Mac (for development and testing's sake).? Good on you for picking the tool that does the job of talking best to the gear you want to use.

My favorite integration I've done is an SMS text messaging bot, to & from Crestron.? The homeowner can open gates, lock/unlock doors, and request a check all of the doors for the whole house (done via the security system), and other things (like fireplaces left on), just by sending a text message (the status comes back as reply).? This works by using Twilio SMS to provide a dedicated phone number for the messenger, and then my Python messenger code is hosted on a dinrail RPi, and talks to Crestron processor via RS232, where I've got logic blocks that forward on the signals the text messenger would care about.? Most of the work of properly communicating with Twilio (including proper authentication) would be cumbersome to do in S# but is comfortable in Python, especially where Twilio themselves gives you sample Python code to utilize their services.

The ONVIF test code I did at first "for the glee" but now that I did it, at some point I will likely actually implement it in real life, now that I've gone to the effort of observing that it actually works (and in a vendor-neutral way as a bonus!)? Before it's production ready, it'll need proper error handling (so it doesn't crash with a TCP exception if a camera is offline), support for multiple cameras (why control just one?)... the ability to recall "home position" and other presets (originally set by homeowner via camera web UI) as well as making it so that the "stop" command happens upon a UI button release, rather than having chunky steps of movement per button press.

Join [email protected] to automatically receive all group messages.