simplest local weather proxy over SHM

This commit is contained in:
Edward Emelianov
2026-03-26 20:29:29 +03:00
parent 734e36a85d
commit c74d1e6026
13 changed files with 487 additions and 5 deletions

View File

@@ -0,0 +1,26 @@
#pragma once
#include <stdint.h>
#include <time.h>
typedef enum {
WEATHER_GOOD = 0,
WEATHER_BAD = 1,
WEATHER_TERRIBLE = 2
} weather_condition_t;
typedef struct {
weather_condition_t weather;
float windmax;
int rain;
float clouds;
float wind;
float exttemp;
float pressure;
float humidity;
int prohibited;
double last_update;
} weather_data_t;
int get_weather_data(weather_data_t *data);