1.0.4 • Published 2 years ago

ruuvitag-database v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

ruuvitag-database

Collects data from nearby RuuviTags to an SQL database.

Tested & confirmed to work on Raspberry Pi and M1 MacBook Pro.

Uses node-ruuvitag for interfacing with RuuviTags and Sequelize for database access.

Installation

  1. npm install ruuvitag-database
  2. Enable BLE access for noble

Usage

const initRuuviDB = require('ruuvitag-database');

// SQLite example, requires sqlite3 package to be manually installed
// `npm install sqlite3`
initRuuviDB({
  logging: false,
  dialect: 'sqlite',
  storage: './db.sqlite'
});

// Postgres example, requires pg package to be manually installed
// `npm install pg`
initRuuviDB({
  logging: false,
  dialect: 'postgres',
  host: 'localhost',
  database: 'ruuvitag',
  username: 'postgres',
  password: ''
});
1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago