Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@abandonware/bmp085-sensor
Advanced tools
A module to interface a BMP085 temperature and pressure sensor to the raspberry pi.
Access a BMP085 temperature & barometric pressure sensor from your Raspberry Pi using Node.js.
$ npm install bmp085-sensor
With no units specified, returns inHg and degree F.
var bmp085 = require('bmp085-sensor');
var sensor = bmp085({address: 0x77,
mode: 3});
sensor.calibrate(function (err, data) {
if(err || !data) {
throw err;
}
console.log(data);
sensor.read(function (err, data) {
if(err || !data) {
throw err;
}
// data is { pressure: 29.957463223223005, temp: 68.9 }
});
});
You can also specify metric units, returning Pa and degree C:
var bmp085 = require('bmp085-sensor');
var sensor = bmp085({address: 0x77,
mode: 3,
units: 'metric'});
sensor.calibrate(function (err, data) {
if(err || !data) {
throw err;
}
console.log(data);
sensor.read(function (err, data) {
if(err || !data) {
throw err;
}
// data is { pressure: 101435.97, temp: 20.5 }
});
});
make runtime=iotjs
# iotjs test.js
# ...
# "temperature": 32.3
# "pressure": 100855.38749926083,
# ...
FAQs
A module to interface a BMP085 temperature and pressure sensor to the raspberry pi.
The npm package @abandonware/bmp085-sensor receives a total of 7 weekly downloads. As such, @abandonware/bmp085-sensor popularity was classified as not popular.
We found that @abandonware/bmp085-sensor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.