pimatic / pimatic-homeduino

Pimatic plugin for using 433mhz devices and sensors with a connected Arduino with homeduino sketch
https://pimatic.org/
GNU General Public License v2.0
37 stars 29 forks source link

simple outlier removal for temperature and humidity values #56

Open torso70 opened 8 years ago

torso70 commented 8 years ago

added simple outlier removal for temperature and humidity values in HomeduinoDHTSensor and HomeduinoRFTemperature

torso70 commented 8 years ago

the outlier removal is based on the following method http://de.wikihow.com/Ausrei%C3%9Fer-nach-Grubbs-berechnen

Icesory commented 8 years ago

Really interesting. I will test it. Eventually we can make this a bit more global in pimatic.

sweetpi commented 8 years ago

I like the idea and @Icesory is right, this would be very useful in other plugins / devices as well.

@torso70 Thank you very much for the implementation. We should get rid of the massive code dublication. Can you refactor the filtering to a single function? Maybe this could be implemented as an device config extension (like xLink, xOnLabel, ...).

torso70 commented 8 years ago

I try to refactor it to a function but the coffeescript syntax drives me crazy... I usually develop in Java ;-)

mwittig commented 7 years ago

@torso70 Any news on this one? We now have pimatic-filter which might be an alternative. Moreover, it is possible to provide an expression as part of the device configuration for post-processing temperature and humidity values.