12-09-2020, 07:26 PM
Having a static time preference is problematic for day/night switch. This requires constant updates.
If the day/night switch used a sunset/sunrise option - with an +/- time offset for personal preference, then it would manage itself without having to wire in additional GPIO connections.
The functions that find sunset/sunrise need a date and some local info, like a city (for longitude/latitude), to calculate the time dynamically.
If the day/night switch used a sunset/sunrise option - with an +/- time offset for personal preference, then it would manage itself without having to wire in additional GPIO connections.
The functions that find sunset/sunrise need a date and some local info, like a city (for longitude/latitude), to calculate the time dynamically.