2020-02-23 16:29:39 +00:00
|
|
|
#ifndef FACE_WEATHER_H
|
|
|
|
#define FACE_WEATHER_H
|
|
|
|
|
2020-02-29 18:46:05 +00:00
|
|
|
struct faceWeatherData
|
|
|
|
{
|
2020-03-07 16:23:50 +00:00
|
|
|
// global
|
|
|
|
char location[20];
|
2020-02-29 18:46:05 +00:00
|
|
|
|
2020-03-07 16:23:50 +00:00
|
|
|
// current condition
|
2020-02-29 18:46:05 +00:00
|
|
|
char current_icon[4];
|
2020-03-07 16:23:50 +00:00
|
|
|
int current_temp;
|
|
|
|
int current_min;
|
|
|
|
int current_max;
|
2020-02-29 18:46:05 +00:00
|
|
|
|
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-02-29 18:46:05 +00:00
|
|
|
|
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-02-29 18:46:05 +00:00
|
|
|
|
2020-03-07 16:23:50 +00:00
|
|
|
// forecast +4
|
|
|
|
char forecast_4_icon[4];
|
|
|
|
int forecast_4_min;
|
|
|
|
int forecast_4_max;
|
2020-02-29 18:46:05 +00:00
|
|
|
};
|
2020-02-23 16:29:39 +00:00
|
|
|
|
2020-03-08 17:07:37 +00:00
|
|
|
extern faceWeatherData weatherData;
|
|
|
|
|
2020-02-23 16:29:39 +00:00
|
|
|
void setupFaceWeather();
|
|
|
|
void loopFaceWeather();
|
|
|
|
|
2020-03-07 16:23:50 +00:00
|
|
|
bool updateWeatherData();
|
|
|
|
|
2020-02-23 16:29:39 +00:00
|
|
|
#endif
|