But still would looks way better (as overall) than the history graph
Not sure about the bar char problem, shouldnât be possible to have the value ânowâ to generate the graph?
That would âfixâ also the current usage issue when that is 0 in a graph (or the reported problem above).
Donât get me wrong, I donât need those things, I am just suggesting an improvment when I think I see one, and I still can be wrong
But, truth is, even if it will have drops as the history-graph, you will still look much better and will still be more customizable (color, font, size, extrema, etcâŠ)
What do you mean by having the value ânowâ generating the graph?
We canât render one bar for each history entry, as there can be 100s every hour, we also donât have a consistent interval between the entries, it could be 1 second or 10+ hours.
We need to combine all the entries from each timeframe (one bar) and come up with a number for the bar (in this case the average).
The same principle basically applies to the line graph, one point equals one timeframe (points_per_hour * hours_to_show) and could sometimes consist of 100s of history entries and other times just one or even zero.
Oh that clarify A LOT why some of my graph takes ages to show up
What I mean, is that maybe some sensors gives you a âtotal up to nowâ value, as for example (I think) the consumed electricity.
In that case, you might want to take the last value from each day in the past (ex. 23:59:59) and the âcurrentâ value for today.
That way you will have the previous day with the total consumed electricity untill the day end, and for today the total consumed electricity up to the moment the graph is loaded (or maybe better say, up to the last reading on the sensor).
Yes, slightly faster but it should be way faster.
Not sure about your setup, but I am using my hosting servers to host the mysql database, and those are fastâŠ
I also checked connectivity, but 20Mbps even if are not that much, are quite enough for MySQL queriesâŠ
So, for now, I think my bottleneck is the raspberry itself, I will have to test other HW soon to make it a little more performant
No, not on an application that should work on a raspberry tho
Got hundreds of hosted websites and everything works smoothly, this is just too slow, not sure whatâs wrong tho⊠it might be db design or queries or even completely something different.
It might also be that the query response is fast but the âlookupâ process is slow.
thereâs not any issue with mariadb and many lines as log as you donât need sql with joined tablesâŠ
I have mysql dbs with tables with more than 100 million lines running on low end machines
What I said is that probably there was a design issue or a data management (post-query results) that wasnât tweaked enough.
I do run MariaDB aswell on separated dedicated harware.
The HA issue might be by design or because of the raspberry, but those problems also appears on powerfull VMs, so it is probably somewhere in the design/implementations.
This is my first attempt to install a custom-card.
I canât find any www folder. I just found a config folder with a daemon.json file, but I canât paste anything there, itâs read-only folder and canât change to write.