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
300 George St Blogumentary

My Online Tools

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

Recent Blog Posts

Showing whitespace characters in vi

Using Jackson to automatically convert Java POJOs to JSON as output of a Jersey service

Enable quick access to the keyboard and emoji viewer in macOS

How to tell if your site is served via CloudFlare

Googe Cloud Platform doesn't support CloudFlare's free edge certificates

Fixing the invalid private key error in the Google Cloud Platform App Engine app Settings page

Cleaning the sticky PlayStation controller analogue thumb sticks

Invoking interactive shell scripts non-interactively

Using variables as column numbers with Bash and Awk when processing text files

Debugging Google DFP ad delivery via the publisher console

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