feat(nodes): signal health sparklines and RSSI health badge#70
Open
iceice400 wants to merge 1 commit into
Open
feat(nodes): signal health sparklines and RSSI health badge#70iceice400 wants to merge 1 commit into
iceice400 wants to merge 1 commit into
Conversation
Add 15-minute RSSI/SNR buckets via metrics_history, optional signal_health config, canvas sparklines on node cards with lazy IntersectionObserver loading, and green/yellow/red health badges from 1-hour rolling averages.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /api/nodes/{id}/metrics_historywith optionalbucket_minutes→signal_buckets(15-min RSSI/SNR aggregates)signal_healthconfig (green_rssi_floor,yellow_rssi_floor,min_packets_per_hour) exposed viaGET /api/configIntersectionObserver) + green/yellow/red health badge from 1-hour rolling RSSI averageWhy
Node cards only showed last-heard RSSI. Operators need trend-at-a-glance without opening the drawer. Reuses existing metrics API and SQLite packet history — no schema migration.
Type
Testing
Manual checklist (on gateway):
signal_healththresholds inlocal.yaml→ badge colour updates after refreshsignalarray unchanged)Hardware: RAK7248 or Pi + HAT · US915
Impact
Risks: Low — read-only SQL; lazy fetch per visible card limits load. Drawer backward compatible.
AI-assisted?