0.0.14 • Published 8 years ago

homebridge-unicorn v0.0.14

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

homebridge-unicorn

Homebridge shim for my own homegrown sensor platform.

Installation

  1. Install homebridge using: npm install -g homebridge
  2. Install this plugin using: npm install -g homebridge-unicorn
  3. Update your configuration file. See sample-config.json in this repository for a sample.

Configuration

Configuration sample file:

"accessories": [
       "accessories": [
       {
           "accessory": "unicorn",
           "name": "Living Room Weather",
           "url": "http://192.168.1.210/weather",
           "sendimmediately": "",
           "http_method": "GET"
       }
   ]

The /weather endpoint will return a json looking like this

{
	"temperature": 25.8,
	"humidity": 38
}

This plugin acts as an interface between a web endpoint and homebridge only.