mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-02 20:59:56 -05:00
controller: report cooling fan RPM in CPU status
The RPi 5 fan connector exposes a tachometer via the pwmfan hwmon device. Report it as fan_rpm in cpu_stats and show it in both the Controller fallback UI and the React Status page. Hidden when no fan is present. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
parent
f635671266
commit
42a017294e
6 changed files with 54 additions and 2 deletions
|
|
@ -258,6 +258,7 @@ async def dashboard(request: Request):
|
|||
"cpu": {
|
||||
"percent": cpu["percent"],
|
||||
"temperature_c": cpu["temperature"], # Field renamed
|
||||
"fan_rpm": cpu.get("fan_rpm"),
|
||||
},
|
||||
"memory": {
|
||||
"percent": round((memory["used"] / memory["total"]) * 100, 1) if memory["total"] > 0 else 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue