You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
707 B
C
44 lines
707 B
C
5 years ago
|
#ifndef FACE_WEATHER_H
|
||
|
#define FACE_WEATHER_H
|
||
|
|
||
5 years ago
|
struct faceWeatherData
|
||
|
{
|
||
5 years ago
|
// global
|
||
|
char location[20];
|
||
5 years ago
|
|
||
5 years ago
|
// current condition
|
||
5 years ago
|
char current_icon[4];
|
||
5 years ago
|
int current_temp;
|
||
|
int current_min;
|
||
|
int current_max;
|
||
5 years ago
|
|
||
5 years ago
|
// forecast +1 (tomorrow)
|
||
|
char forecast_1_icon[4];
|
||
|
int forecast_1_min;
|
||
|
int forecast_1_max;
|
||
5 years ago
|
|
||
5 years ago
|
// 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;
|
||
5 years ago
|
|
||
5 years ago
|
// forecast +4
|
||
|
char forecast_4_icon[4];
|
||
|
int forecast_4_min;
|
||
|
int forecast_4_max;
|
||
5 years ago
|
};
|
||
5 years ago
|
|
||
5 years ago
|
extern faceWeatherData weatherData;
|
||
|
|
||
5 years ago
|
void setupFaceWeather();
|
||
|
void loopFaceWeather();
|
||
5 years ago
|
void playlistFaceWeather();
|
||
5 years ago
|
|
||
5 years ago
|
bool updateWeatherData();
|
||
|
|
||
5 years ago
|
#endif
|