Close

New revision of software works better offline

A project log for Web-connected automatic sunset lamp

A web-connected ESP8266 controller to turn on a lamp at sunset. Useful if the wiring is far from a location where daylight may be sensed.

bredmanbredman 06/16/2017 at 12:400 Comments

The software is updated to remove the need to fetch the sunset time from sunrise-sunset.org. This means that the software will continue to run for years in the future, even if this API is removed.

The software now reads a file (sunset.txt) to find the sunset time for each day. The current date/time is fetched from google.com. Let's hope that google.com will still exist in years to come!

Discussions