Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
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
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.