HclX / WyzeHacks

Hacks I discovered allowing Wyze camera owners to do customizations
MIT License
786 stars 75 forks source link

[Feature Request] Reboot on ping Fail? #119

Closed BiatuAutMiahn closed 3 years ago

BiatuAutMiahn commented 3 years ago

Can you implement a feature in the config that if an address cannot be ping'd (ie; 192.168.1.1) for like 60 seconds that the camera will reboot?

Thank you.

HclX commented 3 years ago

Don't we already have NFS disconnect detection?

BiatuAutMiahn commented 3 years ago

Don't we already have NFS disconnect detection?

It does recover as far as I can tell, nonetheless this would still be a useful feature

endertable commented 3 years ago

You can use the custom script feature Wyzehacks has and just create your own script for this. If you don’t know shell scripting let me know, I can lead you to some that have already been written for similar purpose.

BiatuAutMiahn commented 3 years ago

The custom script applies only if NFS mount is active right?

endertable commented 3 years ago

If you edit /configs/WyzeHacks.sh, youcan put a call to your script in there and end it with an ampersand to let it run in background as a daemon and monitor the network, and restart network or reboot cam as needed. Of course, first thing in your script should be a sleep 60 to allow iCamera to do the initial network startup.

BiatuAutMiahn commented 3 years ago

ok, thank you