1.0.4 • Published 7 months ago

ruuvitag-database v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months 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

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago