{"id":20347769,"url":"https://github.com/subzerobo/http-mqtt-bridge","last_synced_at":"2025-04-12T01:03:14.752Z","repository":{"id":144320721,"uuid":"194992978","full_name":"subzerobo/http-mqtt-bridge","owner":"subzerobo","description":"HTTP To MQTT Bridge ","archived":false,"fork":false,"pushed_at":"2019-07-05T15:15:42.000Z","size":48,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T01:03:04.244Z","etag":null,"topics":["golang","iot","iot-gateway","mqtt","mqtt-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/subzerobo.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-07-03T06:29:08.000Z","updated_at":"2020-05-21T05:36:11.000Z","dependencies_parsed_at":"2024-06-19T08:10:25.076Z","dependency_job_id":"e2f181b8-70db-4545-beda-36fd333ffbb6","html_url":"https://github.com/subzerobo/http-mqtt-bridge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fhttp-mqtt-bridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fhttp-mqtt-bridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fhttp-mqtt-bridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/subzerobo%2Fhttp-mqtt-bridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/subzerobo","download_url":"https://codeload.github.com/subzerobo/http-mqtt-bridge/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248501866,"owners_count":21114683,"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":["golang","iot","iot-gateway","mqtt","mqtt-client"],"created_at":"2024-11-14T22:18:00.605Z","updated_at":"2025-04-12T01:03:14.725Z","avatar_url":"https://github.com/subzerobo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Http-MQTT-Bridge #\n  \n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/fb288a8d7dbd4ab9b8ca5d02657fd972)](https://app.codacy.com/app/subzerobo/http-mqtt-bridge?utm_source=github.com\u0026utm_medium=referral\u0026utm_content=subzerobo/http-mqtt-bridge\u0026utm_campaign=Badge_Grade_Dashboard)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)   [![Build Status](https://travis-ci.org/subzerobo/http-mqtt-bridge.svg?branch=master)](https://travis-ci.org/subzerobo/http-mqtt-bridge)  [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/subzerobo/http-mqtt-bridge/issues)  \n  \nThe HTTP to MQTT bridge should feel that gap of IFTTT Actions for your Custom IoT Hardwares.  \nThe idea is to receive signals using HTTP requests and transfer them to your MQTT broker. The HTTP to MQTT bridge is written using Golang with Gin for HTTP server and Paho MQTT client.  \n  \n## Usage ##\nThis app could be hosted on Heroku  \n  \n### Running on Local Machine ###\n  \n*   `git clone git@github.com:subzerobo/http-mqtt-bridge.git` \n*   `cd http-mqtt-bridge`  \n*   `go get ./...`  \n*   `go build -o hmb`  \n*   `hmb s --mqtt-host=tcp://localhost:1883`  \n  \n### CLI Help ###\n*   `hmb s --help`  \n  \n### Configuration Environment Variables ###\n  \n*   MQTT Host : `MQTT_HOST`   \n*   MQTT User : `MQTT_USER`   \n*   MQTT Pass : `MQTT_PASS`      \n*   Basic Auth Username : `AUTH_USERNAME`   \n*   Basic AuthPassword : `AUTH_PASSWORD`\n  \n### Test ###\n  \n`curl -XPOST -H 'Content-Type: application/json' -d '{\"topic\": \"ali\",\"message\": \"This is a Test Message\"}' --user alikaviani:F#@{fW+/ localhost:8090/publish`  \n  \nThis will publish message: `this is a test message` to the topic : `ali`  \n  \n### Deploying to Heroku ###\n \nYou can add required environment variable through .env File accordingly or after creating the heroku app   \nNavigate to your app then go to Settings -\u003e Config Vars -\u003e Add Environment variables  \n  \n```bash  \ngit clone git@github.com:subzerobo/http-mqtt-bridge.git  \ncd  http-mqtt-bridge  \nheroku create  \ngit push heroku master  \nheroku open  \n```  \n  OR  \n    \n [![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy?template=https://github.com/subzerobo/http-mqtt-bridge)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzerobo%2Fhttp-mqtt-bridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsubzerobo%2Fhttp-mqtt-bridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsubzerobo%2Fhttp-mqtt-bridge/lists"}