1.0.0 • Published 9 years ago
mqtt-db-sync v1.0.0
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-syncUsage 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.jsonSend 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.jsonPrepend 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, --verboseLog everything to stdout.
1.0.0
9 years ago