Cross-posting from my reddit post, but as the only thread I was seeing here brought up and shared was this. I wanted to share a new way to connect your Wyze Cam and OctoPrint while keeping all of Wyze's features.
Looking through the several posts here, discord, and octoprint's forums, it's apparent there is no good guide to setting up OctoPrint with Wyze.
Note, you will NOT need to flash any special firmware, nor have Cam Plus.
Hardware Required:
- Supported Wyze Camera (Wyze v2/V3 supported)
- Docker/compose Server (Or something like Portainer) (You can run this one Windows, or Linux/Pi)
Steps:
1) Spin up Docker/Docker-Compose
2) Spin up docker-wyze-bridge
Setting up docker-wyze-bridge:
docker run \
-e WYZE_EMAIL=you@email.com \
-e WYZE_PASSWORD=yourpassw0rd \
-p 1935:1935 -p 8554:8554 -p 8888:8888 -p 5000:5000 \
mrlt8/wyze-bridge:latest
version: '2.4'
services:
wyze-bridge:
container_name: wyze-bridge
restart: unless-stopped
image: mrlt8/wyze-bridge:latest
ports:
- 1935:1935 # RTMP
- 8554:8554 # RTSP
- 8888:8888 # HLS
- 5000:5000 # WEB-UI
environment:
- WYZE_EMAIL=${WYZE_EMAIL} # Replace with wyze email
- WYZE_PASSWORD=${WYZE_PASSWORD} # Replace with wyze password
As always, you can change the ports if there are any conflicts. External:Internal - Only change external.
For example, my 5000
port is already used by another container. So I use 5001:5000 to access the GUI on port 5001.
3) Get your HLS URL via the dashboard
Dashboard: http://IP:5000
HLS URL: http://IP:8888//
Clicking this button will bring up your URLs:
You'll want your HLS URL here:
4) Enter this URL in the 'Webcam & Timelapse' 'Stream URL' value with stream.m3u8
appended to the end.
Example: http://wyze.local:8888/random-cam/stream.m3u8
Example:
5) Get your Snapshot URL via the wyze dashboard and enter that in your 'Snapshot URL' field.
Special Note: For some reason, I couldn't get this field to resolve my hostname, so you may need to use your server's IP address.
For example:
http://192.168.0.15:5000/snapshot/random-cam.jpg
6) You are ready for cool time lapses and viewing!
Notes:
- Your URL will likely not be pretty like 'wyze.local', if you are interested in that, look into reverse-proxies.
- HLS has a bit of latency by default, this will be pretty obvious if you are live-viewing. But for time lapses/making sure it's running, it's fine.
- You may need to enable cache-buster under Webcam > Advanced Options
- As this isn't running any special firmware on your camera, all functionality of the cameras will still work (nightvision, in-app viewing, etc)
Results:
Test-Stream:
Test-Snapshot:
OctoApp:
NOTE:
DOES NOT WORK WITH PRINT-JOB HISTORY: