FiveLeavesLeft / WyzeCameraLiveStream

Hack to allow live streaming from wyze cameras to vlc or mpv on your desktop.
MIT License
100 stars 7 forks source link

Continuous reboots on v3 camera firmware 4.36.1.4 #12

Open jdesai61 opened 3 years ago

jdesai61 commented 3 years ago

I tried to install this on for v3 camera with firmware 4.36.1.4 and the camera reboots after 15 to 20 seconds on restart. That was enough time for me to upload uninstall.sh script (after a couple of retries) and run it. The WyzeHack by itself seems to run just fine as I can telnet into the camera and see NFS mounts etc.

I can retry installing it, but would like to know if I should enable some debug or such to identify the issue.

FiveLeavesLeft commented 3 years ago

I have not tried it on 4.36.1.4 and things have changed in between versions in the past. /tmp/boot.log may have some clues.

You could try

export STREAM_HACK_OUTPUT=/tmp/stream_hack.log

in the config file and see if anything shows up.

jdesai61 commented 3 years ago

I have the boot log files (with SYNC_BOOT_LOG=1), but they are empty. I have some other files in logs directory (NFS), but even though they are named .txt they are not. Tried gunzip, tar, unzip - but nothing seems to work

---------- 1 admin administrators  761141 2021-05-13 12:46 log_7C78B22CF497_20210513124609_s.txt
---------- 1 admin administrators 1092401 2021-05-14 00:46 log_7C78B22CF497_20210514004610_s.txt
---------- 1 admin administrators 1423885 2021-05-14 12:46 log_7C78B22CF497_20210514124611_s.txt
pygmymarmoset commented 3 years ago

@jdesai61 see https://github.com/HclX/WyzeHacks/pull/130 for the likely reason (at least it was for me).

jdesai61ilu commented 3 years ago

My V3 camera firmware updated to 4.35.2.5 and I can confirm that the live streaming is working with PoE streaming to home assistant (via frigate) over USB/Ethernet using this device: https://www.amazon.com/gp/product/B0876N3PMZ/ and adding eth0_init.sh and wlan0_kill.sh script from here https://github.com/MelonSmasher/WyzeFirmwareTool/tree/master/support/mods/scripts

wyze_hack.cfg: export CUSTOM_SCRIPT='/mnt/WyzeCams/scripts/myscript.sh' cat /mnt/WyzeCams/scripts/myscript.sh

#!/bin/sh
/mnt/WyzeCams/WyzeFirmWareTool/WyzeFirmwareTool-master/support/mods/scripts/eth0_init.sh > /tmp/eth0_init.log 2>&1 &
/mnt/WyzeCams/WyzeFirmWareTool/WyzeFirmwareTool-master/support/mods/scripts/wlan0_kill.sh > /tmp/wlan0_kill.log 2>&1 &

I head to fix two GATEWAY_IP lines in the eth0_init.sh line to use "head -1": GATEWAY_IP=$(route -n | grep "UG" | head -1 | awk -F' ' '{print $2}')

The camera boots by itself, gets ethernet IP, homeassistant/frigate connects to it and does motion detection. The WyzeApp still sees the camera using WiFi (perhaps because I am unable to kill Wifi completely despite wlan0_kills script above).