1.1.1 • Published 5 years ago
mqtt-firebase v1.1.1
mqtt-firebase
A CLI tool for subscribing to MQTT topics and dumping them to a firebase firestore DB.
All messages are stored under an mqtt
collection where each doc is referenced by a timestamp and contains fields for topic
, timestamp
, and msg
.
Install
npm install -g mqtt-firebase
Setup
mqtt-firebase start \
--host <url> \
--username <username> \
--password <password> \
--firebase <path> \
--topics <list>
options
All options listed are required. You can also run mqtt-firebase start -h
for more details.
options | description |
---|---|
host | url for the MQTT broker. e.g. wss://mqtt.example.com |
username | username for MQTT broker if available |
password | username for MQTT broker if available |
firebase | relative path to firebase service account JSON config |
topics | list of comma seperated topics. e.g. test,test/nested |