Open CTGS-Innovations opened 1 year ago
That's a known issue. See https://github.com/mrlt8/docker-wyze-bridge/discussions/412
I believe you need to use the set_rotary_x
commands to make smaller movements.
You could also use MQTT as an alternative to the WebUI to send commands to the camera.
I get video and can control PTZ to a degree. The video is excellent, but the PTZ commands are not just part of the standard pairing of a Camera through docker. This leads you to create a custom IP, and you get access to the 192.168.1.5:5000 User interface. This was a fun find, as I have been using Wyze-bridge for a long time.
This is where you can send PTZ API commands.. was hoping for success... not so much
http://192.168.1.5:5000/api//set_action_right
http://192.168.1.5:5000/api//set_action_left
http://192.168.1.5:5000/api//set_action_up
http://192.168.1.5:5000/api//set_action_down
Note: is the one found printed in lowercase in the docker logs that is an active camera.
Note: you can send these commands in Blue Iris in the PTZ under PTZ-->NETWORK IP --> CUSTOM HTTP
Note: change the port from 80-->5000 and past each /api//set_action_right to its correct function eg.., Pan Right
All the commands above work; but it forces a 100% movement in direction until it is stopped, which makes it useless for any normal use.
I started hunting around for a way to change the movement, degree, or speed to force a slow change in direction and even used ChatGPT. No luck, but I see the code from Wzye SDK that appears to support the movement options I seek.
*ChatGBT Found this***** from wyze_sdk import Client from wyze_sdk.api.devices import WyzeDevice client = Client() client.authenticate() devices = client.devices_list() camera = next(device for device in devices if device.nickname == "My Camera") wyze_device = WyzeDevice.from_device_info(client, camera) // The function below appears to match what I need from the Wyze SDK, not sure how this is mapped in the Wyze stack. wyze_device.set_pan_tilt(10) exit()
I am seeking any feedback on a solution as it feels very close with the time I have looked into the solution.
Cheers, -Corey
--------------Non-Working ideas I tried------------------- Using CAM_OPTIONS='-p10 -t 5' --> was supposed to make a 10 degrees to the right and 5 degrees down, it did not Could not find any config file or json file inside the running docker to modify the speed, movement or degree change.
Changing the speed in the Wyze APP Changing the speed in Blue Iris
------------- Unraid Docker ------------------- docker run -d --name='docker-wyze-bridge' --net='br0' --ip='192.168.1.5' --privileged=true -e TZ="America/New_York" -e HOST_OS="Unraid" -e HOST_HOSTNAME="Tower" -e HOST_CONTAINERNAME="docker-wyze-bridge" -e 'WYZE_EMAIL'='gtrashg33@gmail.com' -e 'WYZE_PASSWORD'='W!@#mave0000' -e 'TCP_PORT_1935'='1935' -e 'TCP_PORT_8554'='8554' -e 'TCP_PORT_8888'='8888' -e 'LAN_ONLY'='TRUE' -e 'RTSP_PROTOCOLS'='tcp' -e 'CAM_OPTIONS'=''-p 10 -t 5'' <-- Not sure if this doing anything a ChatGPT recommenation" -l net.unraid.docker.managed=dockerman --device='/dev/dri' 'ghcr.io/mrlt8/docker-wyze-bridge'