Rpi Rtc
Raspberry Pi 5 onboard RTC telemetry (system-vs-RTC clock drift, coin-cell battery voltage) via sysfs, as a typed, versioned Swamp model — catches a dead RTC battery before it costs you the system clock across a power cut.
New batteryFitted global argument: declare false on a board with no RTC coin cell and the workflow skips the low-battery check. batteryPresent now reports that declaration.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| rtcDevicePath? | string | sysfs path to the RTC device. The Pi 5's onboard RTC is deterministically |
| timedatectlPath? | string | Path to the timedatectl binary. Override for odd installs. |
| batteryFitted? | boolean | Whether an RTC coin cell is fitted, as declared by whoever set up |
Resources
Read RTC drift and coin-cell battery voltage from rtc-local and assert two thresholds: drift stays under driftWarnSeconds (a few seconds is normal, minutes means trouble), and batteryVolts — when readable — stays above lowBatteryVolts. The battery check passes without comparing when batteryVolts is null (no battery instrumentation) or when batteryPresent is false, meaning the model's batteryFitted argument declares that no coin cell is fitted. The hardware can't tell "no cell" from "dead cell",
Ship the workflow in the package so a single ops repo can pull it and run it under swamp serve's own scheduler.
Added 1 workflows
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Docs keep secrets in a vault1/1earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License1/2partial
no SPDX license declared
- Verified public repository2/2earned