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") ) {
58 "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \
59 ,"/dev/shm/rtl_433-vani-temperature" using ($1+tz_secs):($2) with dots title "vani" \
60 ,"/dev/shm/rtl_433-kupaona-temperature" using ($1+tz_secs):($2) with dots title "kupaona" \
61 ,"/dev/shm/rtl_433-kuhinja-temperature" using ($1+tz_secs):($2) with dots title "kuhinja" \
62 ,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra" \
63 ,"/dev/shm/rtl_433-soba-temperature" using ($1+tz_secs):($2) with dots title "soba" lt rgb "#808000" \
64 ,"/dev/shm/boiler.d" using ($1+tz_secs):($2 > 0 ? 48 : 2) axes x1y2 with dots title "boiler on/off" lt rgb "#000000"
67 if ( exists("lines") && lines == 1 ) {
69 "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DHT22 unutra" \
70 ,"/dev/shm/rtl_433-vani-temperature" using ($1+tz_secs):($2) with lines title "vani" \
71 ,"/dev/shm/rtl_433-kupaona-temperature" using ($1+tz_secs):($2) with lines title "kupaona" \
72 ,"/dev/shm/rtl_433-kuhinja-temperature" using ($1+tz_secs):($2) with lines title "kuhinja" \
73 ,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20 unutra" \
74 ,"/dev/shm/rtl_433-soba-temperature" using ($1+tz_secs):($2) with lines title "soba" lt rgb "#808000"
83 min_h = h_mean - h_spread
84 max_h = h_mean + h_spread
87 "/dev/shm/DHT22-humidity" using ($1+tz_secs):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" \
88 ,"/dev/shm/rtl_433-vani-humidity" using ($1+tz_secs):($2) with lines title "vani" \
89 ,"/dev/shm/rtl_433-kupaona-humidity" using ($1+tz_secs):($2) with lines title "kupaona" \
90 ,"/dev/shm/rtl_433-kuhinja-humidity" using ($1+tz_secs):($2) with lines title "kuhunja" \
91 ,"/dev/shm/boiler.d" using ($1+tz_secs):($2 > 0 ? 48 : 2) axes x1y2 with dots title "boiler on/off" lt rgb "#000000"
93 if ( exists("lines") && lines == 1 ) {
95 "/dev/shm/DHT22-humidity" using ($1+tz_secs):($2 > min_h && $2 < max_h ? $2 : '') with lines title "DHT22 unutra" \
96 ,"/dev/shm/rtl_433-vani-humidity" using ($1+tz_secs):($2) with lines title "vani" \
97 ,"/dev/shm/rtl_433-kupaona-humidity" using ($1+tz_secs):($2) with lines title "kupaona" \
98 ,"/dev/shm/rtl_433-kuhinja-humidity" using ($1+tz_secs):($2) with lines title "kuhunja"