initial commit

This commit is contained in:
dzaczek 2023-10-13 22:29:49 +02:00
commit 81b9fd515f
7 changed files with 789 additions and 0 deletions

10
scripts/rpitemp.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
# Get the CPU temperature
cpu_temp_milli=$(cat /sys/class/thermal/thermal_zone0/temp)
# Convert to degrees Celsius
cpu_temp=$(awk -v temp="$cpu_temp_milli" 'BEGIN {printf "%.1f", temp/1000}')
# Output the temperature
echo "$cpu_temp"