2 # set terminal pngcairo mono size 600,800
3 set terminal pngcairo color size 600,800
5 set terminal pngcairo color size 1200,600
11 if (strlen(interval) > 2) {
14 set xtics format "%H:%M"
19 set output '/dev/shm/temp2.png'
34 #if ( ! exists("t_mean")) {
43 print "using default mean and spread"
46 min_t = t_mean - ( t_spread / 2 )
47 max_t = t_mean + ( t_spread / 2 )
49 if ( ! exists("tz_secs") ) {
57 "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \
58 ,"/dev/shm/rtl_433-9-172-temperature" using ($1+tz_secs):($2) with dots title "vani" \
59 ,"/dev/shm/rtl_433-9-75-temperature" using ($1+tz_secs):($2) with dots title "kupaona" \
60 ,"/dev/shm/rtl_433-9-141-temperature" using ($1+tz_secs):($2) with dots title "kuhinja" \
61 ,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra" \
62 ,"/dev/shm/rtl_433-183-temperature" using ($1+tz_secs):($2) with dots title "soba" lt rgb "#808000"
65 if ( exists("lines") && lines == 1 ) {
67 "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DHT22 unutra" \
68 ,"/dev/shm/rtl_433-9-172-temperature" using ($1+tz_secs):($2) with lines title "vani" \
69 ,"/dev/shm/rtl_433-9-75-temperature" using ($1+tz_secs):($2) with lines title "kupaona" \
70 ,"/dev/shm/rtl_433-9-141-temperature" using ($1+tz_secs):($2) with lines title "kuhinja" \
71 ,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20 unutra" \
72 ,"/dev/shm/rtl_433-183-temperature" using ($1+tz_secs):($2) with lines title "soba" lt rgb "#808000"
81 min_h = h_mean - h_spread
82 max_h = h_mean + h_spread
85 "/dev/shm/DHT22-humidity" using ($1+tz_secs):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" \
86 ,"/dev/shm/rtl_433-9-172-humidity" using ($1+tz_secs):($2) with lines title "vani" \
87 ,"/dev/shm/rtl_433-9-75-humidity" using ($1+tz_secs):($2) with lines title "kupaona" \
88 ,"/dev/shm/rtl_433-9-141-humidity" using ($1+tz_secs):($2) with lines title "kuhunja"