-
Notifications
You must be signed in to change notification settings - Fork 0
/
owm.h
39 lines (34 loc) · 782 Bytes
/
owm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifdef USEOWM
#ifndef OWM_H
#define OWM_H
#include "tft.h"
#include "fonts.h"
#include <wificredentials.h>
#include <ArduinoJson.h>
extern TFT_eSPI tft;
extern screenPage currDisplayScreen;
struct Owmdata{
float temperature;
float humidity;
float pressure;
float windspeed;
float feelslike;
char *description = NULL;
char *iconfilename = NULL;
char *city = NULL;
bool valid = false;
char iconchar;
};
extern struct Owmdata owmdata;
extern char *jsonowm;
void init_owm();
bool getWeather();
void fillWeatherSprite();
void drawWeather();
void print_owmdata();
bool getForecast();
void fillForecastSprite();
void drawForecastSprite();
void print_forecast();
#endif
#endif