1.1.4 • Published 4 years ago

homebridge-http-thermometer-custom v1.1.4

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

homebridge-http-thermometer

npm npm

Description

This homebridge plugin exposes a web-based thermometer to Apple's HomeKit. Using simple HTTP requests, the plugin polls your home's temperature.

Installation

  1. Install homebridge
  2. Install this plugin: npm install -g homebridge-http-thermometer
  3. Update your config.json file

Configuration

"accessories": [
     {
       "accessory": "Thermometer",
       "name": "Thermometer",
       "apiroute": "http://myurl.com"
     }
]

Core

KeyDescriptionDefault
accessoryMust be ThermometerN/A
nameName to appear in the Home appN/A
apirouteRoot URL of your deviceN/A

Additional options

KeyDescriptionDefault
pollIntervalTime (in seconds) between device polls300
timeoutTime (in milliseconds) until the accessory will be marked as Not Responding if it is unreachable3000
http_methodHTTP method used to communicate with the deviceGET
usernameUsername if HTTP authentication is enabledN/A
passwordPassword if HTTP authentication is enabledN/A
modelAppears under the Model field for the accessoryplugin
serialAppears under the Serial field for the accessoryversion
manufacturerAppears under the Manufacturer field for the accessoryauthor
firmwareAppears under the Firmware field for the accessoryversion

API Interfacing

Your API should be able to return the temperature when it receives /status in the JSON format like below:

{
    "currentTemperature": FLOAT_VALUE
}
1.1.4

4 years ago