V380_Python icon indicating copy to clipboard operation
V380_Python copied to clipboard

Fix and enhance main python

Open ankostis opened this issue 4 years ago • 3 comments

As explained in the commits, the V380_complete_public.py has been taken care of:

  • fix: indentation
  • fix: remove unused getch import
  • 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

ankostis avatar Jun 06 '21 21:06 ankostis

Thank you for the handy utility project :-)

ankostis avatar Jun 06 '21 21:06 ankostis

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?

sobhaniot avatar Oct 05 '22 11:10 sobhaniot

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.

ankostis avatar Oct 05 '22 22:10 ankostis