1 if ( ! exists("mono") ) {
2 set terminal pngcairo color size 600,800
4 set terminal pngcairo mono size 600,800
14 set output '/dev/shm/temp2.png'
23 if ( ! exists("t_mean")) {
31 print "using default mean and spread"
34 min_t = t_mean - t_spread
35 max_t = t_mean + t_spread
40 plot "/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 deg. C" \
41 ,"/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 deg. C" \
42 ,"/dev/shm/rtl_433-temperature" using ($1+7200):($2) with dots title "RTL433 deg. C"
47 min_h = h_mean - h_spread
48 max_h = h_mean + h_spread
50 plot "/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 % hum" \
51 ,"/dev/shm/rtl_433-humidity" using ($1+7200):($2) with dots title "RTL433 % hum"