device-epd/include/faceWeather.h

43 lines
679 B
C
Raw Normal View History

#ifndef FACE_WEATHER_H
#define FACE_WEATHER_H
struct faceWeatherData
{
2020-03-07 16:23:50 +00:00
// global
char location[20];
2020-03-07 16:23:50 +00:00
// current condition
char current_icon[4];
2020-03-07 16:23:50 +00:00
int current_temp;
int current_min;
int current_max;
2020-03-07 16:23:50 +00:00
// forecast +1 (tomorrow)
char forecast_1_icon[4];
int forecast_1_min;
int forecast_1_max;
2020-03-07 16:23:50 +00:00
// forecast +2
char forecast_2_icon[4];
int forecast_2_min;
int forecast_2_max;
// forecast +3
char forecast_3_icon[4];
int forecast_3_min;
int forecast_3_max;
2020-03-07 16:23:50 +00:00
// forecast +4
char forecast_4_icon[4];
int forecast_4_min;
int forecast_4_max;
};
2020-03-08 17:07:37 +00:00
extern faceWeatherData weatherData;
void setupFaceWeather();
void loopFaceWeather();
2020-03-07 16:23:50 +00:00
bool updateWeatherData();
#endif