
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
homebridge-http-temperature
Advanced tools
http/s plugin for homebridge supporting temperature sensors
Supports http/https devices on HomeBridge Platform. This version only supports temperature sensors returning a JSON with the data or the raw data.
This plug-in 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 information. In my case, I used an Arduino board with Wifi capabilities.
npm install -g homebridgenpm install -g homebridge-http-temperatureThe available fields in the config.json file are:
url Endpoint URL (must start with http:// or https://).name Accessory name.auth Object with user and pass fields used to authenticate the request using basic http auth.debug Enable/disable debug logs (Default: false).field_name Field path that will be used from the JSON response of the endpoint.
Alternatively, if the field_name contains an empty string ("field_name": ""), the expected response is directly the current temperature value (Default: temperature).http_headers Object with headers for http requests.
See http.request documentation for more information.http_method HTTP method used to get the temperature (Default: GET).http_protocol http/https protocol to use (Default: infered from url).
Supported values are: "http" and "https".manufacturer Additional information for the accessory.min_temp Min. temperature that can be returned by the endpoint (Default: -100).max_temp Max. temperature that can be returned by the endpoint (Default: 130).model Additional information for the accessory.serial Additional information for the accessory.timeout Waiting time for the endpoint response before fail (Default: 5000ms).units Temperature units of the value returned by the endpoint.
Supported values are: "C" for Celsius and "F" for Fahrenheit (Default: 'C').update_interval If not zero, the field defines the polling period in milliseconds for the sensor state (Default is 120000ms).
When the value is zero, the state is only updated when homebridge requests the current value.The following sections provide different configuration examples.
For a ready-to-go example, see the sample-config.json file in the git repository.
"accessories": [
{
"accessory": "HttpTemperature",
"name": "Outside Temperature",
"url": "http://IP/path/to/endpoint"
}
]
"accessories": [
{
"accessory": "HttpTemperature",
"name": "Outside Temperature",
"url": "https://IP/path/to/endpoint",
"field_name": "temperature",
"auth": {
"user": "test",
"pass": "1234"
}
}
]
With this configuration, the endpoint should return a JSON with (at least) a temperature field.
It should look like:
{
"temperature": 25.8
}
If the defined endpoint returns something more complicated like:
{
"time": "YYYY-MM-DD HH:MM:SS",
"device_info": {
...
},
"values": [
{
"temp1": 31.5,
"temp2": 24.1
},
{
"temp1": 27.8,
"temp2": 29.3
}
]
}
The configuration to get temp2 from 1st set of values would look like:
"accessories": [
{
"accessory": "HttpTemperature",
"name": "Outside Temperature",
"url": "https://IP/path/to/endpoint",
"field_name": "values.[0].temp2",
}
]
FAQs
http/s plugin for homebridge supporting temperature sensors
We found that homebridge-http-temperature demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.