Script to Display Temperature from Command Line (download provided)
I was getting some weird Wan drops and I noticed that my new purple was fairly hot to the touch. I have extensively written some scripts for rasp Pi's and took a hunch that the call to get the system temp was the same and there we go...
The script can be pulled from.
https://github.com/foo2rama/Kali-Debian-Update-Scripts-and-more/blob/master/temp.sh
Pretty simple script it also color codes the temps in the display. At the bottom of the script is a commented-out no color version for your own use.
If anyone wants detailed instructions on installing the script I can provide them, but if you cannot install the script from a copy of the .sh file then perhaps you should not be poking around from the command line.
I will be modifying another script that I have that automatically sends temp alerts to any slack channel and I will upload that, as well as provide detailed instructions on how to set that up, and install the script.
-
I've found this to be better solution.
Refresh the loading/welcome page.
sudo run-parts /etc/update-motd.d/
Hardware information: sensorspi@Firewalla:~ (Firewalla) $ sensors
coretemp-isa-0000
Adapter: ISA adapter
Package id 0: +70.0 C (high = +105.0 C, crit = +105.0 C)
Core 0: +69.0 C (high = +105.0 C, crit = +105.0 C)
Core 1: +69.0 C (high = +105.0 C, crit = +105.0 C)
Core 2: +69.0 C (high = +105.0 C, crit = +105.0 C)
Core 3: +69.0 C (high = +105.0 C, crit = +105.0 C)eth3-pci-0400
Adapter: PCI adapter
PHY Temperature: +72.0 C
MAC Temperature: +72.0 Cacpitz-acpi-0 (Contacted support over this reading and they said to ignore it as temp1 is not a real signal.)
Adapter: ACPI interface
temp1: +100.0 C (crit = +110.0 C)nct5585-isa-0a20
Adapter: ISA adapter
Vcore: 688.00 mV (min = +0.00 V, max = +1.74 V)
+5V: 5.08 V (min = +0.00 V, max = +0.00 V) ALARM
3.3V: 3.31 V (min = +0.00 V, max = +0.00 V) ALARM
+12V: 11.90 V (min = +0.00 V, max = +0.00 V) ALARM
VCCIN_AUX: 1.80 V (min = +0.00 V, max = +0.00 V) ALARM
System Fan1 Speed: 319 RPM (min = 0 RPM)
CPU Temp: +56.0 C (high = +80.0 C, hyst = +75.0 C) sensor = thermistor
System Temp: +58.0 C (high = +80.0 C, hyst = +75.0 C) sensor = thermistoreth0-pci-0300
Adapter: PCI adapter
PHY Temperature: +73.0 C
MAC Temperature: +73.0 C
Please sign in to leave a comment.
Comments
2 comments