ESP32 e-Paper info screen (client part).
[weathermon.git] / weather_screen / weather_types.h
diff --git a/weather_screen/weather_types.h b/weather_screen/weather_types.h
new file mode 100644 (file)
index 0000000..6a49dff
--- /dev/null
@@ -0,0 +1,26 @@
+typedef struct { // For current Day and Day 1, 2, 3, etc
+  int      dt;
+  float    temp;
+  float    temp_min;
+  float    temp_max;
+  float    feels_like;
+  float    feels_like_min;
+  float    feels_like_max;
+  float    pressure;
+  float    humidity;
+  float    clouds;
+  float    wind_speed;
+  float    wind_deg;
+  float    rain;
+  float    snow;
+  String   description;
+  String   icon;
+} WeatherRecord;
+
+WeatherRecord CurrentWeather;
+
+#define MaxHourlyFC 48
+#define MaxDailyFC 7
+WeatherRecord HourlyForecasts[MaxHourlyFC];
+WeatherRecord DailyForecasts[MaxDailyFC];
+