homebridge-httptemperaturehumidity

0.0.17 • Public • Published

homebridge-http-temperature-humidity

A HTTP(S) temperature and humidity accessory for Homebridge.

Installation

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

Configuration

Sample configuration:

"accessories": [
    {
        "accessory": "HttpTemphum",
        "name": "Living Room Weather",
        "url": "http://192.168.1.210/weather",
        "httpMethod": "GET",
        "humidity": true,
        "cacheExpiration": 60
    }
]

Set humidity to false if your HTTP endpoint doesn't include a humidity reading.

The cacheExpiration option specifies, in seconds, how long HTTP responses will be stored in the in-memory cache.


Your HTTP(S) endpoint should produce JSON that looks like this:

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

This plugin only acts as an interface between a web endpoint and Homebridge. You will still need some dedicated hardware to expose the web endpoints with the temperature and humidity information. In my case, I used a simple NodeMCU board and a DHT11 (or DHT22). Check my other repo for the NodeMCU code.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.171latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.171
0.0.160
0.0.150
0.0.140
0.0.130
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60
0.0.50
0.0.40
0.0.30
0.0.20
0.0.10

Package Sidebar

Install

npm i homebridge-httptemperaturehumidity

Weekly Downloads

1

Version

0.0.17

License

ISC

Unpacked Size

16.7 kB

Total Files

5

Last publish

Collaborators

  • lucacri