Skip to content

Commit

Permalink
Fix template bug and update dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Wason1797 committed Dec 24, 2024
1 parent b82b785 commit 7b9d194
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
21 changes: 13 additions & 8 deletions dashboard/dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
},
{
"color": "red",
"value": 80
"value": 28
}
]
},
Expand Down Expand Up @@ -557,7 +557,7 @@
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
"mode": "dashed"
}
},
"mappings": [],
Expand All @@ -571,7 +571,7 @@
},
{
"color": "red",
"value": 80
"value": 1500
}
]
},
Expand Down Expand Up @@ -948,7 +948,7 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisBorderShow": true,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
Expand Down Expand Up @@ -977,10 +977,11 @@
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
"mode": "dashed"
}
},
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
Expand Down Expand Up @@ -1856,6 +1857,7 @@
"mode": "off"
}
},
"fieldMinMax": false,
"mappings": [],
"thresholds": {
"mode": "absolute",
Expand All @@ -1869,7 +1871,8 @@
"value": 80
}
]
}
},
"unit": "conppb"
},
"overrides": []
},
Expand Down Expand Up @@ -2010,6 +2013,8 @@
"fieldConfig": {
"defaults": {
"mappings": [],
"max": 5,
"min": 1,
"thresholds": {
"mode": "percentage",
"steps": [
Expand Down Expand Up @@ -2213,13 +2218,13 @@
]
},
"time": {
"from": "now-15m",
"from": "now-4d",
"to": "now"
},
"timepicker": {},
"timezone": "",
"title": "AIQ Data Dashboard",
"uid": "c5fa12e4-5d12-4cb0-8abb-342a0db016fd",
"version": 2,
"version": 4,
"weekStart": ""
}
2 changes: 1 addition & 1 deletion server/app/managers/aiq_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ def _render_summary_template(data: StationData, count: int) -> str:
SVM41_SUMMARY_TEMPLATE.format(
int(data.svm41_data.temperature) / 1000000,
int(data.svm41_data.humidity) / 1000000,
int(data.svm41_data.voc_index) / 1000000,
int(data.svm41_data.nox_index) / 1000000,
int(data.svm41_data.voc_index) / 1000000,
)
if data.svm41_data is not None
else ""
Expand Down

0 comments on commit 7b9d194

Please sign in to comment.