Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
@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 3 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.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.