-set terminal pngcairo mono size 600,800
+set terminal pngcairo color size 600,800
set xdata time
set timefmt "%s"
if ( ! exists("t_mean")) {
-t_mean=26
-t_spread=5
+t_mean=25
+t_spread=25
h_mean = 50
h_spread = 30
min_t = t_mean - t_spread
max_t = t_mean + t_spread
-plot "/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 deg. C","/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 deg. C"
+set ytics nomirror
+set y2tics
+
+plot "/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 deg. C" \
+,"/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 deg. C" \
+,"/dev/shm/rtl_433-temperature" using ($1+7200):($2) with dots title "RTL433 deg. C" axes x1y2
set origin 0.0, 0.0
min_h = h_mean - h_spread
max_h = h_mean + h_spread
-plot "/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 % hum"
+plot "/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 % hum" \
+,"/dev/shm/rtl_433-humidity" using ($1+7200):($2) with dots title "RTL433 % hum" axis x1y2
unset multiplot