summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorReiner Herrmann <reiner@reiner-h.de>2020-07-22 20:00:22 +0200
committerReiner Herrmann <reiner@reiner-h.de>2020-07-22 20:00:22 +0200
commitc297f65f1d95f80df597d0cea49cc92dfdcae0a3 (patch)
treedc8a7a49eabcaeab80c50a588e242a51e0175e56 /src/main.cpp
parent642df2851dd333178e509731c513480b2adb6278 (diff)
add current weather and forecast
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index ee7435a..c987f92 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4,6 +4,7 @@
#include "calendar.h"
#include "draw_qrcode.h"
+#include "weather.h"
#include "secrets.h"
/*
@@ -48,8 +49,9 @@ void draw() {
do {
display.fillScreen(GxEPD_WHITE);
- draw_calendar(30, 30);
- draw_qrcode_wlan(30, 200, wifi_ssid, wifi_psk);
+ draw_calendar(30, 10);
+ draw_weather(10, 180);
+ //draw_qrcode_wlan(30, 200, wifi_ssid, wifi_psk);
} while(display.nextPage());
}
@@ -76,6 +78,7 @@ void setup() {
wifi_connect();
update_time();
+ fetch_weather();
wifi_disconnect();
display_setup();