I have a Raspberry Pi which is collecting temperature and humidity data with a cron-job. I wanted to display this data on a nice little website along with other things the Raspberry Pi controls. For a little chart I first thought of using Chart.js, but decided to have a look around the Nim ecosystem to see if I could find something here instead. Plotly looks cool (and I know that it uses JS to actually display the plot) and I'd want to use it, but I wish there was a way for me to get HTML which I could embed into the rest of the site. Currently only save is exposed which means I would have to save it to a file, then read and parse that file to get the bits I need, not great.
Any feedback appreciated, I believe this should be a fairly simple feature to implement seeing how most of this functionality is already there.
I have a Raspberry Pi which is collecting temperature and humidity data with a cron-job. I wanted to display this data on a nice little website along with other things the Raspberry Pi controls. For a little chart I first thought of using Chart.js, but decided to have a look around the Nim ecosystem to see if I could find something here instead. Plotly looks cool (and I know that it uses JS to actually display the plot) and I'd want to use it, but I wish there was a way for me to get HTML which I could embed into the rest of the site. Currently only
saveis exposed which means I would have to save it to a file, then read and parse that file to get the bits I need, not great.Any feedback appreciated, I believe this should be a fairly simple feature to implement seeing how most of this functionality is already there.