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

Random camera reboots #273

Open
Cybis320 opened this issue Mar 3, 2024 · 1 comment
Open

Random camera reboots #273

Cybis320 opened this issue Mar 3, 2024 · 1 comment

Comments

@Cybis320
Copy link
Contributor

Cybis320 commented Mar 3, 2024

Regarding the camera auto reboot at 15:00, The cameras don't have batteries. When unpowered, they subsequently resume running the clock from whatever last time was stored. They lose about ~30 sec per day from daily reboots on top of other power events. If one set the clock with CMS on a PC then leave the camera unpowered for some time, it's impossible to predict when the camera will reboot.

They are a couple potential solutions to this. One could enable the camera NTP feature so that its clock gets updated regularly, or the auto-reboot could be disabled and a script containing a reboot command run before or after each run. This would work for any time zone.

Personally, I've disabled auto reboot and I'm running a script with a reboot before each run. It works well for me because I'm running a night script and a day script with different settings.

What are your thoughts on implementing this? I agreed that losing ~50sec of data a night is really not a big deal but it's just cleaner not to have these random reboots.

@markmac99
Copy link
Contributor

Yes, the cameras do lose time if powered off.

If you experience frequent power outages then the simplest solution is to run a script that executes python -m Utils.CameraControl CameraTime set yyyymmdd_hhmmss whenever the pi boots. The daily reboot setting should then work as configured. This would have the advantage of ensuring the camera's internal clock was correct (though we don't actually use it).

Configuring NTP is not straightforward, since the camera modules don't usually have internet access (they're on a private subnet connected only to the Pi). So one would need to run an ntp server on the Pi itself which would certainly be possible but is probably outside RMS's scope. In my own case i run an ntp server on my home network and my cameras are connected via a router, but most users don't have this option.

I'd be happy to add a specific Script to set the camera clock, which users could optionally execute as desired?

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

2 participants