Added CPU temp, mem load and other Orange Pi OS specific info to Diagnotics web page (diagnose.sh) #821
Replies: 3 comments
-
IMPORTANT UPDATE It looks like that |
Beta Was this translation helpful? Give feedback.
-
Does the "Tools" tab in the web interface not show the temperature for you? |
Beta Was this translation helpful? Give feedback.
-
@marcone well, I must have missed that Tools tab - yes, the Tools tabdoes show the CPU temperature. I meant, I wanted to see live updates on the memory usage ;) |
Beta Was this translation helpful? Give feedback.
-
On the Diagnostic web page I wanted to see my CPU temp for my Orange Pi Zero 2 W. I notice that page was just capturing text log directly from "setup-teslausb diagnose." I also know that the Orange Pi OS (Bookworm) has a nice screen that shows the CPU temp, mem usage, uptime and other useful stats.
Lets combine both information sets so we see the CPU temp, mem usage, and other diagnostics info. Here's what I did.
First, I changed the root partition to writable
/root/bin/remountfs_rw
Next, I had to download ansi2txt via
apt-get colorized-logs
The ansi2txt program is needed to strip the ansi colors from the OrangePi system info.Then I went over to
/var/www/html/cgi-bin
andnano diagnose.sh
I modified the file to look like this;
Basically, two changes; I added the (cat /var/run... to run the Orange Pi message of the day (aka CPU temp, up time, mem usage)
And my other change was on the next line switching a & > over to >> so that the diagnostic.txt gets appended and not overwritten.
So now I get the Orange Pi motd info into the diagnostic log. Because I want to see how the CPU temp does in the summer inside a glovebox.
Heres' a sample of what is on my diagnostic web page:
I hope this info helped another Orange Pi Zero 2 W (or other OrangePI OS) users out there.
Beta Was this translation helpful? Give feedback.
All reactions