Open dr-harper opened 2 years ago
P.S. I wasn't sure which GitHub repository is the most up to date but @jfparis might also be interested: https://github.com/jfparis/sensor.carbon_intensity_uk
Hi @dr-harper
Yes, I have also done some graphs in the fork you mentioned above. (I just added the code for the card)
It might be worth merging with @jscruz but I might have done a bit too much dirty hacking (merging underlying python client for the API into a single dirty blob :smile: )
@dr-harper, it's a great idea. @jfparis, I'll check the code in your repository soon and see what is the best way to add your contribution. Thanks!
Is your feature request related to a problem? Please describe. I thought it would be useful to be able to display a future value of the Carbon Intensity as a graph, to compliment your table. I am sharing here an MVP idea.
Seems possible that it could be cleaned up slightly and then integrated?
Describe the solution you'd like Using ApexCharts it is possible to display future data using the
data_generator
option. Please note I have very poor Javascript knowledge so I actually just copied in all the values below, but I am sure this could be made with a loop:Describe alternatives you've considered I googled around for other graphing libraries that can show future values in Home Assistant but this seemed like one of the best.