
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
dht-express
Advanced tools
Express webserver serving DHT11/ DHT22 sensor data build for https://github.com/lucacri/homebridge-http-temperature-humidity
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 0 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.