небольшие исправления графиков

This commit is contained in:
IoT Manager
2023-11-11 23:32:10 +01:00
parent f068d8c10b
commit aa464365e5
3 changed files with 8 additions and 12 deletions

View File

@@ -60,7 +60,7 @@
"num": 4,
"int": 1,
"logid": "t",
"points": 365,
"points": 200,
"telegram": 0,
"test": 0,
"btn-defvalue": 0,

View File

@@ -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") {

View File

@@ -13,7 +13,7 @@
"num": 1,
"int": 1,
"logid": "t",
"points": 365,
"points": 200,
"telegram": 0,
"test": 0,
"btn-defvalue": 0,