{"id":21399283,"url":"https://github.com/streamr-dev/mqtt-streamr","last_synced_at":"2025-07-18T16:36:17.961Z","repository":{"id":40934469,"uuid":"188438193","full_name":"streamr-dev/mqtt-streamr","owner":"streamr-dev","description":"Command-line utility for bridging data from MQTT to Streamr","archived":false,"fork":false,"pushed_at":"2025-02-05T09:40:41.000Z","size":1742,"stargazers_count":4,"open_issues_count":9,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-10T16:51:10.224Z","etag":null,"topics":["command-line-tool","data","integration","mqtt","streamr","utility"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/streamr-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-24T14:41:50.000Z","updated_at":"2025-02-05T09:40:44.000Z","dependencies_parsed_at":"2024-03-04T18:10:41.967Z","dependency_job_id":"e28a259c-57de-45e1-8ab3-4f570397b6f3","html_url":"https://github.com/streamr-dev/mqtt-streamr","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/streamr-dev/mqtt-streamr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fmqtt-streamr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fmqtt-streamr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fmqtt-streamr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fmqtt-streamr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/streamr-dev","download_url":"https://codeload.github.com/streamr-dev/mqtt-streamr/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/streamr-dev%2Fmqtt-streamr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265200081,"owners_count":23726768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","data","integration","mqtt","streamr","utility"],"created_at":"2024-11-22T15:14:00.184Z","updated_at":"2025-07-18T16:36:17.935Z","avatar_url":"https://github.com/streamr-dev.png","language":"JavaScript","readme":"# mqtt-streamr\n\nA command line utility for bridging data from a MQTT broker to [Streamr Network](https://streamr.network) with\nstream auto-creation and other useful features. This utility is basically a script with a MQTT client and a Streamr light node, and some code to glue the two together.\n\n## Installation\n\n```\nnpm install -g @streamr/mqtt-streamr\n```\n\n## Usage\nTo get help, including a list of all the command-line options, simply run `mqtt-streamr`.\n\nMinimal usage: `mqtt-streamr --mqtt-url [mqtt-url] --topic [path] --private-key [key]`\n\n## Required options\n\n`--mqtt-url [url]`\n\nThe MQTT server URL to connect to, for example `--mqtt-url wss://some-mqtt-server.com`.\n\n`--topic [topic]`\n\nMQTT topic/path to subscribe to. Give this option multiple times to subscribe to several topics.\nCan include wildcards. Example: `--topic /home/bedroom/lamp`\n\n`--private-key [key]`\n\nEthereum private key to use on the Streamr Network. If you don't have one, you can export a key from a wallet like [Metamask](https://metamask.io/) or generate a private key [here](https://vanity-eth.tk/).\n\n## Additional options\n\n`--verbose`\n\nGive this option to print all the data to the console.\n\n`--public`\n\nGive this option to make all created streams publicly readable. By default, created streams are\nprivate to you.\n\n`--stream-name-template [template]`\n\nDefault: `$topic`\n\nGive this option to set how the stream name is constructed from the MQTT topic. \nThe string `$topic` in the template is replaced by the actual topic. \nExample: `My MQTT topic: $topic`.\n\nNote that you can direct all data go to a single stream by just defining its name **without** the\nplaceholder `$topic` in it.\n\n`--stream-id [id]`\n\nIf this option is given, all data will be published to a single pre-existing stream with this id. Topic auto-creation will be disabled.\n\n`--topic-levels [num]`\n\nDefault: (unlimited)\n\nNumber of topic levels to include when auto-creating streams, while truncating subsequent \ntopic hierarchy levels. For example, data in `/europe/switzerland` and `/europe/finland` \nwould both be produced to stream `/europe` if the topic-level is set to 1.\n\n`--transform [jsonata-syntax]`\n\nGive this option to transform JSON messages before producing them to Streamr. This option follows the \n[JSONata syntax](https://docs.jsonata.org). By default no transform is applied.\n\n`--log-interval [num]`\n\nDefault: 60\n\nStats logging interval in seconds.\n\n`--reconnect-on-data-timeout [num]`\n\nDefault: 900\n\nIf no data is received for this period of time, try to reconnect to the MQTT broker. The default is 15 minutes. \nSet to 0 to disable.\n\n`--dry-run`\n\nIf this option is given, the script doesn't really create streams or produce data to Streamr.\nIt just reads from the MQTT broker and logs the data to console.\n\n## License\n\nAGPLv3, see [LICENSE](LICENSE).\n\n## TODO\n\n- Utility for the other direction (Streamr to MQTT)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamr-dev%2Fmqtt-streamr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstreamr-dev%2Fmqtt-streamr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstreamr-dev%2Fmqtt-streamr/lists"}