Coder Social home page Coder Social logo

archi-weather-airport-server's Introduction

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

archi-weather-airport-server's People

Contributors

hazard4u avatar lmuzellec avatar naedri avatar reifocs avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.