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")) {
32 print "using default mean and spread"
35 min_t = t_mean - ( t_spread / 2 )
36 max_t = t_mean + ( t_spread / 2 )
42 "/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \
43 ,"/dev/shm/rtl_433-9-172-temperature" using ($1+7200):($2) with dots title "vani" \
44 ,"/dev/shm/rtl_433-9-75-temperature" using ($1+7200):($2) with dots title "kupaona" \
45 ,"/dev/shm/rtl_433-9-141-temperature" using ($1+7200):($2) with dots title "kuhinja" \
46 ,"/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra"
51 min_h = h_mean - h_spread
52 max_h = h_mean + h_spread
55 "/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" \
56 ,"/dev/shm/rtl_433-9-172-humidity" using ($1+7200):($2) with lines title "vani" \
57 ,"/dev/shm/rtl_433-9-75-humidity" using ($1+7200):($2) with lines title "kupaona" \
58 ,"/dev/shm/rtl_433-9-141-humidity" using ($1+7200):($2) with lines title "kuhunja"