Skip to content

Show LAN Monitor offline alerts on the device card - #16

Merged
scott-tp merged 1 commit into
masterfrom
feature/lan-monitor-alerts
Nov 21, 2026
Merged

scott-tp merged 1 commit into
masterfrom
feature/lan-monitor-alerts

Conversation

@scott-tp

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

Copy link
Copy Markdown
Collaborator

Summary

  • A monitored host going offline should show on the TinyPilot card that saw it, without making the dashboard a second place to configure LAN Monitor.
  • The checkbox stays disabled until Show device info reads that LAN Monitor is on. Only those cards poll, every 90 seconds, through the API key the dashboard already stores.
  • Lines sit between the screenshot and the controls. Dismiss or the host coming back clears a line. Refreshing the page does not replay old events.

Test plan

  • pytest -q on the LAN Monitor modules, the lazy-load test, and the remove-device UI test (42 passed)
  • node --test tests/lan-monitor.test.js (7 passed)
  • CircleCI: whitespace, bash, Python, JavaScript, security
  • Card with LAN Monitor off: checkbox and label at 55% opacity, and the off sentence
  • Box on, new DEVICE_OFFLINE for a monitored host: one warning line and Dismiss
  • Several lines: picture shrinks, stays 16:9, scrolls once it would go under 120px
    Review on CodeApprove

A monitored host going offline should show on the TinyPilot that
saw it. The checkbox stays disabled until that device has LAN
Monitor turned on.
@scott-tp
scott-tp merged commit ca67a8a 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