Igor's Blog

Since the DietPi-CloudShell doesn't work properly on the Odroid-Show2, I decided to make my own script to display the system status on the Odroid-Show2. I reused some of the the code from DietPi-CloudShell for this purpose.

This is what my version looks like...it's a one page summary and isn't meant to be as comprehensive as the CloudShell script...

dietpi_status1.jpg dietpi_status2.jpg


My script captures the hostname and IP address(es) (just IPv4), CPU temperature, utilisation and frequency as well as disk usage, server time and uptime - all one one screen.

I think there are parts of my script that work better than the DietPi-CloudShell for overall status purposes. The CPU utilisation is averaged across all of the cores and the frequency is averaged across the two sets of cores i.e. all A7 core frequencies are shown as one number, averaged across the 4 cores, and all the A15 cores are treated the same way. You will notice in the photos above an odd frequency of 275Mhz, that's due to the averaging.

To get this all working I initially followed the Odroid-Show2 examples. Setting up the TTY is simple and then it's just a matter of sending the right ANSI commands to the terminal.

Once it was all working, I added a cron job to update the display every minute...
 crontab
* * * * * /root/status.sh


The script is available on GitHub here: https://github.com/ikromin/misc/tree/master/dietpi/odroid_show2



In case you missed it, I wrote about the software setup on my XU4 not too long ago. That covered DietPi, Plex, Deluge and webmin as well as a few other changes I made to the base system.

-i

, , ,
About — I'm an enthusiastic software engineer and consultant interested in many fields including J2EE, programming, electronics, 3D printing, video games, wood working and gardening.
See my Resume for more information.
The views expressed in this blog are my own and not those of my employer.
comments powered by Disqus
My other posts you may like...
Programming, DIY, Games, Hacks, Tech and more.
Follow me on...
Current and Past Projects
See my Resume

Subscribe


RSS Feed

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
StrFunc() Online
300 George St Blogumentary
Guru JSON-RPC Tester
Extrudifier Object Designer

Recent Blog Posts

Where to find the last item (Robbie's lost lyrics) in GravityFalls Lake level

Detecting print requests to print contents of a DIV with JavaScript

Using Google DFP with AdSense on responsive pages

How to change the email subject line in Gmail

Force PHP GD library to load JPEG images that have invalid data

How to uninstall Samsung Smart Switch from your Mac

Facebook adds weather forecasts but forgets to adjust them to your time zone

No sound or microphone when answering calls on an iPhone

Replacing the standard Odroid XU4 fan and heatsink

PHP PDO doesn't work binding multiple IN statement values

Recent Galleries

Space Food - Chocolate Ice Cream with Chocolate Chips

Legeod Star Wars AT-DP kit

DIY spare parts computer build with a RAIDMAX Anura case

Fake 'Lepin' brand Lego packaging

Hardwood garden bench with clear resin void filler

Fixing a 3D printer extruder that stopped heating up

Easily increase disk space in a Lenovo Ideapad 100S 14" laptop with an M.2 SSD

Making a multi-piece 3D printed solder spool holder stand

DIY indoor apartment grow light wiring

Good Friday Electronics fun Easter Bunny LED PCB Kit IBEABU-01.0

Top Categories

Blogs I follow

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth

Friends

RAWS Parts Online
Alpha Dimensions Hosting
Kristensen Photography
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Follow me on... 
     
...or subscribe for updates!

Don't show this again