I found this elsewhere and then modified it a bit to add more info.
Simply ssh into your moode and then
nano your_file_name.sh
and then paste this in it and save the changes:
Then do:
To run the script, simply:
The output will look something like:
You can also do the following if you want to monitor this info while playing music, running tests (resampling, EQ, DSP, etc.)
Simply ssh into your moode and then
nano your_file_name.sh
and then paste this in it and save the changes:
Code:
#!/bin/bash
# Script: my-pi-temp.sh
# Purpose: Display the ARM CPU and GPU temperature of Raspberry Pi 2/3
# Author: Vivek Gite <www.cyberciti.biz> under GPL v2.x+
# Edits by: Cogitech (add Core Volts and CPU Freq)
# -------------------------------------------------------
cpu=$(</sys/class/thermal/thermal_zone0/temp)
echo "$(date) @ $(hostname)"
echo "-------------------------------------------"
echo "GPU temp => $(vcgencmd measure_temp)"
echo "CPU temp => $((cpu/1000))'C"
echo "Core Volts => $(vcgencmd measure_volts)"
echo "CPU Freq => $(sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq) KHz"
Then do:
Code:
chmod +x your_file_name.sh
To run the script, simply:
Code:
./your_file_name.sh
The output will look something like:
Code:
Wed Dec 20 17:18:46 MST 2023 @ moode
-------------------------------------------
GPU temp => temp=45.7'C
CPU temp => 46'C
Core Volts => volt=0.8600V
CPU Freq => 700000 KHz
You can also do the following if you want to monitor this info while playing music, running tests (resampling, EQ, DSP, etc.)
Code:
watch ./your_file_name.sh