muninで移動平均

munin, 自宅サーバー

Raspberry PiとTWE-Liteで室温・気圧を測ってみた (1)」で計測したLM61温度センサの値がバラつくので、移動平均を取って誤魔化してみた。

RRDtoolと同様にCDEFが使える

munin使ってる人なら分かると思う。実データ(tempareture)とは別にtrendを作って、そちらは update no & cdef で値を拾ってくるだけ。

graph_title LM61(100559d) temperature
graph_info This graph shows 100559d temperature.
graph_args –alt-autoscale –alt-y-grid
graph_order temperature trend
graph_vlabel C
graph_scale no
graph_category home
graph_period second
temperature.label temperature
temperature.draw LINE
temperature.min 0
temperature.type GAUGE
temperature.info Temperature
temperature.line 25:00ff00
trend.label trend
trend.draw LINE2
trend.min 0
trend.info Temperature trend
trend.line 25:880000
trend.cdef temperature,3600,TREND
trend.update no

結果

20150308-lm61_100559d-day

それっぽいですね。でも、LM61自体の誤差とADCの誤差があるので誤魔化しです。

munin, 自宅サーバー

Posted by ず@沖縄