X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=temp2.gnuplot;h=6c5b738661e5df3e76e66ab6b2c2d2f1ee8e258b;hb=5e8218dc133a5fd6687e98b7a09e22f65bbc314b;hp=42c988d657959ca9d1a44cc32f6cf1713e5c00fa;hpb=c8bf13bcddf362e1943777307c958968757f61b4;p=vaillant-thermostat diff --git a/temp2.gnuplot b/temp2.gnuplot index 42c988d..6c5b738 100644 --- a/temp2.gnuplot +++ b/temp2.gnuplot @@ -1,4 +1,8 @@ -set terminal pngcairo color size 600,800 +if ( ! exists("mono") ) { + set terminal pngcairo color size 600,800 +} else { + set terminal pngcairo mono size 600,800 +} set xdata time set timefmt "%s" @@ -9,6 +13,8 @@ set pointsize 0.2 set output '/dev/shm/temp2.png' +unset border + set multiplot set size 1, 0.5 @@ -25,15 +31,15 @@ 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 plot "/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 deg. C" \ ,"/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 deg. C" \ -,"/dev/shm/rtl_433-temperature" using ($1+7200):($2) with dots title "RTL433 deg. C" axes x1y2 +,"/dev/shm/rtl_433-temperature" using ($1+7200):($2) with dots title "RTL433 deg. C" set origin 0.0, 0.0 @@ -42,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" axis x1y2 +,"/dev/shm/rtl_433-humidity" using ($1+7200):($2 > 10 ? $2 : '') with dots title "RTL433 % hum" unset multiplot