You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
n0m1s 36899c298a
refactor drawing code
6 years ago
html refactor drawing code 6 years ago
clock.cpp better clock log messages 6 years ago
clock.h NTP next timestamp instead of last timestamp 6 years ago
clock_settings.cpp bugfix: cooldown was not fetched from settings 6 years ago
clock_settings.h time zone support 6 years ago
lamp.ino NTP & RTC clock handling 6 years ago
readme.md time zone support 6 years ago
settings.cpp changed NULL to nullptr 6 years ago
settings.h clock settings 6 years ago
settings.ini time zone support 6 years ago
string_builder.cpp numbers in string builder 6 years ago
string_builder.h numbers in string builder 6 years ago
string_helper.cpp removed useless doxygen author block 6 years ago
string_helper.h moved string functions to their own file 6 years ago
wifi.cpp fix: wifi connection test 6 years ago
wifi.h connect to wifi 6 years ago
wifi_settings.cpp wifi settings 6 years ago
wifi_settings.h wifi settings 6 years ago

readme.md

#Lamp

A homemade dawn simulation lamp. The time is kept using a real-time clock, coupled with an NTP connection to avoid drift.

##Material

  • ESP8266-powered board (such as the Wifi D1 mini from RobotDyn)
  • Real-time clock + SD card shield (such as the Data logger shield, or two separate shields)
  • Light dimmer (such as this one)
  • Switches (1 temporary rocker and 1 on-on rocker)
  • Light bulb + connectors

##Hardware installation TODO

##Software installation Pre-requisite: a TimeZone database API key is needed to convert from UTC to the local timezone

  1. Install the Arduino IDE
  2. Install the ESP8266 arduino extension
    1. add https://arduino.esp8266.com/stable/package_esp8266com_index.json to the "Additional Boards Manager URLs" field in the IDE's preferences
    2. Install the extension via the "boards manager" of the IDE
  3. Configure the board (LOLIN(WEMOS) D1 R2 & mini if using the one from the "material" section)
  4. Compile and Upload to the board
  5. Copy the settings.ini file to the SD card (and change the settings if needed)
  6. Power up everything