set xdata time
set timefmt "%s"
+set xtics format "%H"
+
set pointsize 0.2
set output '/dev/shm/temp2.png'
set origin 0.0, 0.5
-plot "/dev/shm/DS18B20-temperature" using 1:2 with dots title "DS18B20 deg. C","/dev/shm/DHT22-temperature" using 1:($2 > 1 && $2 < 45 ? $2 : '') with dots title "DHT22 deg. C"
+plot "/dev/shm/DS18B20-temperature" using ($1+7200):($2 > 3 ? $2 : '') with dots title "DS18B20 deg. C","/dev/shm/DHT22-temperature" using ($1+7200):($2 > 3 && $2 < 45 ? $2 : '') with dots title "DHT22 deg. C"
set origin 0.0, 0.0
-plot "/dev/shm/DHT22-humidity" using 1:($2 > 3 ? $2 : '') with dots title "DHT22 % hum"
+plot "/dev/shm/DHT22-humidity" using ($1+7200):($2 > 3 ? $2 : '') with dots title "DHT22 % hum"
unset multiplot