Output bar on every datetime msg
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 31 Jul 2018 17:11:52 +0000 (13:11 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 31 Jul 2018 17:11:52 +0000 (13:11 -0400)
instead of dedicated requests

bin/khatus
bin/khatus_controller
bin/khatus_sensor_bar_req [deleted file]

index 129ecf7..8e546ca 100755 (executable)
@@ -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" \
index e6954a2..c4b9224 100755 (executable)
 {
     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 (executable)
index d4fb1c1..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#! /bin/sh
-
-echo ''
This page took 0.032205 seconds and 4 git commands to generate.