Igor's Blog
Programming, DIY, Games, Hacks, and Tech

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

comments powered by Disqus
Other posts you may like...

Recent Blog Posts

A hack to create an uber jar with the Maven Shade Plugin using local jar files

Is it worth it? Apple USB-C Digital Multi AV adapter vs a cheap eBay clone

Running X11 graphical applications after changing to another user using 'sudo su'

How to stop Facebook using ad images as post sharing thumbnails

Picking lists for Atari Lynx capacitor replacement kits

Performance - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Look and feel - 2012 Retina MacBook Pro vs 2017 MacBook Pro

Using math to work out the diameter of hard to reach water cooling pipes

How to get the unreachable shard in the Hinterlands in DragonAge Inquisition

Measy RC12 wireless 2.4Ghz keyboard touchpad review

Recent Galleries

Monument Valley 2 is released and does not disappoint

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

My Other Web Sites

Igor and Elise's Travels
Riverside Expressway Cam
300 George St Blogumentary

My Online Tools

UUID to OID Converter
Guru JSON-RPC Tester
Extrudifier Object Designer
Travel ┬ÁBlog

Blogs and Friends

Matt Moores Blog
Georgi's FlatPress Guide
Perplexing Permutations
The Security Sleuth
Ilia Rogatchevski
Travelling Fairy

Blog Activity

Blog Activity
Don't forget to
me for more great articles!
Don't show this again