cover-img

Tenés una Raspberry Pi? Mira esto! | Do you have a Raspberry Pi? Check it out!

Un pequeño script en bash para monitorizar la temperatura de tu raspberry | A little bash script to monitor the temperature of your raspberry

Draft

10 December, 2021

Contributors


Hola Gente, cómo están?

Bueno, les muestro este pequeño script que hice en bash para monitorizar la temperatura de mi raspberry pi. Especificamente tengo el modelo 3B. Tiene un 1gb de ram y parece que con esa cantidad de memoria no puede hacer mucho, pero si!

Actualmente está corriendo:

  • PiHole (Un servicio que hace de DNS y te permite bloquear anuncios, rastreadores y dominios antes de que esten en tu red)

  • Open Media Vault (Un servicio de NAS)

  • NextCloud (Un servicio estilo google drive, pero sin google, es decir, genial)

  • qBitTorrent (Para estar bajando y compartiendo torrents 24/7)

También la raspberry tiene conectado el cable de alimentación, el cable de red y el disco duro.

Cuestión que a los días de tenerlo montado, me puse a investigar para ver cómo podía monitorizar la temperatura y bueno, cómo siempre, termine haciendo un script todo bonito, pero esta vez en bash

Foto del script funcionando

Es muy sencillo, captura la temperatura de la cpu y gpu y te la muestra, luego de 30 min se actualiza, así te podes conectar por ssh, hacer la terminal chiquita y fijarla para que este siempre encima y vas mirando que onda

Foto del escritorio y el script en un segundo monitor

Les dejo el link al GitHub por si quieren pispear el código obvio que si se te ocurre alguna mejora o algo, el código está ahí para que le hagas un fork y todo lo que quieras :)

Que te parecio? Tenes una raspberry? Sabías que se podía hacer todo esto? contame que onda, gracias por leer!



Hello people, how are you?

Well, I show you this little script I made in bash to monitor the temperature of my raspberry pi. Specifically I have the model 3B. It has a 1gb of ram and it seems that with that amount of memory it can't do much, but yeah!

It is currently running:

  • PiHole (A service that does DNS and allows you to block ads, trackers and domains before they are on your network).

  • Open Media Vault (A NAS service)

  • NextCloud (A google drive style service, but without google, i.e. cool)

  • qBitTorrent (To be downloading and sharing torrents 24/7)

Also the raspberry has connected the power cable, the network cable and the hard drive.

A few days after I had it mounted, I started to investigate to see how I could monitor the temperature and well, as always, I ended up making a nice script, but this time in bash.

Foto del script funcionando

It's very simple, it captures the temperature of the cpu and gpu and shows it to you, after 30 min it updates, so you can connect by ssh, make the terminal small and set it to be always on top and you can see what's up.

Picture of the desktop and the script on a second monitor

I leave you the link to GitHub if you want to peek the code obviously if you think of any improvement or something, the code is there for you to do a fork and everything you want :)

What do you think? Do you have a raspberry? Did you know you could do all this? let me know what you think, thanks for reading!

bash

raspberry pi

script

temperature monitor

check-temp

bash

raspberry pi

script

temperature monitor

check-temp

Lucas
Python Developer -> Backend

More Articles

Showwcase is a professional tech network with over 0 users from over 150 countries. We assist tech professionals in showcasing their unique skills through dedicated profiles and connect them with top global companies for career opportunities.

© Copyright 2025. Showcase Creators Inc. All rights reserved.