mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-30 11:59:12 +03:00
небольшие исправления графиков
This commit is contained in:
@@ -60,7 +60,7 @@
|
|||||||
"num": 4,
|
"num": 4,
|
||||||
"int": 1,
|
"int": 1,
|
||||||
"logid": "t",
|
"logid": "t",
|
||||||
"points": 365,
|
"points": 200,
|
||||||
"telegram": 0,
|
"telegram": 0,
|
||||||
"test": 0,
|
"test": 0,
|
||||||
"btn-defvalue": 0,
|
"btn-defvalue": 0,
|
||||||
|
|||||||
@@ -36,12 +36,12 @@ class LogingDaily : public IoTItem {
|
|||||||
jsonRead(parameters, F("telegram"), telegram);
|
jsonRead(parameters, F("telegram"), telegram);
|
||||||
jsonRead(parameters, F("descr"), descr);
|
jsonRead(parameters, F("descr"), descr);
|
||||||
|
|
||||||
if (points > 365) {
|
if (points > 200) {
|
||||||
points = 365;
|
points = 200;
|
||||||
SerialPrint("E", F("LogingDaily"), "'" + id + "' user set more points than allowed, value reset to 365");
|
SerialPrint("E", F("LogingDaily"), "'" + id + "' user set more points than allowed, value reset to 200");
|
||||||
}
|
}
|
||||||
long interval;
|
long interval;
|
||||||
jsonRead(parameters, F("int"), interval); // в минутах
|
jsonRead(parameters, F("int"), interval); // в минутах
|
||||||
setInterval(interval * 60);
|
setInterval(interval * 60);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -222,9 +222,7 @@ class LogingDaily : public IoTItem {
|
|||||||
_wsNum = wsNum;
|
_wsNum = wsNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
String getValue() {
|
String getValue() { return ""; }
|
||||||
return "";
|
|
||||||
}
|
|
||||||
|
|
||||||
// void loop() {
|
// void loop() {
|
||||||
// if (enableDoByInt) {
|
// if (enableDoByInt) {
|
||||||
@@ -238,9 +236,7 @@ class LogingDaily : public IoTItem {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// просто максимальное количество точек
|
// просто максимальное количество точек
|
||||||
int calculateMaxCount() {
|
int calculateMaxCount() { return 86400; }
|
||||||
return 86400;
|
|
||||||
}
|
|
||||||
|
|
||||||
void onModuleOrder(String &key, String &value) {
|
void onModuleOrder(String &key, String &value) {
|
||||||
if (key == "defvalue") {
|
if (key == "defvalue") {
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
"num": 1,
|
"num": 1,
|
||||||
"int": 1,
|
"int": 1,
|
||||||
"logid": "t",
|
"logid": "t",
|
||||||
"points": 365,
|
"points": 200,
|
||||||
"telegram": 0,
|
"telegram": 0,
|
||||||
"test": 0,
|
"test": 0,
|
||||||
"btn-defvalue": 0,
|
"btn-defvalue": 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user