X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=temp2.gnuplot;h=4b3fd0dc98dea763083a9fd3e8d23c80670de904;hb=7ec574f0b4df35ef042d22dad76f221c88f8f7be;hp=707904a6981d86dfb83507d70dcf71eb305c8a92;hpb=916e324a929e80c968930d456c865db5507eef15;p=vaillant-thermostat diff --git a/temp2.gnuplot b/temp2.gnuplot index 707904a..4b3fd0d 100644 --- a/temp2.gnuplot +++ b/temp2.gnuplot @@ -1,7 +1,8 @@ -if ( ! exists("mono") ) { +if ( gray == 1 ) { +# set terminal pngcairo mono size 600,800 set terminal pngcairo color size 600,800 } else { - set terminal pngcairo mono size 600,800 + set terminal pngcairo color size 1200,600 } set xdata time @@ -16,9 +17,15 @@ set output '/dev/shm/temp2.png' unset border set multiplot -set size 1, 0.5 -set origin 0.0, 0.5 + +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) { @@ -39,24 +46,35 @@ set ytics nomirror set y2tics plot \ - "/dev/shm/rtl_433-temperature" using ($1+7200):($2) with dots title "vani" \ -,"/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \ -,"/dev/shm/rtl_433-9-temperature" using ($1+7200):($3 == 1 ? $2 : '') with dots title "predsoblje" \ -,"/dev/shm/rtl_433-9-temperature" using ($1+7200):($3 == 2 ? $2 : '') with dots title "kupaona" \ -,"/dev/shm/rtl_433-9-temperature" using ($1+7200):($3 == 3 ? $2 : '') with dots title "kuhinja" \ + "/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DHT22 unutra" \ +,"/dev/shm/rtl_433-9-172-temperature" using ($1+7200):($2) with dots title "vani" \ +,"/dev/shm/rtl_433-9-75-temperature" using ($1+7200):($2) with dots title "kupaona" \ +,"/dev/shm/rtl_433-9-141-temperature" using ($1+7200):($2) with dots title "kuhinja" \ ,"/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra" -set origin 0.0, 0.0 +if ( exists("lines") && lines == 1 ) { +plot \ + "/dev/shm/DHT22-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DHT22 unutra" \ +,"/dev/shm/rtl_433-9-172-temperature" using ($1+7200):($2) with lines title "vani" \ +,"/dev/shm/rtl_433-9-75-temperature" using ($1+7200):($2) with lines title "kupaona" \ +,"/dev/shm/rtl_433-9-141-temperature" using ($1+7200):($2) with lines title "kuhinja" \ +,"/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20 unutra" +} + +if ( gray == 1 ) { + set origin 0.0, 0.0 +} else { + set origin 0.0, 0.0 +} min_h = h_mean - h_spread max_h = h_mean + h_spread plot \ - "/dev/shm/rtl_433-humidity" using ($1+7200):($2 > 10 ? $2 : '') with lines title "vani" \ -,"/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" \ -,"/dev/shm/rtl_433-9-172-humidity" using ($1+7200):($2) with lines title "predsoblje" \ -,"/dev/shm/rtl_433-9-75-humidity" using ($1+7200):($2) with lines title "kupaona" \ + "/dev/shm/DHT22-humidity" using ($1+7200):($2 > min_h && $2 < max_h ? $2 : '') with dots title "DHT22 unutra" \ +,"/dev/shm/rtl_433-9-172-humidity" using ($1+7200):($2) with lines title "vani" \ +,"/dev/shm/rtl_433-9-75-humidity" using ($1+7200):($2) with lines title "kupaona" \ ,"/dev/shm/rtl_433-9-141-humidity" using ($1+7200):($2) with lines title "kuhunja" unset multiplot