shin4299 / homebridge-airkorea

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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": "",
    "polling": true
  }
],

Details

Field Required Default Description
accessory yes AirKorea Must always be AirKorea
name yes AirKorea Can be specified by user
api_key yes Obtain from http://www.data.go.kr
sensor no air_quality Must be air_quality
station yes Search station name from http://www.data.go.kr
polling no false Must be true or false (must be a boolean, not a string)

About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%