yi-hack-v4 icon indicating copy to clipboard operation
yi-hack-v4 copied to clipboard

TO DO (suggest ) - Reboot schedule

Open nelutzu777 opened this issue 4 years ago • 1 comments

I suggest implementing a Reboot schedule. Why: I use GDriveUploader, I noticed that the cameras freeze and no longer load on the GDrive. After rebooting cameras via telnet or web, everything returns to normal, old folders removed from Drive and uploaded new ones. I use YI Home 47US and YI Home 48US. On both models they periodically encounter this problem (Once a week for sure). I assume it has to do with loss internet connection for couple seconds , respectively the GDRIVE script catches an error and stops. All the IP cameras I have met, even routers, have "service reboot time" in the settings and you can choose "daily", "weekly" or "monthly". Thanck you

nelutzu777 avatar Feb 26 '21 12:02 nelutzu777

Same issue with yi_home_1080p, system freezes and even no respond with ping from other device. Unplug and replug can make device back online but freeze again days later. Tried to schedule remote ssh command from openwrt but failed with shell file.

Below is content in .sh file

#!/bin/sh sshpass -p root ssh [email protected] '/home/base/tools/reboot'

output info shows below

$ sh /etc/yi-cam_rbt.sh killall: watch_process: no process killed killall: mp4record: no process killed killall: recbackup: no process killed /home/app/localbin/reboot_by_watchdog: can't load library 'librt.so.0' umount: can't unmount /tmp/cifs: No such file or directory

command below works if is used on yi-cam ssh terminal directly.

/home/yi-hack-v4 # /home/base/tools/reboot killall: watch_process: no process killed killall: mp4record: no process killed killall: recbackup: no process killed umount: can't unmount /tmp/cifs: No such file or directory

Any suggestions for remote reboot command?

Thanks

dengke80622 avatar Nov 19 '21 08:11 dengke80622

After some research, here's how I solved it:

  1. connect via TELNET or SSH to the camera crontab -e Press "o" (Letter "O" - Oliver, to add new line VI editor) 0 3 * * * reboot now (reboot at 3:00AM daily) Press Esc, type :wq and press enter to exit vi reboot

I use JuiceSSH for Android, so others may have other commands to save and edit

nelutzu777 avatar Oct 27 '22 09:10 nelutzu777