Skip to content

A Go project to save data from multiple weather sensors using a MQTT broker into a Redis database accessible by an Echo Rest API.

Notifications You must be signed in to change notification settings

Naedri/ARCHI-weather-airport-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARCHI weather airport server

A Go project to save data from multiple weather sensors using a MQTT broker into a Redis database accessible by an Echo Rest API.

Using the app

To build all files in bin/

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=+

To build and launch the api framework

make http

To build and launch both subscribers (to fulfill redis database and csv file)

make sub

To build and launch a probe measurement

make probe

To launch the database

  1. Firstly, launch the server to allow database requests and centralize the several communication modes :
redis-server
  1. Secondly, launch the redis client to interact with the redis database
redis-cli

Skills acquired

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

Architecture

Components

The following components are communicating with MQTT and HTTP

  • Broker MQTT : Moquitto
  • Database NoSQL Key-Value : REDIS

Architecture

The react client application is available to the following page : aeroport_sim

About

A Go project to save data from multiple weather sensors using a MQTT broker into a Redis database accessible by an Echo Rest API.

Resources

Stars

Watchers

Forks

Contributors 4

  •  
  •  
  •  
  •