re-color lines in temperature and humidity consistant
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 10 Dec 2018 07:36:52 +0000 (08:36 +0100)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 10 Dec 2018 07:36:52 +0000 (08:36 +0100)
temp2.gnuplot

index d63a66a..cb81081 100644 (file)
@@ -55,23 +55,23 @@ 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" \
-,"/dev/shm/rtl_433-vani-temperature" using ($1+tz_secs):($2) with dots title "vani" \
-,"/dev/shm/rtl_433-kupaona-temperature"  using ($1+tz_secs):($2) with dots title "kupaona" \
-,"/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/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" lt rgb "#ff00ff" \
+,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra" lt rgb "#880088" \
+,"/dev/shm/rtl_433-kuhinja-temperature" using ($1+tz_secs):($2) with dots title "kuhinja" lt rgb "#ff4444" \
+,"/dev/shm/rtl_433-kupaona-temperature"  using ($1+tz_secs):($2) with dots title "kupaona" lt rgb "#8888ff" \
+,"/dev/shm/rtl_433-soba-temperature" using ($1+tz_secs):($2) with dots title "soba" lt rgb "#ffcc00" \
+,"/dev/shm/rtl_433-vani-temperature" using ($1+tz_secs):($2) with dots title "vani" lt rgb "#00ff00" \
 ,"/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 \
- "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DHT22 unutra" \
-,"/dev/shm/rtl_433-vani-temperature" using ($1+tz_secs):($2) with lines title "vani" \
-,"/dev/shm/rtl_433-kupaona-temperature"  using ($1+tz_secs):($2) with lines title "kupaona" \
-,"/dev/shm/rtl_433-kuhinja-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-soba-temperature" using ($1+tz_secs):($2) with lines title "soba" lt rgb "#808000"
+ "/dev/shm/DHT22-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DHT22 unutra" lt rgb "#ff00ff" \
+,"/dev/shm/DS18B20-temperature" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20 unutra" lt rgb "#880088" \
+,"/dev/shm/rtl_433-kuhinja-temperature" using ($1+tz_secs):($2) with lines title "kuhinja" lt rgb "#ff4444" \
+,"/dev/shm/rtl_433-kupaona-temperature"  using ($1+tz_secs):($2) with lines title "kupaona" lt rgb "#8888ff" \
+,"/dev/shm/rtl_433-soba-temperature" using ($1+tz_secs):($2) with lines title "soba" lt rgb "#ffcc00" \
+,"/dev/shm/rtl_433-vani-temperature" using ($1+tz_secs):($2) with lines title "vani" lt rgb "#00ff00"
 }
 
 if ( gray == 1 ) {
@@ -84,18 +84,13 @@ min_h = h_mean - h_spread
 max_h = h_mean + h_spread
 
 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/DHT22-humidity" using ($1+tz_secs):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" lt rgb "#ff00ff" \
+,"/dev/shm/rtl_433-kuhinja-humidity" using ($1+tz_secs):($2) with lines title "kuhunja" lt rgb "#ff4444" \
+,"/dev/shm/rtl_433-kupaona-humidity"  using ($1+tz_secs):($2) with lines title "kupaona" lt rgb "#8888ff" \
+,"/dev/shm/rtl_433-vani-humidity" using ($1+tz_secs):($2) with lines title "vani" lt rgb "#00ff00 " \
 ,"/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 \
- "/dev/shm/DHT22-humidity" using ($1+tz_secs):($2 > min_h && $2 < max_h ? $2 : '') with lines 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"
 
 }
 unset multiplot