r/wyzecam • • 4h ago

Dealing with reliability issues with Web Potral

I built Wyze Live Auto Refresh, a Python script that monitors up to nine camera feeds in the Wyze Web Portal. The portal sometimes displays Device is offline or Web connection failed, and a feed can also freeze on the last frame without showing any error. The script checks the page for error messages and uses OCR to catch messages displayed inside camera tiles. It tries the affected camera’s Refresh button when available and reloads the dashboard if the error persists.

It is extremely rare for a Camera to crash. If you do have crashes, the 1st thing to check is to assure the camera power is sufficient. There are 3rd party USB power supplies that may mitigate. I notice a higher failure rate if the camera is burdened with servos are activated for pan and scan. Wyze ships with 20 W power supplies. You may want to try 45 Watt supplies that can be bought from Amazon or Walmart. But, most of these errors are either the camera losing connectively to the WIFI or Cloud. Basically they are false.

To catch silent freezes, the script compares pixels in the lower-right corner of each feed, where the camera timestamp appears. Even when nothing moves in the scene, the timestamp should keep changing. If that region stays unchanged for five minutes by default, the script reloads the dashboard. If Wyze then displays the Log in Wyze Web Portal screen, the script clicks the link and can fill in credentials configured locally. It also logs camera status and recovery attempts so you can see which feeds are having problems. If a camera loses power or network connectivity, recovery still depends on the camera coming back online.

The first guideline when developing cloud-connected applications—particularly those that rely on Wi-Fi—is to avoid suspending execution threads in response to dialog-based user interactions. Instead, the application should log the issue, pause the affected thread for a reasonable interval, and then retry the operation. User notifications should be designed in a non-blocking manner so that no thread remains suspended while waiting for user input.

The Wyze Security web interface provides a practical example of this problem. When a camera briefly loses connectivity—a normal and occasional occurrence—the interface displays an error state. Although the camera typically recovers on its own, the interface requires the user to manually press the “Refresh” button before the video feed becomes available again.

My initial approach was to embed the Wyze interface within a parent HTML page configured to refresh automatically, but the site appears to block or override such behavior.

https://github.com/rerhart585-stack/wyze-live-auto-refresh

0 Upvotes

0 comments sorted by