0.0.6 • Published 3 years ago

homebridge-airkorea v0.0.6

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
3 years ago

homebridge-airkorea

Homebridge plugin for the AirKorea API

Installation

  1. Install homebridge using the instructions at https://github.com/nfarina/homebridge#installation
  2. Install this plugin using: npm install -g https://github.com/slasherLee/homebridge-airkorea
  3. Register for an account and get an API key at http://www.data.go.kr
  4. Update the Homebridge configuration file

Configuration

Example config.json:

"accessories": [
  {
    "accessory": "AirKorea",
    "name": "AirKorea",
    "sensor": "air_quality",
    "api_key": "",
    "station": "",
    "creteria": "",
    "interval": 60,
    "polling": true
  }
],

Details

FieldRequiredDefaultDescription
accessoryyesAirKoreaMust always be AirKorea
nameyesAirKoreaCan be specified by user
api_keyyesObtain from http://www.data.go.kr
sensornoair_qualityMust be air_quality
stationyesSearch station name from http://www.data.go.kr
creterianokhaiYou can choose "khai|pm10|pm25" or "khai|pm10" or "pm25"
intervalno60(minutes)Can be specified by user, minutes(must be a number)
pollingnofalseMust be true or false (must be a boolean, not a string)
0.0.6

3 years ago

0.0.5

6 years ago

0.0.4

6 years ago