soba bettery change
[vaillant-thermostat] / temp2.gnuplot
index 35d86ea..d63a66a 100644 (file)
@@ -52,6 +52,7 @@ if ( ! exists("tz_secs") ) {
 
 set ytics nomirror
 unset y2tics
+set y2range [0:50]
 
 plot \
  "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \
@@ -60,7 +61,7 @@ plot \
 ,"/dev/shm/rtl_433-kuhinja-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-soba-temperature" using ($1+tz_secs):($2) with dots title "soba" lt rgb "#808000" \
-,"/dev/shm/boiler.d" using ($1+tz_secs):($2 > 0 ? 1 : 0) axes x2y2 title "boiler on/off" with lines lt rgb "#000000"
+,"/dev/shm/boiler.d" using ($1+tz_secs):($2 > 0 ? 48 : 2) axes x1y2 with dots title "boiler on/off" lt rgb "#000000"
 
 
 if ( exists("lines") && lines == 1 ) {
@@ -86,7 +87,8 @@ plot \
  "/dev/shm/DHT22-humidity" using ($1+tz_secs):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" \
 ,"/dev/shm/rtl_433-vani-humidity" using ($1+tz_secs):($2) with lines title "vani" \
 ,"/dev/shm/rtl_433-kupaona-humidity"  using ($1+tz_secs):($2) with lines title "kupaona" \
-,"/dev/shm/rtl_433-kuhinja-humidity" using ($1+tz_secs):($2) with lines title "kuhunja"
+,"/dev/shm/rtl_433-kuhinja-humidity" using ($1+tz_secs):($2) with lines title "kuhunja" \
+,"/dev/shm/boiler.d" using ($1+tz_secs):($2 > 0 ? 48 : 2) axes x1y2 with dots title "boiler on/off" lt rgb "#000000"
 
 if ( exists("lines") && lines == 1 ) {
 plot \