mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 12:05:51 +01:00
Date info added on Google Calendar content
This commit is contained in:
@@ -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]
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user