Ubuntu
IoT
BluetoothLowEnergy
Ambient
WxBeacon

Automatically upload WxBeacon2 data to Ambient

More than 1 year has passed since last update.

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/

https://www.amazon.co.jp/gp/product/B0096FIF0C/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1

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

https://qiita.com/KazuyukiEguchi/items/32c6497496923783fa53

https://gist.github.com/yoshidaken1/10bb1c601d242665e6a438b01ab4c348

https://speakerdeck.com/kyoshida/wxbeacon2falseqi-xiang-tetawoambientniding-qi-de-niupsuru

  • 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

Ambient

https://ambidata.io/ch/channel.html?id=2430