Files
esticky/firmware/meteogram_data.h

16 lines
529 B
C

// Stündliche Vorhersage für das Meteogramm, wie sie von Open-Meteo abgerufen wird.
#pragma once
#include <stdint.h>
const int METEOGRAM_DAYS = 3;
const int METEOGRAM_HOURS = METEOGRAM_DAYS * 24; // ab heute 0 Uhr
struct Meteogram {
char start[11]; // Datum der ersten Stunde, "2026-10-04"
char time[17]; // Ortszeit der aktuellen Werte, "2026-10-04T14:15"
float temperature[METEOGRAM_HOURS];
float precipitation[METEOGRAM_HOURS]; // mm pro Stunde
uint8_t rainProbability[METEOGRAM_HOURS]; // Prozent
};