V380_Python
V380_Python copied to clipboard
Fix and enhance main python
As explained in the commits, the V380_complete_public.py has been taken care of:
- fix: indentation
- fix: remove unused
getchimport - enh: factor-out url/ports & cmd duration (0.5sec)
- refact: read ptz-files in a dict, help msg on bad key
- enh: modfularize code to call it with
python -m, to allow to run it from an arbitrary folder, so as to save captured images outside of project. - doc: update instructions; explain what to pip-install
Thank you for the handy utility project :-)
Hi, I am using your code for V380 IP camera. I have an error when using the ptz command to move the camera. This xml code works, but the camera moves as far as possible. Why? How can I use it for step-by-step camera movement?
I have not touched xml content; i think though that you may find some help on its grammar in this PTZ-page of the notorious home-assistant.