1.0.1 • Published 7 years ago

node-metawear v1.0.1

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

Build Status Downloads Dependencies

Introduction

nodejs library for MetaWear platform from https://www.mbientlab.com/

Installation

Build package from repository:

git clone git@github.com:brainexe/node-metawear.git
cd node-metawear
npm install

An alternative is to install the NPM module directly:

npm install node-metawear

Additionally you have to follow some steps, depending of your OS

Linux (Ubuntu / RaspberryPi)

Install required system packages

sudo apt-get install bluetooth bluez-utils libbluetooth-dev

This command grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising. Then you don't need the "sudo" prefix anymore:

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

ChromeOS

Same as Linux, but the main difference here is that you’ll need to run Node through host-dbus, since it’s accessing the Bluetooth adapter attached through Chrome OS.

sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
export DEBUG="noble-device" 
host-dbus node examples/all.js

thx to Lance

Mac OS

npm install
DEBUG="noble-device" node examples/all.js

Run

Run examples in debug output

DEBUG="noble-device" node examples/all.js

Functions

The functionality is very limited at the moment:

  • Connection Parameters setup
  • Control LED
  • Start buzzer/motor
  • Read/Set Device name
  • Read switch status (+ pressed/release events)
  • Read out battery status
  • Accelerometer / Gyroscope
  • Step counter
  • Temperature sensor
  • Ambient light sensor
  • Barometer sensor
  • BMM150 Magnetometer
  • QUATERNION data from SensorFusion, ONLY FOR METAMOTION R Boards !!

Next release -> v1.1.0

  • SensorFusion - NDOF mode support for all output types
  • Acceleromter - TAP_CONFIG, ORIENT_CONFIG, FLAT_CONFIG, LOW_HIGH_G_CONFIG
  • Refactoring of the sensor configuration implementation

Note : The versioning restarted at v1.0.0 in order to better handle the major and minor releases as from now.

Run unit tests

npm install -g jasmine
npm test
1.0.1

7 years ago

1.0.0

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.3

7 years ago

0.3.2

8 years ago

0.3.1

8 years ago

0.3.0

8 years ago

0.2.4

8 years ago

0.2.3

8 years ago

0.2.2

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago