njh / Mqtt Http Bridge
Licence: mit
MQTT to HTTP bridge
Stars: ✭ 99
Programming Languages
ruby
36898 projects - #4 most used programming language
Projects that are alternatives of or similar to Mqtt Http Bridge
Netxms
NetXMS - Open Source network and infrastructure monitoring and management
Stars: ✭ 88 (-11.11%)
Mutual labels: mqtt
Ntex Mqtt
MQTT Client/Server framework for v5 and v3.1.1 protocols
Stars: ✭ 95 (-4.04%)
Mutual labels: mqtt
Homie Esp8266
💡 ESP8266 framework for Homie, a lightweight MQTT convention for the IoT
Stars: ✭ 1,241 (+1153.54%)
Mutual labels: mqtt
Esp Mqtt
MQTT component for esp-idf projects based on the lwmqtt library
Stars: ✭ 76 (-23.23%)
Mutual labels: mqtt
Aqara Mqtt
Aqara (Xiaomi) Gateway to MQTT bridge (I use it for home assistant integration)
Stars: ✭ 84 (-15.15%)
Mutual labels: mqtt
Frigate
NVR with realtime local object detection for IP cameras
Stars: ✭ 1,329 (+1242.42%)
Mutual labels: mqtt
Hugo Esp8266
Hugo is a 4-button ESP8266 Wi-Fi Remote, Arduino compatible and simple to use.
Stars: ✭ 77 (-22.22%)
Mutual labels: mqtt
Mqtt Laravel
A simple Laravel Library to connect/publish/subscribe to MQTT broker
Stars: ✭ 88 (-11.11%)
Mutual labels: mqtt
Serverless Chat
A serverless web chat built using AWS Lambda, AWS IoT (for WebSockets) and Amazon DynamoDB
Stars: ✭ 99 (+0%)
Mutual labels: mqtt
Mainflux
Industrial IoT Messaging and Device Management Platform
Stars: ✭ 1,341 (+1254.55%)
Mutual labels: mqtt
mqtt-http-bridge.rb
This simple web application provides a bridge between HTTP and MQTT using a RESTish interface. It is possible to GET, POST, PUT and DELETE retained messages on a remote MQTT server.
Getting started
Install bundler:
sudo gem install bundler
Install the other gem dependencies:
bundle install
Run the local web server:
bundle exec rackup -p 1234
You can then open the bridge in your browser:
http://localhost:1234/
To connect to your own MQTT server:
Edit the first few lines of `mqtt-http-bridge.rb` to match your server.
If you want to use a different port than the default 1883, add `:remote_port => [PORT NUMBER],` under the line with the IP address. Do not put the port number in quotation marks.
Examples using curl
To get a retained value for a topic:
curl http://localhost:1234/test
To publish to a topic (retained):
curl -X PUT --data-binary "Hello World" http://localhost:1234/test
To publish to a topic (non-retained):
curl -X POST --data-binary "Hello World" http://localhost:1234/test
To delete the retained value for a topic:
curl -X DELETE http://localhost:1234/test
License
The ruby mqtt-http-bridge is licensed under the terms of the MIT license. See the file LICENSE for details.
Contact
- Author: Nicholas J Humfrey
- Twitter: @njh
- Home Page: http://www.aelius.com/njh/
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].