Skip to content

PeterBrain/homebridge-http-temperature-humidity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

homebridge-http-temperature-humidity

Supports https devices on HomeBridge Platform

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

Configuration sample file:

"accessories": [
   {
       "accessory": "HttpTemphum",
       "http_method": "GET",
       "name": "Living Room Weather",

       "manufacturer": "",
       "model": "",
       "serial": "",

       "url": "http://192.168.1.210/weather",
       "humidity": true,
   }
]

The /weather endpoint has to return a json looking like this

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

This plugin acts as an interface between a web endpoint and homebridge only. 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.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%