VerstraeteBert / WeatherApp

RIP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WeatherApp

Description

Creating a weather app that receives weather data from IoT devices via the MQTT protocol,
which then get persisted and can be consulted through a web interface.

Prerequisites

  • Go 1.10.1+
  • Mysql 5.7+
  • Dep package manager for Go

Setup

Checkout
Run dep ensure in project root
Copy .env.example to .env and enter your MySql config / desired port
Make sure you have a database with name "weatherdb" and then run make migrate Run make build to start the server

Endpoints

Readings:

URL Method Info
http://127.0.0.1:1337/readings GET Returns an array of readings
http://127.0.0.1:1337/readings POST Endpoint to create a reading

To do

  • Set up CI
  • Add endpoint to change reading interval
  • Allow MQTT communication (from proxy arduino)
  • Expand current endpoints for more weather data
  • Authenticate devices and their users (JWT)
  • Build Web FrontEnd (React, vue?)
  • Dockerize
  • Host
  • Expand CI/CD
  • More / better designed tests

About

RIP


Languages

Language:Go 78.6%Language:HTML 12.2%Language:JavaScript 6.5%Language:Makefile 1.9%Language:CSS 0.8%