Simple Node.js app for setting the colour of a LIFX bulb based on the current weather forecast
This simple script:
- Loads the weather from Dark Sky for a given location (
LONGITUDEandLATITUDEcan be configured in your.envfile) - Connects to your LIFX bulb over the local network (LAN)
- Sets the colour of your LIFX bulb based on the
iconproperty of the weather in 8 hours time
You could choose to run this script automatically every hour (or more / less frequently).
- Duplicate
.env.exampleto.envand fill in the values. You can get a Dark Sky API key here - Install the dependencies using
$ npm installor$ yarn - Run the script using
$ node index.js