Skip to content

Label a down TinyPilot Offline on the device card - #17

Merged
scott-tp merged 1 commit into
masterfrom
feature/card-reachability
Nov 21, 2026
Merged

scott-tp merged 1 commit into
masterfrom
feature/card-reachability

Conversation

@scott-tp

@scott-tp scott-tp commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • A closed card treated a failed screenshot as Cached, even when the TinyPilot itself never answered.
  • Each visible card now calls GET /api/status directly, with no homepage warmup, before the screenshot.
  • If that call cannot connect, the card says Offline and skips the screenshot. A saved picture stays up under that label.
  • A status 200 still follows the screenshot: Live, No signal, or Cached.

Test plan

  • Open the dashboard with a TinyPilot that cannot be reached and a saved picture. The card says Offline and the picture stays.
  • Open it with a TinyPilot that answers and has no video. The card says No signal.
  • Open it with a TinyPilot that answers and has video. The card says Live.
  • pytest on the connection, client, preview, and remove-device tests: 53 passed.
    Review on CodeApprove

A closed card was calling a failed capture Cached. One status
request tells us the device itself did not answer.
@scott-tp
scott-tp merged commit 7b526d3 into master Nov 21, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant