Added analytics page as well as sensor-graph component, and created relevant functions in varman to fetch, cache, and incrementally patch sensor data.
A timeframe can be selected for sensor graphs, which will refresh the graphs and update the cache. The hardcoded preset values for these timeframes are in analytics.ts. Note: The sensor-graph component ts file has a hardcoded switch statement to determine the optimal placement for the X-Axis (date) ticks. If these presets are changed, the values in the switch statement should also be changed.
Plenty of comments are left in the sensor-graph component ts file, which reference the websites I referenced to as well as potentially useful tips or lines of code.
Known issues:
Previously alarm lines were drawn horizontally so that the min/max alarm values are visualized on the same graph, but due to lack of time this has been commented out.
In GitLab by @zimingg on Aug 11, 2021, 22:20
Merges analytics -> master
Added analytics page as well as sensor-graph component, and created relevant functions in varman to fetch, cache, and incrementally patch sensor data. A timeframe can be selected for sensor graphs, which will refresh the graphs and update the cache. The hardcoded preset values for these timeframes are in analytics.ts. Note: The sensor-graph component ts file has a hardcoded switch statement to determine the optimal placement for the X-Axis (date) ticks. If these presets are changed, the values in the switch statement should also be changed. Plenty of comments are left in the sensor-graph component ts file, which reference the websites I referenced to as well as potentially useful tips or lines of code. Known issues: Previously alarm lines were drawn horizontally so that the min/max alarm values are visualized on the same graph, but due to lack of time this has been commented out.