A Go project to save data from multiple weather sensors using a MQTT broker into a Redis database accessible by an Echo Rest API.
make build
which will allow you to add the following .env
files for the given path :
bin/probe/.env
MQTT_QOS=0
MQTT_BROKER_URL=tcp://localhost:1883
MQTT_CLIENT_ID=probeId-123
IATA=NYC
PROBE_DATATYPE=temperature
PROBE_ID=probeId-123
bin/subscriber/.env
MQTT_QOS=0
MQTT_BROKER_URL=tcp://localhost:1883
MQTT_CLIENT_ID=subId-123
IATA=NYC
PROBE_DATATYPE=temperature
PROBE_ID=+
make http
make sub
make probe
- Firstly, launch the server to allow database requests and centralize the several communication modes :
redis-server
- Secondly, launch the redis client to interact with the redis database
redis-cli
Thanks to this project we have been able to increase our skills on the following technologies :
- DataBase REDIS
- Protocole with MQTT Brokker
- Langage GO
- Inteface Paho GO
The following components are communicating with MQTT and HTTP
- Broker MQTT : Moquitto
- Database NoSQL Key-Value : REDIS
The react client application is available to the following page : aeroport_sim