+if ( gray == 1 ) {
+ set size 1, 0.5
+ set origin 0.0, 0.5
+} else {
+ set size 1.0, 0.5
+ set origin 0.0, 0.5
+}
+
+#if ( ! exists("t_mean")) {
+if (1) {
+
+t_mean=25
+t_spread=25
+
+h_mean = 50
+h_spread = 50
+
+print "using default mean and spread"
+}
+
+min_t = t_mean - ( t_spread / 2 )
+max_t = t_mean + ( t_spread / 2 )
+
+if ( ! exists("tz_secs") ) {
+ tz_secs=7200
+}
+
+set ytics nomirror
+set y2tics
+
+plot \
+ "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \
+,"/dev/shm/rtl_433-9-172-temperature" using ($1+tz_secs):($2) with dots title "vani" \
+,"/dev/shm/rtl_433-9-75-temperature" using ($1+tz_secs):($2) with dots title "kupaona" \
+,"/dev/shm/rtl_433-9-141-temperature" using ($1+tz_secs):($2) with dots title "kuhinja" \
+,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra" \
+,"/dev/shm/rtl_433-183-temperature" using ($1+tz_secs):($2) with dots title "soba" lt rgb "#808000"
+
+
+if ( exists("lines") && lines == 1 ) {
+plot \
+ "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DHT22 unutra" \
+,"/dev/shm/rtl_433-9-172-temperature" using ($1+tz_secs):($2) with lines title "vani" \
+,"/dev/shm/rtl_433-9-75-temperature" using ($1+tz_secs):($2) with lines title "kupaona" \
+,"/dev/shm/rtl_433-9-141-temperature" using ($1+tz_secs):($2) with lines title "kuhinja" \
+,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20 unutra" \
+,"/dev/shm/rtl_433-183-temperature" using ($1+tz_secs):($2) with lines title "soba" lt rgb "#808000"
+}
+
+if ( gray == 1 ) {
+ set origin 0.0, 0.0
+} else {
+ set origin 0.0, 0.0
+}