Date info added on Google Calendar content

This commit is contained in:
atc1441
2023-05-17 10:25:51 +02:00
parent 15bcba19f6
commit 437c4fdcc0
2 changed files with 6 additions and 2 deletions

View File

@@ -26,8 +26,8 @@ board_build.filesystem = littlefs
monitor_filters = esp32_exception_decoder
monitor_speed = 115200
board_build.f_cpu = 240000000L
;upload_port = COM30
;monitor_port = COM30
upload_port = COM11
monitor_port = COM11
[env:OpenEPaperLink_Mini_AP]

View File

@@ -815,6 +815,8 @@ bool getCalFeed(String &filename, String URL, String title, tagRecord *&taginfo,
time(&now);
struct tm timeinfo;
localtime_r(&now, &timeinfo);
static char dateString[40];
strftime(dateString, sizeof(dateString), " - %d.%m.%Y", &timeinfo);
HTTPClient http;
http.begin(URL);
@@ -849,6 +851,7 @@ bool getCalFeed(String &filename, String URL, String title, tagRecord *&taginfo,
u8f.setBackgroundColor(PAL_WHITE);
u8f.setCursor(5, 16);
u8f.print(title);
u8f.print(dateString);
int n = doc.size();
if (n > 7) n = 7;
@@ -884,6 +887,7 @@ bool getCalFeed(String &filename, String URL, String title, tagRecord *&taginfo,
u8f.setBackgroundColor(PAL_WHITE);
u8f.setCursor(5, 16);
u8f.print(title);
u8f.print(dateString);
int n = doc.size();
if (n > 8) n = 8;