ModischFabrications / Verdandi_Code

Cooperative project to display an analog clock with digital RGB LEDs.
GNU General Public License v3.0
1 stars 0 forks source link

Turn off during specified time #15

Closed ModischFabrications closed 4 years ago

ModischFabrications commented 4 years ago

Night mode to make radio sockets obsolete.

[X] turn off between {23:00} and {07:00}

ModischFabrications commented 4 years ago

Modem sleep would give a lot better performance, but would lock out users during off-times.

ModischFabrications commented 4 years ago

This means that we can only turn of LEDs and skip the processor for now.

2 should use an element similar to this: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time

ModischFabrications commented 4 years ago

Using a Time for now, frontend can ignore seconds and millis

ModischFabrications commented 4 years ago

Introduce a state (enum) with INIT, RUNNING, NIGHTMODE

ModischFabrications commented 4 years ago

dim down with a configurable constant, brightness = set_brightness * relative((current_time + start_dimming)-time)

ModischFabrications commented 4 years ago

implemented with 4913f1f812a04986fdcdfd0a6f245abbd42d4344