mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
fix NTP 2902 и мелкие правки
This commit is contained in:
@@ -156,6 +156,10 @@
|
|||||||
"path": "src/modules/virtual/owmWeather",
|
"path": "src/modules/virtual/owmWeather",
|
||||||
"active": true
|
"active": true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "src/modules/virtual/Ping",
|
||||||
|
"active": true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "src/modules/virtual/Timer",
|
"path": "src/modules/virtual/Timer",
|
||||||
"active": true
|
"active": true
|
||||||
@@ -294,7 +298,7 @@
|
|||||||
"path": "src/modules/sensors/Mhz19",
|
"path": "src/modules/sensors/Mhz19",
|
||||||
"active": false
|
"active": false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "src/modules/sensors/MQgas",
|
"path": "src/modules/sensors/MQgas",
|
||||||
"active": true
|
"active": true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -167,6 +167,15 @@ unsigned long strDateToUnix(String date) {
|
|||||||
int numberOfLeepYears = 12;
|
int numberOfLeepYears = 12;
|
||||||
int totalNormalYears = year - 1970 - numberOfLeepYears;
|
int totalNormalYears = year - 1970 - numberOfLeepYears;
|
||||||
unsigned int daysInMonth[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
unsigned int daysInMonth[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
|
||||||
|
if (year % 4 == 0) {
|
||||||
|
if (year % 100 != 0 || year % 400 == 0) {
|
||||||
|
daysInMonth[1] = 29;
|
||||||
|
} else {
|
||||||
|
daysInMonth[1] = 28;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
daysInMonth[1] = 28;
|
||||||
|
}
|
||||||
int numberOfDaysInPastMonths = 0;
|
int numberOfDaysInPastMonths = 0;
|
||||||
for (int i = 0; i <= 11; i++) {
|
for (int i = 0; i <= 11; i++) {
|
||||||
if (i <= month - 2) {
|
if (i <= month - 2) {
|
||||||
|
|||||||
@@ -56,7 +56,8 @@ namespace _Boiler_v2
|
|||||||
tmp = findIoTItem(widget);
|
tmp = findIoTItem(widget);
|
||||||
if (tmp)
|
if (tmp)
|
||||||
{
|
{
|
||||||
tmp->setValue(value, true);
|
if (value != tmp->value.valS)
|
||||||
|
tmp->setValue(value, true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -902,7 +903,7 @@ namespace _Boiler_v2
|
|||||||
//}
|
//}
|
||||||
if (!state.stateDHW) // Если уже включено ГВС, то нечего смотреть на отопление
|
if (!state.stateDHW) // Если уже включено ГВС, то нечего смотреть на отопление
|
||||||
{
|
{
|
||||||
if (set.cmd_chEnable && stepMap.size()>0)
|
if (set.cmd_chEnable && stepMap.size() > 0)
|
||||||
{
|
{
|
||||||
SerialPrint("I", "SmartBoiler", " stepMap.size = " + String(stepMap.size()));
|
SerialPrint("I", "SmartBoiler", " stepMap.size = " + String(stepMap.size()));
|
||||||
publishNew("status", "Штатный режим");
|
publishNew("status", "Штатный режим");
|
||||||
|
|||||||
@@ -51,19 +51,7 @@
|
|||||||
"defActive": false,
|
"defActive": false,
|
||||||
|
|
||||||
"usedLibs": {
|
"usedLibs": {
|
||||||
"esp32_4mb": [],
|
"esp32*": [],
|
||||||
"esp32_4mb3f": [],
|
"esp82*": []
|
||||||
"esp32s2_4mb": [],
|
|
||||||
"esp32_16mb": [],
|
|
||||||
"esp32s3_16mb": [],
|
|
||||||
"esp32c3m_4mb": [],
|
|
||||||
"esp8266_4mb": [],
|
|
||||||
"esp8266_16mb": [],
|
|
||||||
"esp8266_1mb": [],
|
|
||||||
"esp8266_1mb_ota": [],
|
|
||||||
"esp8285_1mb": [],
|
|
||||||
"esp8285_1mb_ota": [],
|
|
||||||
"esp8266_2mb": [],
|
|
||||||
"esp8266_2mb_ota": []
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user