rjaros87 / pm-home-station

Indoor use particulate matter sensor on USB or Bluetooth
GNU General Public License v3.0
33 stars 5 forks source link

[Desktop enhancement] Average measurments for last 3h, 6h? #8

Open dareknowak opened 6 years ago

dareknowak commented 6 years ago

Is it possible to add additional measurement view, where average values are displayed above/below the "last measurements" - graphical view is not necessary. Measurements calculated for max 12h/24h, with preselection e.g. 2/6/12/24h.

Store mechanism would have to be implemented though...

*marked that as an enhancement

pskowronek commented 6 years ago

A simple average i.e. mean can be calculated as a running/moving mean w/o storing all the samples, therefore we could even use our configuration storage (in Desktop version) to keep the sum and a number of samples. However, median would be a better choice I guess, but it would require storing of all the samples and in such a case the config is not the right place :)