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

comments powered by Disqus
Other posts you may like...
Programming, DIY, Games, Hacks, and Tech

Recent Blog Posts

Converting a CSV file containing commas in quotes to a pipe separated file using Awk and Bash

How to get Facybox gallery popup to work for images with dynamic URLs

jQuery UI Photoboxr plugin updated to version 0.2

Learn How to Add Disclaimer to All Outgoing Emails in Office 365

How to securely host your web site for free with Google Cloud and CloudFlare (part 3)

How to securely host your web site for free with Google Cloud and CloudFlare (part 2)

How to securely host your web site for free with Google Cloud and CloudFlare (part 1)

Beware of the subtle difference in date format strings between MySQL and SQLite

Postman reporting Unexpected 'N' error in response body

Adding extra shelves to the Ikea Detolf display cabinet

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

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
Please follow me for more great content!
     
Don't show this again