Skip to content

Simple Node.js app for setting the colour of a LIFX bulb based on the current weather forecast

Notifications You must be signed in to change notification settings

chrishutchinson/lifx-darksky-weather-bulb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

💡 LIFX + Dark Sky weather bulb

Simple Node.js app for setting the colour of a LIFX bulb based on the current weather forecast

About

This simple script:

  • Loads the weather from Dark Sky for a given location (LONGITUDE and LATITUDE can be configured in your .env file)
  • Connects to your LIFX bulb over the local network (LAN)
  • Sets the colour of your LIFX bulb based on the icon property of the weather in 8 hours time

You could choose to run this script automatically every hour (or more / less frequently).

Usage

  • Duplicate .env.example to .env and fill in the values. You can get a Dark Sky API key here
  • Install the dependencies using $ npm install or $ yarn
  • Run the script using $ node index.js

About

Simple Node.js app for setting the colour of a LIFX bulb based on the current weather forecast

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published