gitmyhub

lcd4linux_rotator

Python ★ 1 updated 13y ago

Allow a label/widget pair to rotate between several data sources

What It Does

lcd4linux_rotator solves a display problem: you have a small LCD screen and want to show information about multiple things—like the disk usage of five different hard drives—but you don't have room to display all five at once. This tool lets you rotate through them, cycling to a new one every second so you see each in turn.

How It Works

The tool acts as a bridge between lcd4linux (a program that controls LCD displays) and your data sources. You give it a list of things to track (like disk mount points: root, md0, home) along with friendly names. Then you set up two display widgets—a label and a bar chart. The rotator automatically cycles which data source feeds into them on a timer. So your label might show "root" while the bar shows root disk usage, then a moment later they both switch to "md0" and its usage, and so on. It uses Python code to handle the rotation logic, keeping track of which item should be displayed at any given moment.

Who Would Use This

Anyone running lcd4linux on a small display who wants to monitor multiple related items without cluttering the screen. A common example: a home server or media center with several storage drives. Instead of having a cramped display showing all five drives squeezed together, you'd see one drive's name and usage bar at a time, rotating through smoothly. System administrators monitoring multiple systems or resources would find this handy too—you get the benefit of seeing all your data without running out of physical screen space.

A Note on Its Design

This is a focused, single-purpose tool designed to integrate directly into lcd4linux's configuration. It's not a standalone application; it's meant to be called from within your display configuration file. The README assumes you're already familiar with lcd4linux and how to write expressions in its config syntax, so it's really built for someone actively maintaining an LCD display setup rather than a general audience.