Page 1 of 1

Graph Smoothing

Posted: Thursday 11 February 2016 12:16
by Zith
Thanks to this great forum and the awesome dwellers within I was able to relatively easilly setup my own system at home, consisting of a 1wire temperature newtork and a SBFspot-based Solar Inverter reader.

Now, as I hinted, this works fine - apart from a cosmetic point regarding the "Generated Last 24 Hours" graph.
Is there a way to disable the "smoothing" that takes place when the graph is generated?
Since no measurements are dune during nighttime, Domoticz creates a smooth curve between the last registered points, which looks odd.
sbfspot curves.png
sbfspot curves.png (319.05 KiB) Viewed 2023 times
I put a workaround in place today, by forcing measurements even during the night, but ideally I would simply like the curve to treat null/missing values as zero.

Thanks!

Re: Graph Smoothing

Posted: Monday 15 February 2016 14:57
by crew_one
In fact, a bar graph would make much more sense...

Re: Graph Smoothing

Posted: Monday 15 February 2016 15:24
by bbqkees
crew_one wrote:In fact, a bar graph would make much more sense...
Well a bar graph would make sense for energy (kWh) but not for power (kW).

Re: Graph Smoothing

Posted: Tuesday 16 February 2016 14:12
by crew_one
Indeed.

I was in fact referring to graphs per month / year.

Re: Graph Smoothing

Posted: Tuesday 16 February 2016 18:46
by gizmocuz
i think this happens because there is no short-log value stored when it did not receive any update

there are two solutions:
#1
- in the sbfspot class when there is no new data, send 0 as usage with the last counter

#2
fix it in the general function that adds a shortlog value

void CSQLHelper::UpdateMeter()
//do not include sensors that have no reading within an hour

void CSQLHelper::UpdateMultiMeter()
//do not include sensors that have no reading within an hour

could you try (for the test), go to the settings/other, for sensor timeout (default 60), set this to 1440 (1 day),
this might solve this problem because #2 is using this value