kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
642 stars 78 forks source link

Improvement: Setting the timetable based on the sunlight automatically #71

Open olokos opened 1 year ago

olokos commented 1 year ago

So I see that there's a timetable, which is really nice, but I think it would be much more useful, if it could be set automatically based on daytime and sun position.

So if there's no sun up, no light for the camera it's pointless to record recordings that aren't really usable.

https://github.com/kelvins/sunrisesunset I've seen this library, it's been last updated in 2017 so I'm not sure.

Also this library takes the geolocation coordinates instead of timezone, I'm not really sure what would be the cleanest way to get the coordinates, without calling external APIs?