Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Build Status js-standard-style

luftstatus-lifx

Change the colour of your Lifx lightbulb according to air pollution status from luftstatus.no

Setup

Get a token from https://cloud.lifx.com/settings, then add the value to url config.js.

Pick your area from this list, then add the value to area in config.js

Start

$ npm start

As long as it runs the script will check the status every pollIntervalMinutes (defaults to 60)

Use with cli

Run once

npx luftstatus-lifx -a grenland -t <LIFX-TOKEN>

Run every 1 minute

npx luftstatus-lifx -a bergen -t <LIFX-TOKEN> -i -p 1
Option Description
-a, --area area to monitor (required)
-t, --token lifx token (required)
-u, --url Lifx api url
-i, --interval Turn on poll interval
-p, --poll-interval-minutes Poll interval
-v, --version Output the version number
-h, --help Display help

Preview

License

MIT

About

Change the colour of your Lifx lightbulb according to air pollution status

Resources

License

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •