Socket
Book a DemoInstallSign in
Socket

homebridge-http-temperature-humidity

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-http-temperature-humidity

https plugin for homebridge

latest
Source
npmnpm
Version
0.0.18
Version published
Maintainers
1
Created
Source

homebridge-http-temperature-humidity

Supports https devices on HomeBridge Platform

Installation

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

Configuration

Configuration sample file:

"accessories": [
       "accessories": [
       {
           "accessory": "HttpTemphum",
           "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. 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.

Keywords

homebridge-plugin

FAQs

Package last updated on 12 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts