From 1fcafd05ce18e06e6c77abf33cb990252eebb7e6 Mon Sep 17 00:00:00 2001 From: Dobrica Pavlinusic Date: Sun, 3 May 2020 10:58:03 +0200 Subject: [PATCH] added hodnik, changed colors --- temp3.gnuplot | 12 ++++++++---- temp3.sh | 3 ++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/temp3.gnuplot b/temp3.gnuplot index 20e070b..5b831ce 100644 --- a/temp3.gnuplot +++ b/temp3.gnuplot @@ -67,8 +67,9 @@ plot \ ,"/dev/shm/data.ir-dht22-t-h" using ($1+tz_secs):($2) with dots title "ir" lt rgb "#884400" \ ,"/dev/shm/data.stol-dht11-t-h" using ($1+tz_secs):($2) with dots title "stol" lt rgb "#cc4400" \ ,"/dev/shm/data.kuhinja-t-h" using ($1+tz_secs):($2) with dots title "kuhinja" lt rgb "#ff8844" \ -,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($2) with dots title "kupaona" lt rgb "#00ff80" \ +,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($2) with dots title "kupaona" lt rgb "#0080ff" \ ,"/dev/shm/data.soba-t-h" using ($1+tz_secs):($2) with dots title "soba" lt rgb "#ffcc00" \ +,"/dev/shm/data.hodnik-t-h" using ($1+tz_secs):($2) with dots title "hodnik" lt rgb "#80ff80" \ ,"/dev/shm/data.vani-t-h" using ($1+tz_secs):($2) with dots title "sunce" lt rgb "#00cc00" \ ,"/dev/shm/data.kutija-t-h" using ($1+tz_secs):($2) with dots title "hlad" lt rgb "#0088cc" \ ,"/dev/shm/data.DS18B20-t" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with dots title "DS18B20" lt rgb "#880088" \ @@ -81,8 +82,9 @@ plot \ ,"/dev/shm/data.ir-dht22-t-h" using ($1+tz_secs):($2) with lines title "ir" lt rgb "#884400" \ ,"/dev/shm/data.stol-dht11-t-h" using ($1+tz_secs):($2) with lines title "stol" lt rgb "#cc4400" \ ,"/dev/shm/data.kuhinja-t-h" using ($1+tz_secs):($2) with lines title "kuhinja" lt rgb "#ff8844" \ -,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($2) with lines title "kupaona" lt rgb "#00ff80" \ +,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($2) with lines title "kupaona" lt rgb "#0080ff" \ ,"/dev/shm/data.soba-t-h" using ($1+tz_secs):($2) with lines title "soba" lt rgb "#ffcc00" \ +,"/dev/shm/data.hodnik-t-h" using ($1+tz_secs):($2) with lines title "hodnik" lt rgb "#80ff80" \ ,"/dev/shm/data.vani-t-h" using ($1+tz_secs):($2) with lines title "sunce" lt rgb "#00cc00" \ ,"/dev/shm/data.kutija-t-h" using ($1+tz_secs):($2) with lines title "hlad" lt rgb "#0088cc" \ ,"/dev/shm/data.DS18B20-t" using ($1+tz_secs):($2 > min_t && $2 < max_t ? $2 : '') with lines title "DS18B20" lt rgb "#880088" \ @@ -105,8 +107,9 @@ plot \ ,"/dev/shm/data.ir-dht22-t-h" using ($1+tz_secs):($3) with dots title "ir" lt rgb "#884400" \ ,"/dev/shm/data.stol-dht11-t-h" using ($1+tz_secs):($3) with dots title "stol" lt rgb "#cc4400" \ ,"/dev/shm/data.kuhinja-t-h" using ($1+tz_secs):($3) with dots title "kuhinja" lt rgb "#ff8844" \ -,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($3) with dots title "kupaona" lt rgb "#00ff80" \ +,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($3) with dots title "kupaona" lt rgb "#0080ff" \ ,"/dev/shm/data.soba-t-h" using ($1+tz_secs):($3) with dots title "soba" lt rgb "#ffcc00" \ +,"/dev/shm/data.hodnik-t-h" using ($1+tz_secs):($3) with dots title "hodnik" lt rgb "#80ff80" \ ,"/dev/shm/data.vani-t-h" using ($1+tz_secs):($3) with dots title "sunce" lt rgb "#00cc00" \ ,"/dev/shm/data.kutija-t-h" using ($1+tz_secs):($3) with dots title "hlad" lt rgb "#0088cc" \ ,"/dev/shm/data.boiler-d" using ($1+tz_secs):($2 > 0 ? 50 : 0) axes x1y2 with dots title "boiler" lt rgb "#aaaaaa" @@ -117,8 +120,9 @@ plot \ ,"/dev/shm/data.ir-dht22-t-h" using ($1+tz_secs):($3) with lines title "ir" lt rgb "#884400" \ ,"/dev/shm/data.stol-dht11-t-h" using ($1+tz_secs):($3) with lines title "stol" lt rgb "#cc4400" \ ,"/dev/shm/data.kuhinja-t-h" using ($1+tz_secs):($3) with lines title "kuhinja" lt rgb "#ff8844" \ -,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($3) with lines title "kupaona" lt rgb "#00ff80" \ +,"/dev/shm/data.kupaona-t-h" using ($1+tz_secs):($3) with lines title "kupaona" lt rgb "#0080ff" \ ,"/dev/shm/data.soba-t-h" using ($1+tz_secs):($3) with lines title "soba" lt rgb "#ffcc00" \ +,"/dev/shm/data.hodnik-t-h" using ($1+tz_secs):($3) with lines title "hodnik" lt rgb "#80ff80" \ ,"/dev/shm/data.vani-t-h" using ($1+tz_secs):($3) with lines title "sunce" lt rgb "#00cc00" \ ,"/dev/shm/data.kutija-t-h" using ($1+tz_secs):($3) with lines title "hlad" lt rgb "#0088cc" \ ,"/dev/shm/data.boiler-d" using ($1+tz_secs):($2 > 0 ? 50 : 0) axes x1y2 with dots title "boiler" lt rgb "#aaaaaa" diff --git a/temp3.sh b/temp3.sh index 2d21b93..5928d42 100755 --- a/temp3.sh +++ b/temp3.sh @@ -71,7 +71,8 @@ rename_ids 'vani-t-h' 0 234 84 rename_ids 'kutija-t-h' 228 241 # hlad rename_ids 'kupaona-t-h' 98 82 rename_ids 'kuhinja-t-h' 181 183 -rename_ids 'soba-t-h' 252 183 +rename_ids 'soba-t-h' 252 4 +rename_ids 'hodnik-t-h' 167 influx_mqtt 'stat/boiler/DS18B20/temperature' 'DS18B20-t' -- 2.20.1