mqtt-db-sync

1.0.0 • Public • Published

mqtt-db-sync

Synchronise MQTT messages with storage systems like Firebase, MySQL or MongoDB

Installation

Install the tool with npm:

npm install -g mqtt-db-sync

Usage Examples

Send all topics to Firebase:

mqtt-db-sync \
  --mqtt.url mqtt://mqtt.server.com \
  --mqtt.query "#" \
  --firebase.database https://my-firebase-database \
  --firebase.serviceAccount /path/to/service-account.json

Send a filtered list of topics to Firebase

mqtt-db-sync \
  --mqtt.url mqtt://mqtt.server.com \
  --mqtt.query "/device/+/temperature" \
  --firebase.database https://my-firebase-database \
  --firebase.serviceAccount /path/to/service-account.json

Prepend text to the topic before sending to Firebase

mqtt-db-sync \
  --mqtt.url mqtt://mqtt.server.com \
  --mqtt.query "/device/#" \
  --firebase.database https://my-firebase-database \
  --firebase.serviceAccount /path/to/service-account.json \
  --firebase.prepend "/sensors"

Parameters

General

-v, --verbose

Log everything to stdout.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i mqtt-db-sync

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • lukevenediger