Changed plus to asterisk for showing curve

This commit is contained in:
l_samenv
2024-09-04 08:31:25 +02:00
parent dc9a08dbee
commit 2ea2219b67
3 changed files with 8 additions and 8 deletions

View File

@@ -353,13 +353,13 @@ class InfluxDataGetter:
variable = {
"name":name,
"label":content[1]["secop_module"],
"params":{"value":{"cat":"+", "color":"", "unit":value_unit}} # main value, shown by default
"params":{"value":{"cat":"*", "color":"", "unit":value_unit}} # main value, shown by default
}
for param_name, param_content in content[1]["params_cfg"].items():
param_unit = "1" if (not "unit" in param_content.keys() or param_content["unit"] == "") else param_content["unit"]
variable["params"][param_name] = {
"cat":"+" if param_name == "target" else "-", # target is also shown by default, not the other parameters
"cat":"*" if param_name == "target" else "-", # target is also shown by default, not the other parameters
"color":"",
"unit":param_unit
}
@@ -498,7 +498,7 @@ class InfluxDataGetter:
for available_variable in available_variables:
key = available_variable["unit"]
if available_variable["cat"] != "+":
if available_variable["cat"] != "*":
key = available_variable["cat"]
if key not in groups.keys():
groups[key] = {"tag":key, "unit":available_variable["unit"], "curves":[]}