sudo apt-get install python3.8 python3.8-pip python3.8-venv -y
python3.8 -m venv /opt/wyzecam-to-rtmp
cd ~/wyzecam-to-rtmp
source bin/activate
pip install wyzecam
pip install requests
Download wyzecam-to-rtmp.py and [email protected]
wget https://gist.github.com/noelhibbard/03703f551298c6460f2fd0bfdbc328bd/raw/08666ddae0fa18e9b3d29ded9e028906400b10a2/wyzecam-to-rtmp.py
wget https://gist.github.com/noelhibbard/03703f551298c6460f2fd0bfdbc328bd/raw/08666ddae0fa18e9b3d29ded9e028906400b10a2/[email protected]
Create config file, name it what you want but needs to be in /etc/wyzecam-to-rtmp and must have an .env extention.
mkdir /etc/wyzecam-to-rtmp
nano /etc/wyzecam-to-rtmp/Doorbell.env
Paste these contents:
WYZE_EMAIL="[email protected]"
WYZE_PASSWORD="wyzepasshere"
WYZE_CAMERA_NAME="Doorbell"
RTMP_URL="rtmp://127.0.0.1/live/doorbell"
systemctl enable /opt/wyzecam-to-rtmp/[email protected]
systemctl start wyzecam-to-rtmp@Doorbell