Nondeterministic Polynomial Munchies
Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

mqtt-firebase

1.1.1 • Public • Published

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

Install

npm i mqtt-firebase

DownloadsWeekly Downloads

3

Version

1.1.1

License

MIT

Unpacked Size

5.41 kB

Total Files

4

Last publish

Collaborators

  • avatar