Redesign component interfaces
[khatus.git] / bin / khatus_sensor_temperature
index 6f9bd23..321c8d8 100755 (executable)
@@ -4,4 +4,12 @@ set -e
 
 thermal_zone="$1"
 
-cat "/sys/class/thermal/thermal_zone${thermal_zone}/temp"
+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.019176 seconds and 4 git commands to generate.