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

Determine sunrise/sunset #61

Open
leighghunt opened this issue Sep 24, 2023 · 0 comments
Open

Determine sunrise/sunset #61

leighghunt opened this issue Sep 24, 2023 · 0 comments
Assignees

Comments

@leighghunt
Copy link
Member

Use location to determine sunrise/sunset time, and allow configuration to declare offset for setting time camera will turn on/off.

E.g. - `config.json'

    "daytime_starts_at_h": 6,
    "daytime_ends_at_h": 18,

becomes something like:

    "daytime_starts_at_h": sunrise-30m,
    "daytime_ends_at_h": sunset+1h,

Here's a good thread on some libraries: https://stackoverflow.com/questions/38986527/sunrise-and-sunset-time-in-python

Some other thoughts:

  • We could possibly use lat/lon, or perhaps a city name in config to work out times. City name might be easier to configure.
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