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