Begin X4 prototype
[khatus.git] / x4 / bin / khatus_x4_sensor_energy
diff --git a/x4/bin/khatus_x4_sensor_energy b/x4/bin/khatus_x4_sensor_energy
new file mode 100755 (executable)
index 0000000..a7ade3f
--- /dev/null
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+set -e
+
+bin_dir="$(dirname $(realpath $0))"
+
+. "$bin_dir/khatus_x4_lib_common_sensor.sh"
+
+sensor() {
+    stdbuf -o L upower --dump           | stdbuf -o L "$bin_dir"/khatus_x4_parse_upower
+    stdbuf -o L upower --monitor-detail | stdbuf -o L "$bin_dir"/khatus_x4_parse_upower
+}
+
+run_as='streamer'
+run
This page took 0.026044 seconds and 4 git commands to generate.