Observed since 20 Oct, 19:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2jcie-ble-decode
A simple package to decode the data frames sent by the 2JCIE-BU sensor from Omron
A simple package to decode the data frames sent by the 2JCIE-BU01 sensor from Omron
This package will allow for easy BLE interfacing with the 2JCIE-BU01 sensor from Omron. There are similar sensors that may also work, but are not tested.
There's no support (in this package) for reading data via USB.
This package is capable of decoding both "Sensor Data" and "Calculation Data" message types. The sensor only transmits "Sensor Data" by default, but you can use Omron's mobile app to configure it to send both.
| Platform | App Link |
|---|---|
| App Store | ENV Monitor |
| Google Play | ENV Monitor |
npm i --save 2jcie-ble-decodeconst Sensor = require('2jcie-ble-decode');
const sensor = new Sensor();
(() => {
// Listener for all events
sensor.on('event', (data) => console.log(data));
// Listeners for specific event types (options are 'calculation' and 'sensor')
sensor.on('calculation', handleCalculationData);
sensor.on('sensor', handleSensorData);
// Listener for error events
sensor.on('error', handleErrors);
}) ();
The constructor accepts an options object which can be omitted to accept defaults:
const sensor = new Sensor();
You can provide an options object parameter to the Sensor() constructor as follows:
const sensor = new Sensor({
// Activate test mode, which doesn't require Bluetooth hardware or a sensor.
// You will receive alternating sample "sensor" and "calculation" events ever 1s
// Sample events defined in ./mock/example.js
testMode: false, // defaults to false
// Activate the whitelist. Ignore any events not originating from one of these addresses
whitelist: [ 'yourSensorMAC' ],
// If omitted, a Barnowl instance will be created and register the BarnowlHci listener
// Use this if you already have a Barnowl instance in your project and you just want to
// add the ability to process Omron data frames.
barnowl: existingBarnowlInstance,
// Minimum number of seconds to wait before emitting another reading.
interval: 5
});
Output will be in the following format:
{
"dataType": 3,
"sequenceNumber": 54,
"temperature": 23.97,
"relativeHumidity": 49.25,
"ambientLight": 361,
"barometricPressure": 1018.602,
"soundLevel": 51.58,
"eTVOC": 25,
"eCO2": 565,
"messageType": "sensor",
"temperatureF": 75.146,
"deviceId": "d13e50866f01"
}
{
"dataType": 3,
"sequenceNumber": 54,
"discomfortIndex": 70.36,
"heatStrokeRisk": 20.26,
"vibration": 0,
"siValue": 0,
"peakGroundAcceleration": 0,
"seismicIntensity": 0,
"accXAxis": 894.3,
"accYAxis": 6305.9,
"accZAxis": 6249.9,
"messageType": "calculation",
"deviceId": "d13e50866f01"
}
OMRON 2JCIE-BU01 Manual: https://omronfs.omron.com/en_US/ecb/products/pdf/A279-E1-01.pdf
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
advlibEnvironment{
"local_name": "advlib",
"alias": false,
"peer_metadata": null
} | ^0.1.4 | runtime |
barnowlEnvironment{
"local_name": "barnowl",
"alias": false,
"peer_metadata": null
} | ^1.1.0 | runtime |
barnowl-hciEnvironment{
"local_name": "barnowl-hci",
"alias": false,
"peer_metadata": null
} | ^0.2.1 | runtime |
binary-parserEnvironment{
"local_name": "binary-parser",
"alias": false,
"peer_metadata": null
} | ^1.6.2 | runtime |
eventsEnvironment{
"local_name": "events",
"alias": false,
"peer_metadata": null
} | ^3.1.0 | runtime |
Source distribution
{
"integrity": "sha512-inrS0GpqI9XZZUITm6YhAAsr8mPkRNPGHHc3IQnG8/0ibCt+B2yKX+ZVte0we0JKg0HzJM2noxHCYCInsZDbXQ==",
"shasum": "29a3d09d67435895e50a2736516b3420672b0a37",
"tarball": "https://registry.npmjs.org/2jcie-ble-decode/-/2jcie-ble-decode-0.0.3.tgz",
"fileCount": 6,
"unpackedSize": 14305,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe4pMdCRA9TVsSAnZWagAAC+MQAKEXP0Xvu/928LCv+ctX\napSZtZnv806LtY5xmCkUb/Tm+xSeW+VthTf5dJp/tIrjaObVX+I0LC43h2nY\nhH3qBUZ3JYXp/sC7RNF0BdVIntmhXvAv95lYGxzq55eSq8EA80ycR++qy4K4\n+ZCEx5AMoMm0v4TKZIX6HPDTePLCcwnrIM4ml6KnUueyJHsIaGUyunYnr4yL\n40kIA1ja1+YrY/CwxUIWNdEyBos/3is+OOhuZg9647WJ0tqcPbxBPQVb3Tm0\neJtgx2xl5NBaF5DF5oR5eLkk5GafWlbQ9f/Q6/RAfaKxoiU/j/wvBen7Fzr+\n1fvQ2cnDpYVSkfQ3/nJ/xC7X9dyWtSlENIlMnJF9wwtwzZ4VG2cJcTii13wt\n7ilEZl5yrGoMvK1evzLKv3Sw4kcfbPAA8K0bzVBGjvw6AEobRUT44K7PnnNn\nvZr7h/zIf27NZuJrYgX0AeK3cua5AwfkXGU8bALJp83jVlK+dw+XR6ObIkAR\n9xNxcaU6TMFazbkwHZzPPiVR5PIY/o4X0XNpbq4/Dm5u5fwosL2nkVgB/98N\nhvBs4nPAGN4ELvhzdJSLiz4HvB7kA6f3Rj/nMtcVnn2w+FPclU5NgSOj2FjK\nHHpCQz0jJWevI2awdpH3jrj5MlCNMVFYrvY7ATujk4OHlgtdIep59Mfli85Z\n+lFB\r\n=Hp6F\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQC+GWzfRowBhpeZSCEjOG+xdjlu1IrkI38xL8iiIRPwpwIgUx0GtIFVtU4rJjViswxxd7l82HCHAjXG9UXmw8vbIuk="
}
]
}Shared repository data · GitHub
Observed since 20 Oct, 19:14 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:112f552fb8e1f83b60278564f36a9ac94cf28022f0efbdc6b7e0ff857ffc9c6a