1.0.3 • Published 6 years ago

luftstatus-lifx v1.0.3

Weekly downloads
7
License
MIT
Repository
github
Last release
6 years ago

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
OptionDescription
-a, --areaarea to monitor (required)
-t, --tokenlifx token (required)
-u, --urlLifx api url
-i, --intervalTurn on poll interval
-p, --poll-interval-minutesPoll interval
-v, --versionOutput the version number
-h, --helpDisplay help

License

MIT

Robohash image of luftstatus-lifx

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago