mirror of
https://github.com/eddyem/small_tel.git
synced 2026-05-01 18:37:07 +03:00
14 lines
376 B
C
14 lines
376 B
C
#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;
|
|
}
|