WxBeacon2
WxBeacon2
https://weathernews.jp/smart/wxbeacon2/normal.html
Environment Sensor 2JCIE-BL01
https://www.components.omron.com/web/en/solutions/mems-sensors/environment-sensor
OmronMicroDevices/envsensor-observer-py
https://github.com/OmronMicroDevices/envsensor-observer-py
Gathers eight environmental information.
- temperature
- humidity
- light
- uv index
- pressure
- noise
- discomfort index
- heatstroke risk indicator
Bluetooth Module
Bluetooth®4.0+EDR/LE対応 USBアダプター BSBT4D09BK
http://buffalo.jp/product/peripheral/wireless-adapter/bsbt4d09bk/
Requirements
- Ubuntu 16.04 (Running on ESXi6.5)
- node.js
- noble
- ambient-lib
- date-utils
sudo apt-get install -y nodejs npm
npm install noble
npm install ambient-lib
npm install date-utils
wx2ambi.js
- Run wx2ambi.js as root
sudo node ./wx2ambi.js
on -> stateChange: poweredOn
on -> scanStart
on -> discover: undefined
on -> discover: undefined
on -> discover: Env
12:34:56:ab:cd:ef
on -> scanStop
on -> connect
No=8
Temp=17.27 ℃
Humidity=97.92 %
Luminosity=916 lx
UV Index=0.05
Atom=1010.1 hPa
Noise=35.89 dB
Discomfort index=63.02
Heat=20.85 ℃
Battery=2.928 mv
on -> disconnect
Sat Oct 21 2017 12:40:30
200