Files
lightgui_python/examples/monitor_temperature_monitor

Temperature Monitor — monitor (Python)

A btop-style temperature monitor in one 1024x768 window, built only from LightGUI XFrame monitor widgets:

  • XTempHistory — temperature history of the first thermal zone, with an 80 C threshold line (readings above it draw red)

Live data comes from /sys/class/thermal/thermal_zone*/temp and /sys/class/hwmon/hwmon*/temp*_input, re-scanned every 2 s. On a machine with sensors the history fills with live readings; on this machine (hot_dallas, a VPS with no thermal sensors at all — only cooling devices under /sys/class/thermal/, no thermal_zone*/temp files, an empty /sys/class/hwmon/) the app shows the widget's honest empty state: an empty graph, "no data" in the legend, and a title that says no thermal zones were found. No mock or demo temperatures: the deterministic demo data is dropped at startup with MonitorWidget.clear().

Run

PYTHONPATH=. python3 examples/monitor_temperature_monitor/main.py

Esc, q, or closing the window quits.

Source