X-Git-Url: https://git.xandkar.net/?p=khatus.git;a=blobdiff_plain;f=x4%2Fbin%2Fkhatus_x4_sensor_energy;fp=x4%2Fbin%2Fkhatus_x4_sensor_energy;h=a7ade3f1d4ac8182214c5a9863731fcc2185a0b2;hp=0000000000000000000000000000000000000000;hb=4411059d155436af0e80e5e6c3928ac8373093d6;hpb=dd5287c68654c8c82b3974364d210fdcc253f9d2 diff --git a/x4/bin/khatus_x4_sensor_energy b/x4/bin/khatus_x4_sensor_energy new file mode 100755 index 0000000..a7ade3f --- /dev/null +++ b/x4/bin/khatus_x4_sensor_energy @@ -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