hydrotekfarm / automation-app

0 stars 0 forks source link

Analytics page, d3.js graphing, historical data fetching from backend - [merged] #64

Closed hydrotekfarm closed 1 year ago

hydrotekfarm commented 3 years ago

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.

hydrotekfarm commented 3 years ago

In GitLab by @zimingg on Aug 11, 2021, 22:20

requested review from @AjayKrishna123

hydrotekfarm commented 3 years ago

In GitLab by @AjayKrishna123 on Aug 20, 2021, 12:46

added 1 commit

Compare with previous version