X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=temp2.gnuplot;h=e785eb82488a9287c78c567a8a023294c0ebe714;hb=2db91eb214086fced01cfcf40c1563ac89101242;hp=1f7d6dc3a615af60583d3d4c710207e7968a3508;hpb=b76c806524f3249becb8c2896717226bcca10ac0;p=vaillant-thermostat diff --git a/temp2.gnuplot b/temp2.gnuplot index 1f7d6dc..e785eb8 100644 --- a/temp2.gnuplot +++ b/temp2.gnuplot @@ -8,7 +8,11 @@ if ( gray == 1 ) { set xdata time set timefmt "%s" -set xtics format "%H" +if (strlen(interval) > 2) { + set xtics format "%H" +} else { + set xtics format "%H:%M" +} set pointsize 0.2 @@ -50,7 +54,8 @@ plot \ ,"/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" +,"/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20 unutra" \ +,"/dev/shm/rtl_433-183-temperature" using ($1+7200):($2) with dots title "soba" lt rgb "#808000" if ( exists("lines") && lines == 1 ) { @@ -59,7 +64,8 @@ plot \ ,"/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" +,"/dev/shm/DS18B20-temperature" using ($1+7200):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20 unutra" \ +,"/dev/shm/rtl_433-183-temperature" using ($1+7200):($2) with lines title "soba" lt rgb "#808000" } if ( gray == 1 ) {