Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raspberr Pi Temp #87

Open
emibia opened this issue Mar 3, 2024 · 1 comment
Open

Raspberr Pi Temp #87

emibia opened this issue Mar 3, 2024 · 1 comment

Comments

@emibia
Copy link

emibia commented Mar 3, 2024

Hi there is no CPU temp for RPI.

I think can be done with:

echo "$(sensors)" | sed -e 's/^temp/Core /' | awk -v format="$cpu_temp_format$cpu_temp_unit" '/^Core [0-9]+/ {gsub("[0-9.]", "", $2); sum+=$3; n+=1 } END {printf(format, sum/n)}'.

and an IF in cpu_temp.sh, for RPI 4b is:

if grep -q "Raspberry" /proc/cpuinfo; then

Output from sensors:

rpi_volt-isa-0000
Adapter: ISA adapter
in0:              N/A

cpu_thermal-virtual-0
Adapter: Virtual device
temp1:        +53.6°C  (crit = +110.0°C)

gpio_fan-isa-0000
Adapter: ISA adapter
fan1:           0 RPM  (min =    0 RPM, max = 5000 RPM)

I can create a pull request.

@travelingflwr
Copy link

+1 for this. Changing Tccd to temp works for me so will watch for the update since TPM keeps refreshing the existing. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants