Homebridge plugin for the AirKorea API
- Install homebridge using the instructions at https://github.com/nfarina/homebridge#installation
- Install this plugin using:
npm install -g https://github.com/slasherLee/homebridge-airkorea
- Register for an account and get an API key at http://www.data.go.kr
- Update the Homebridge configuration file
Example config.json:
"accessories": [
{
"accessory": "AirKorea",
"name": "AirKorea",
"sensor": "air_quality",
"api_key": "",
"station": "",
"polling": true
}
],
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) |