Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Moisture Sensor Chart
#1
The purpose of this plugin is to display charts for the following data
  • 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:
  1. 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?
  2. 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.
  3. 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?
  4. 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.
Reply


Messages In This Thread
Moisture Sensor Chart - by cdesouza - 2024 Feb 16, 01:06 PM
RE: Moisture Sensor Chart - by dan - 2024 Feb 18, 04:46 PM
RE: Moisture Sensor Chart - by cdesouza - 2024 Mar 04, 03:41 PM
RE: Moisture Sensor Chart - by dan - 2024 Mar 05, 07:32 PM
RE: Moisture Sensor Chart - by cdesouza - 2024 Mar 08, 01:49 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)