Show your Raspi temperature


I just found a script to display the temperature under your Raspi terminal. If you are interested...


Script para mostrar la temperatura de la Raspberry Pi en terminal

Se pueden ajustar los valores para mostrar colores a diferentes


Por defecto:

40 grados o menos -> verde (32)

Entre 41 y 54 -> amarillo (33)

Superior o igual a 55 -> rojo (31)

mgrados=cat /sys/class/thermal/thermal_zone0/temp engrados=expr $mgrados / 1000

if [ $engrados -le 40 ]; then echo -e "Temperatura CPU:\033[32m $engrados" elif [ $engrados -gt 40 ] && [ $engrados -lt 55 ]; then echo -e "Temperatura CPU:\033[33m $engrados" else echo -e "Temperatura CPU:\033[31m $engrados" fi

I request your permission to obtain statistical data on its navigation on this website. If you continue to browse I consider you accept the use of cookies. This site is adapted to be compliant with the new law about General Data Protection Regulation. OK | More Information