2024 Feb 16, 01:06 PM
The purpose of this plugin is to display charts for the following data
Sometime in the future I would also like to display charts for
I have played around with chart.js and have a rudimentary framework setup to configure and display charts:
I do however have some questions:
I'm playing with the idea of turning this into a chart plugin that takes a sets of datasource/configuration and displays a chart for each.
- moisture sensor data collected by the moisture_sensor_data_mqtt plugin
- watering time (accumulated per day)
Sometime in the future I would also like to display charts for
- temperature of my overwintering tent
- water level in the water butt
I have played around with chart.js and have a rudimentary framework setup to configure and display charts:
I do however have some questions:
- I required chart.js and d2.js to be installed. I guess they should be installed under ./static/scripts. How will they be installed, via plugin manifest or will they come with the SIP installation?
- As far as I understand the chart.js documentation if I work with milliseconds I do not required a data adapter, however I could not get this to work so I would also required luxon.js and chartjs-adaptor-luxon. Again both in ./static/scripts. So the same question as for 1. applies.
- The moisture sensor data that I want to display is under ./data/moisture_sensor_data. This cannot be loaded via d3.js as it does not see this directory. Can this be changed or should the data be stored somewhere else?
- For the accumulated watering time I had planned to listen for the schedule completed signal and sum the schedule time for each station or is this information already available somewhere?
I'm playing with the idea of turning this into a chart plugin that takes a sets of datasource/configuration and displays a chart for each.