Weather station

A little DIY weather station.

This is a very much work in progress.

Installation

Base station

cargo install --git https://github.com/VersBinarii/pogodyna.git

MQTT Broker

Eventually we will want this system to work with any MQTT broker but for now its tested only with Mosquittto

sudo pacman -S mosquitto

Sensor

For now the sensor needs to be build and flashed with the bmp-sensor firmware.

Configuration

Following is the example configuration required for building the base-station and the sensor:

SSID=my_home_wifi
WIFI_KEY=my_home_wifi_password
BASE_STATION_ADDRESS=192.168.1.200
BASE_STATION_PORT=1883
DATABASE_URL="sqlite://sensor_readings.db"
LOG_DIRECTORY="./logs/basestation"
RUST_LOG=debug,sqlx=info

Architecture

System elements

sequenceDiagram;
    participant ws as website;
    participant bs as base-station;
    participant br as MQTT Broker;
    participant sen as Sensor;
    
    ws->>bs: API request;
    bs->>br: Topic subscription;
    sen->>br: Sensor updates;