Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dht-express
Advanced tools
Readme
A simple express webserver serving data of the DHT11/ DHT22 temperature and humidity sensors.
You need to install the Broadcom BCM 2835 libary first.
After that clone the repository.
git clone https://github.com/edjopato/dht-express.git
cd dht-express
npm install
If you want to include the endpoint in your existing Express webserver take a look in the topic at the end of the README
Remember to configure the webserver in the standalone.js after the comment
// add more sensors on routes here
app.use( '/', sensor( 11, 4 ) );
You have to configure the express route, the sensor type (11 or 22 for DHT11/ 22) and the pin.
This module uses the BCM2835 library through node-dht-sensor that requires access to /open/mem. Because of this, you will typically run node with admin privileges.
npm start
After that you can configure and run homebridge with the homebridge-http-temperature-humidity plugin.
npm install --save dht-express
you can use every other express router
var sensorRouter = requires('dht-express');
...
app.use( '/my/super/route', sensor( type, pin ) );
Don't forget the admin privileges of this module (run with sudo)
FAQs
Express webserver serving DHT11/ DHT22 sensor data build for https://github.com/lucacri/homebridge-http-temperature-humidity
The npm package dht-express receives a total of 2 weekly downloads. As such, dht-express popularity was classified as not popular.
We found that dht-express 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.