Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Reboot on ping Fail? #119

Closed
BiatuAutMiahn opened this issue May 17, 2021 · 6 comments
Closed

[Feature Request] Reboot on ping Fail? #119

BiatuAutMiahn opened this issue May 17, 2021 · 6 comments

Comments

@BiatuAutMiahn
Copy link

BiatuAutMiahn commented May 17, 2021

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
Copy link
Owner

HclX commented May 18, 2021

Don't we already have NFS disconnect detection?

@BiatuAutMiahn
Copy link
Author

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
Copy link

endertable commented May 21, 2021

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
Copy link
Author

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

@endertable
Copy link

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
Copy link
Author

ok, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants