23 lines
519 B
C
23 lines
519 B
C
// Wetterdaten, wie sie von Open-Meteo abgerufen und auf dem Display angezeigt werden.
|
|
#pragma once
|
|
|
|
const int FORECAST_DAYS = 3;
|
|
|
|
struct DayForecast {
|
|
char date[11]; // "2026-10-03"
|
|
int weatherCode; // WMO-Code
|
|
float tempMin;
|
|
float tempMax;
|
|
int rainProbability; // Prozent
|
|
};
|
|
|
|
struct Weather {
|
|
char time[17]; // Ortszeit der Messung, "2026-10-03T17:00"
|
|
float temperature;
|
|
int humidity;
|
|
float windSpeed; // km/h
|
|
int weatherCode; // WMO-Code
|
|
bool isDay;
|
|
DayForecast days[FORECAST_DAYS];
|
|
};
|