-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.h
More file actions
79 lines (70 loc) · 1.26 KB
/
Copy pathtypes.h
File metadata and controls
79 lines (70 loc) · 1.26 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#pragma once
#include <Arduino.h>
struct TagRecord {
String tag_id;
String display_type;
String message;
String image_file;
bool valid;
};
enum ScreenMode {
SCREEN_DASHBOARD,
SCREEN_CALENDAR,
SCREEN_LETTER,
SCREEN_WEATHER_FULL,
SCREEN_MEMORY,
};
struct AppSettings {
String timezone;
String location_name;
float latitude;
float longitude;
int next_visit_year;
int next_visit_month;
int next_visit_day;
String next_visit_label;
bool valid;
};
struct LetterData {
String date;
String title;
String body;
bool valid;
};
struct MemoryData {
String date;
String image_file;
String caption;
bool valid;
};
struct WeatherDay {
String weekday;
int max_c;
int min_c;
int rain_percent;
int weather_code;
String description;
};
struct WeatherNow {
int temperature_c;
int max_c;
int min_c;
int humidity_percent;
int wind_kmh;
int rain_percent;
int weather_code;
String description;
bool valid;
};
struct WeatherData {
WeatherNow current;
WeatherDay days[7];
int day_count;
bool valid;
};
struct AppData {
AppSettings settings;
LetterData letter;
MemoryData memory;
WeatherData weather;
};