All Projects → njh → Mqtt Http Bridge

njh / Mqtt Http Bridge

Licence: mit
MQTT to HTTP bridge

Programming Languages

ruby
36898 projects - #4 most used programming language

Labels

Projects that are alternatives of or similar to Mqtt Http Bridge

Rumqttd
rust mqtt broker
Stars: ✭ 77 (-22.22%)
Mutual labels:  mqtt
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
Teslamate
A self-hosted data logger for your Tesla 🚘
Stars: ✭ 1,255 (+1167.68%)
Mutual labels:  mqtt
Client
An MQTT client written in and for PHP.
Stars: ✭ 90 (-9.09%)
Mutual labels:  mqtt
Esp Mqtt
MQTT component for esp-idf projects based on the lwmqtt library
Stars: ✭ 76 (-23.23%)
Mutual labels:  mqtt
Awtrix1.0
(Outdated) Smart RGB Matrix Clock
Stars: ✭ 99 (+0%)
Mutual labels:  mqtt
Mqtt
MQTT Client class
Stars: ✭ 86 (-13.13%)
Mutual labels:  mqtt
Psmqtt
Utility reporting system health and status via MQTT
Stars: ✭ 95 (-4.04%)
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
N2o
⭕ N2O: Distributed Application Server
Stars: ✭ 1,262 (+1174.75%)
Mutual labels:  mqtt
Smarthome
Device integration platform for your smart home
Stars: ✭ 92 (-7.07%)
Mutual labels:  mqtt
Esp8266 aliyun mqtt app
基于ESP8266官方SDK快速接入阿里云物联网平台
Stars: ✭ 81 (-18.18%)
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
Paho.mqtt.python
paho.mqtt.python
Stars: ✭ 1,314 (+1227.27%)
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

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].