This proof of concept consists of:
- Detects if lights are turned ON or OFF.
- If a change was detected, persist it in a DB.
I've made use of Tessel 2, Webtask and mLab. The latest two have free accounts and are used to persist the data.
- To run the tessel code:
t2 run ambient.js
- For the server side code I'm using the code at
server.js
for a webtask endpoint.