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,13 @@
#include "weather_data.h"
#include <stdio.h>
int main() {
weather_data_t wd;
if (get_weather_data(&wd) == 0) {
printf("Weather: %d, Max wind: %.1f, Wind: %.1f, Temp: %.1f; updated @%.1f\n",
wd.weather, wd.windmax, wd.wind, wd.exttemp, wd.last_update);
} else {
fprintf(stderr, "Failed to get weather data\n");
}
return 0;
}