Improve overview and experiment naming
[khatus.git] / x2 / src / bash / exe / khatus_sensor_temperature.sh
diff --git a/x2/src/bash/exe/khatus_sensor_temperature.sh b/x2/src/bash/exe/khatus_sensor_temperature.sh
new file mode 100644 (file)
index 0000000..321c8d8
--- /dev/null
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+set -e
+
+thermal_zone="$1"
+
+awk '
+    BEGIN {
+        OFS = msg_fs ? msg_fs : "|"
+        Kfs = key_fs ? key_fs : ":"
+    }
+
+    {print("temp_c", $1 / 1000)}
+' \
+"/sys/class/thermal/thermal_zone${thermal_zone}/temp"
This page took 0.022493 seconds and 4 git commands to generate.