Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2893

General discussion • Re: Temperature failsafe

$
0
0
This should work :

https://gist.github.com/hotnuma/a0593d7 ... 1698350844

Download the file and compile it :

Code:

gcc -o test main.c
Execute the program :

Code:

./test
It will measure the CPU temperature every 10s and if it goes up to 75° C, it will call sync and then systemctl poweroff

Statistics: Posted by manu2007 — Tue Jun 10, 2025 11:27 pm



Viewing all articles
Browse latest Browse all 2893

Trending Articles