Sleep mode for Wifi and small delay main loop added. Should reduce the power consumtion significantly.
Power consumption can still be improved but this would make a change in behaviour neccessary. The clock should not be constantly available via Wifi but only ~5 Minutes after power up. Then the Wifi can be completely turned off and only switched on to synchronize the time via NTP server.
Wifi Off -> Deep sleep possible. Deep sleep would only be interrupted for scheduled events:
When is the next animation going to be displayed?
When does the displayed time need to be updated?
--> Calculate sleep timeout and wake up at the right time, then go to deep sleep again.
Sleep mode for Wifi and small delay main loop added. Should reduce the power consumtion significantly.
Power consumption can still be improved but this would make a change in behaviour neccessary. The clock should not be constantly available via Wifi but only ~5 Minutes after power up. Then the Wifi can be completely turned off and only switched on to synchronize the time via NTP server.
Wifi Off -> Deep sleep possible. Deep sleep would only be interrupted for scheduled events: