This commit is contained in:
Dmitry Borisenko
2020-12-15 22:10:40 +01:00
parent 9fd88ffae1
commit 9934690d0a
9 changed files with 19 additions and 11 deletions

View File

@@ -12,5 +12,5 @@ void clockInit() {
timeNow->hasSync();
},
nullptr, true);
SerialPrint("I", F("Time"), F("Clock Init"));
SerialPrint("I", F("NTP"), F("Clock Init"));
}

View File

@@ -76,7 +76,9 @@ void sendTelegramMsg() {
static String prevMsg;
if (prevMsg != msg) {
prevMsg = msg;
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), msg);
if (msg != "na") {
myBot->sendMessage(jsonReadInt(configSetupJson, "chatId"), msg);
}
SerialPrint("<-", "Telegram", "chat ID: " + String(jsonReadInt(configSetupJson, "chatId")) + ", msg: " + msg);
}
}

View File

@@ -228,8 +228,9 @@ void timeInit() {
prevTime = timenow;
jsonWriteStr(configLiveJson, "timenow", timenow);
eventGen2("timenow", timenow);
SerialPrint("I", F("NTP"), timenow);
}
},
nullptr, true);
SerialPrint("I", F("Time"), F("Handle time init"));
SerialPrint("I", F("NTP"), F("Handle time init"));
}