I needed my Pi to be completely portable for some upcoming projects, but making a Pi 5 wireless isn't always as simple as plugging in a standard power bank.
To solve this, I built a setup using a Geekworm UPS hat to act as a smart power supply. To actually see what the hardware was doing, I wrote a custom (Fallout RobCo industries inspired) dashboard in Python called RBerryLink.
RBerryLink is fully functional, and handles:
Live Diagnostics: It tracks real-time battery capacity, voltage, and discharge rates. The raw battery data coming over the I2C interface can be pretty noisy, so it uses a smoothing algorithm to calculate an accurate "Time Until Empty" prediction based on your average usage.
System Tracking: Monitors CPU temps, memory usage, disk Read/Write speeds, and basic networking information.
Failsafes: I programmed in a "Safe Shutdown" slider to help power down before the battery hits zero