filter out humidify < 10 from rtl433
[vaillant-thermostat] / temp2.gnuplot
index 764ad17..6c5b738 100644 (file)
@@ -31,8 +31,8 @@ h_spread = 30
 print "using default mean and spread"
 }
 
-min_t = t_mean - t_spread
-max_t = t_mean + t_spread
+min_t = t_mean - ( t_spread / 2 )
+max_t = t_mean + ( t_spread / 2 )
 
 set ytics nomirror
 set y2tics
@@ -48,6 +48,6 @@ min_h = h_mean - h_spread
 max_h = h_mean + h_spread
 
 plot "/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 % hum" \
-,"/dev/shm/rtl_433-humidity" using ($1+7200):($2) with dots title "RTL433 % hum" 
+,"/dev/shm/rtl_433-humidity" using ($1+7200):($2 > 10 ? $2 : '') with dots title "RTL433 % hum" 
 
 unset multiplot