Skip to content

Bring back diagnostics - #372

Merged
g4bri3lDev merged 1 commit into
rewrite-with-modulesfrom
feat/diagnostics
Nov 27, 2026
Merged

g4bri3lDev merged 1 commit into
rewrite-with-modulesfrom
feat/diagnostics

Conversation

@g4bri3lDev

Copy link
Copy Markdown
Member

The 4.0 rebuild lost the diagnostics download. The 3.x version was written against the Hub that the rewrite replaced, so it didn't come across. Nobody decided to drop it. This adds it back for both kinds of entry.

Access Point entries report:

  • the Access Point's info, config and status
  • each tag it shows, with its tag type and whether it's the Access Point's own display
  • how many tags the Access Point lists, against how many this entry shows (mesh ownership and hidden tags)

ATC entries report:

  • the panel geometry and device config the tag gave at setup
  • its latest advertisement
  • whether an image has been drawn or an upload is in progress

Redacted: the host, the Access Point address on each tag, the Wi-Fi SSID, and the tag content mode config, which can carry URLs and tokens. MACs keep their last four digits so tags can still be told apart, in the hidden tags option too. Each library model's raw payload is left out, because its keys can't be redacted by name.

The README now asks for diagnostics in bug reports.

Testing

  • New tests/test_diagnostics.py. It checks the AP and ATC output, and that no address, MAC, SSID or content config appears anywhere in the dump.
  • Full suite passes (246), and ruff and mypy are clean.

The 4.0 rebuild wrote the package from scratch and the 3.x diagnostics,
written against the Hub it replaced, did not come across. Nothing decided
to drop them, and they are the first thing to ask for in a bug report.

An Access Point entry reports its info, config and status, and every tag
it shows with its tag type and whether it is the Access Point's own
display, plus how many tags the Access Point lists against how many this
entry shows. An ATC entry reports the geometry and config the tag gave at
setup, its latest advertisement, and whether an image or upload is
pending.

The host, tag Access Point addresses, Wi-Fi SSID and content mode
configuration are redacted. MACs keep their last four digits so tags stay
apart, including in the hidden tags option and an alias that is a MAC.
Each library model's raw payload is left out, since its keys cannot be
redacted by name.
@g4bri3lDev
g4bri3lDev merged commit abab92b into rewrite-with-modules Nov 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant