{"id":20594964,"url":"https://github.com/hackuarium/mqtt","last_synced_at":"2026-04-15T20:33:13.101Z","repository":{"id":84232765,"uuid":"144900940","full_name":"Hackuarium/mqtt","owner":"Hackuarium","description":null,"archived":false,"fork":false,"pushed_at":"2022-06-19T20:00:06.000Z","size":21206,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-12-08T09:50:53.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hackuarium.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-15T20:37:19.000Z","updated_at":"2024-03-19T19:30:08.000Z","dependencies_parsed_at":"2023-05-24T01:45:37.090Z","dependency_job_id":null,"html_url":"https://github.com/Hackuarium/mqtt","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Hackuarium/mqtt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackuarium%2Fmqtt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackuarium%2Fmqtt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackuarium%2Fmqtt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackuarium%2Fmqtt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hackuarium","download_url":"https://codeload.github.com/Hackuarium/mqtt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hackuarium%2Fmqtt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31859473,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-16T08:11:03.706Z","updated_at":"2026-04-15T20:33:13.086Z","avatar_url":"https://github.com/Hackuarium.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## mqtt\n\nThe goal of this project is to create a fast setup of a docker mqtt broker in javascript.\n\nIn this project we are using 4 different docker images:\n\n- node-red\n- mosquitto (mqtt broker)\n- mongo\n- influxdb\n\n## setup a new server\n\nThis documentation is for a CentOS 7.x\n\n### Install docker\n\ncurl -L https://github.com/docker/compose/releases/download/1.22.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose\n\n### Install iptables\n\nAdd the following rule in iptables:\n`-A INPUT -p tcp -m tcp -m multiport --dports http,https,1883 -j ACCEPT`\n\n### Using an apache proxy\n\nUsing an apache proxy allows to play with the hostname.\n\nvi /etc/httpd/conf.d/mqtt.conf\n\n```\n\u003cVirtualHost *:80\u003e\n    ServerName \tmqtt.beemos.org\n\n\tProxyRequests off\n\tProxyPreserveHost on\n\tProxyPass               \"/comms\"        \"ws://localhost:1880/comms\"\n\tProxyPassReverse        \"/comms\"        \"ws://localhost:1880/comms\"\n\tProxyPass               \"/\"             \"http://localhost:1880/\"\n\tProxyPassReverse        \"/\"             \"http://localhost:1880/\"\n\u003c/VirtualHost\u003e\n```\n\n### Starting the server\n\n`docker-compose up -d`\n\n## Testing\n\n## Some other tools\n\nNode-red will save all the data in the folder `node-red/data`\n\nUsing GRAFANA for output: https://www.hackster.io/naresh-krish/visualizing-lora-node-data-with-node-red-and-grafana-8960d3\n\nhttp://localhost:1880/\n\nThe UI\n\nhttp://localhost:1880/ui/\n\nmosquitto_pub --retain -t \"random\" -m $RANDOM\n\nAdd continously data:\n`while true; do mosquitto_pub --retain -t \"random\" -m $RANDOM; sleep 2; done`\n\n## Mosquitto\n\nTest MQTT server using mosquitto\n\nmosquitto_pub --retain -m \"Test\" -t \"abcd/efgh\"\n\nmosquitto_sub -h \"localhost\" -t \"abcd/efgh\"\n\n## Connect to influxdb for debug\n\n`docker-compose exec influxdb bash`\n`influx -username user -password user`\n\n`show databases`\n`use data`\n`select * from random`\n\n## Problems with Fedora 31\n\nhttps://github.com/docker/for-linux/issues/219\n\n$ sudo dnf install -y grubby\n$ sudo grubby --update-kernel=ALL --args=\"systemd.unified_cgroup_hierarchy=0\"\n$ sudo reboot\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackuarium%2Fmqtt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackuarium%2Fmqtt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackuarium%2Fmqtt/lists"}