2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Automatically upload WxBeacon2 data to Ambient

Last updated at Posted at 2017-10-21

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

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

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?