From: Siraaj Khandkar Date: Tue, 31 Jul 2018 17:11:52 +0000 (-0400) Subject: Output bar on every datetime msg X-Git-Url: https://git.xandkar.net/?a=commitdiff_plain;h=4142fc0d4b8dba879f009ed6a47bde91c5d3523d;p=khatus.git Output bar on every datetime msg instead of dedicated requests --- diff --git a/bin/khatus b/bin/khatus index 129ecf7..8e546ca 100755 --- a/bin/khatus +++ b/bin/khatus @@ -57,7 +57,6 @@ main() { interval_inp_fan=1 interval_inp_mem=1 interval_inp_energy=1 - interval_outp_bar=1 # User-overrides long_options='' @@ -87,7 +86,6 @@ main() { long_options+=',interval_inp_fan:' long_options+=',interval_inp_mem:' long_options+=',interval_inp_energy:' - long_options+=',interval_outp_bar:' OPTS=$( getopt \ -o 'd' \ @@ -202,10 +200,6 @@ main() { interval_inp_energy="$2" shift 2 ;; - --interval_outp_bar) - interval_outp_bar="$2" - shift 2 - ;; --) shift break @@ -268,7 +262,6 @@ main() { spawn "$pipe" "$dir_bin" "$cmd_sens_fan" 'in:FAN' $interval_inp_fan spawn "$pipe" "$dir_bin" khatus_sensor_memory 'in:MEMORY' $interval_inp_mem spawn "$pipe" "$dir_bin" khatus_sensor_energy 'in:ENERGY' $interval_inp_energy - spawn "$pipe" "$dir_bin" khatus_sensor_bar_req 'out:BAR' $interval_outp_bar consume \ "$pipe" \ diff --git a/bin/khatus_controller b/bin/khatus_controller index e6954a2..c4b9224 100755 --- a/bin/khatus_controller +++ b/bin/khatus_controller @@ -110,11 +110,6 @@ { split_msg_parts() db["datetime"] = msg_body -} - -/^out:BAR/\ -{ - split_msg_parts() print make_bar() } diff --git a/bin/khatus_sensor_bar_req b/bin/khatus_sensor_bar_req deleted file mode 100755 index d4fb1c1..0000000 --- a/bin/khatus_sensor_bar_req +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/sh - -echo ''