roleoroleo / yi-hack-Allwinner-v2

Custom firmware for Yi 1080p camera based on Allwinner platform
MIT License
866 stars 98 forks source link

No records during NAS/FTP online state #761

Closed hiagocosta closed 6 months ago

hiagocosta commented 1 year ago

Here I have a lot of electrical failures (storm season) but my NAS have an UPS to protect the disks. unfortunately, I got one power failure of that takes more time than my UPS can handle. and my NAS had turned off. the camera is connected to a "non-ups energy source", and it turned off when the energy powers down, but when it comes online again, the camera has started very first before the NAS. so my issue, is that all my recorded videos is not uploaded on NAS, because the connections has not stabilished between NAS and camera I guess and, all videos recorded on camera wasn't on SD Card and NAS.

what could be the issue? does the camera still records videos inside SDcard and upload after the connection with FTP? or it tries to upload, and without success, delete the videos?

roleoroleo commented 12 months ago

The script checks the return code of the upload and deletes the file only if the status is ok. And the cam tries to connect to the ftp server every time the script is executed. So, this problem shouldn't occur (if there are no bugs).

hiagocosta commented 10 months ago

Ok, thanks for the clarification.

github-actions[bot] commented 7 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.