Show your Raspi temperature

RasPi

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



!/bin/bash

Script para mostrar la temperatura de la Raspberry Pi en terminal

Se pueden ajustar los valores para mostrar colores a diferentes

temperaturas.

Por defecto:

40 grados o menos -> verde (32)

Entre 41 y 54 -> amarillo (33)

Superior o igual a 55 -> rojo (31)

http://belinuxmyfriend.blogspot.com

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


We request your permission to obtain statistical data on its navigation on this website. If you continue to browse we consider to accept the use of cookies. OK | More Information