Rpi Gpio Inventory
Read-only snapshot of Raspberry Pi GPIO pin state (function, level, pull, consumer) via pinctrl/libgpiod, as a typed, versioned Swamp model — tracks what changed on the header once HATs/sensors are attached. Never sets a pin.
Ship the workflow in the package so a single ops repo can pull it and run it under swamp serve's own scheduler.
Global Arguments
| Argument | Type | Description |
|---|---|---|
| pinctrlPath? | string | Path to the pinctrl binary. Override for odd installs. |
| gpioinfoPath? | string | Path to the gpioinfo binary. Override for odd installs. |
| primaryGpiochipName? | string | The gpiochip whose line indices are verified to match pinctrl's |
Resources
Snapshot GPIO pin state from gpio-local and assert the read actually produced pins (a trivial sanity check — readGpio already refuses to write an empty resource, so this mainly guards against a future change weakening that). The point of this model is the diff across versions, not a threshold to alert on: pin state only changes when a HAT/sensor is physically attached or a device tree overlay changes, so this runs once a day rather than every 5 minutes like the telemetry extensions — matching @a
- 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