Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/apexskier/smart-light

An Arduino brain for my touch lamp
https://github.com/apexskier/smart-light

arduino esp8266 iot lighting

Last synced: 29 days ago
JSON representation

An Arduino brain for my touch lamp

Awesome Lists containing this project

README

        

# Smart Light

I decided to put an Arduino inside my touch lamp.

My lamp orginally had three levels of lighting and an off state. Touching
cycled through these. The most basic thing I wanted was to turn off if I hadn't
touched in a while, so I don't blind myself when turning my light off before
bed.

I ended up deciding on using an LED, and then decided on an RGB LED. This means
I can do color, so I decided to turn it into a [wake up
light](https://www.usa.philips.com/c-m-li/light-therapy/wake-up-light/latest#filters=WAKEUP_LIGHT_SU&sliders=&support=&price=&priceBoxes=&page=&layout=12.subcategory.p-grid-icon).

## UI

The light provides a web UI intended to be installed to your phone's
homescreen, as well as several HTTP routes for control.

Visit the IP of your light to see it.

![Web UI](https://raw.githubusercontent.com/apexskier/smart-light/master/ui.png)

## Dev notes

Set your wifi network's ssid and password in `light.ino` and don't commit it to
git.

I increased the [number of possible
alarms](https://github.com/PaulStoffregen/TimeAlarms/blob/master/TimeAlarms.h#L10)
to 14.

To generate html, I edit `index.html`, then run `./html.sh`. This overwrites
the first two lines of `server.ino`.