Web dashboard: live map + message stream + per-mode counters (--http)#103
Conversation
Built-in HTTP dashboard (the tar1090 / AIS-catcher-viewer experience, for every mode at once): a dark Leaflet map of decoded aircraft (Mode S positions, callsign, altitude/speed/squawk, heading-rotated markers) and vessels (AIS, COG-rotated), a streaming message panel, and per-mode totals. Available as --http on every command and http= in the station config. - Page embedded in the binary; one hand-rolled HTTP endpoint (the Prometheus-exporter pattern): GET / and GET /api/state - CDN assets SRI-pinned (hashes verified against unpkg); RF-sourced strings (callsigns, vessel names) HTML-escaped - Entities expire after 5 minutes silent; 200-message ring Integration-tested via station mode: ADS-B + AIS file replay -> /api/state serves the real aircraft (AMC421 with full kinematics) and AIS base stations with positions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 46 minutes and 30 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more credits in the billing tab to continue. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (10)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dddd0d0fae
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| /// Serve the live web dashboard (map of decoded aircraft/vessels | ||
| /// + message stream) on this address (e.g. 0.0.0.0:8080) | ||
| #[arg(long)] | ||
| http: Option<String>, |
There was a problem hiding this comment.
Because OutputOpts is flattened into Command::Extern, this new flag is now accepted for xng extern --http ..., but src/commands/extern_cmd.rs::run still only starts console/jsonl/UDP/asf2 tasks and never consumes outputs.http. In that command the dashboard is silently ignored even though the CLI and README advertise --http as an output option, so users wrapping external decoders get no listener or error.
Useful? React with 👍 / 👎.
What
Task #40 — the second half of the platform pair:
--http 0.0.0.0:8080(any command, orhttp =in the station config) serves a built-in live dashboard:/,/api/state) following the Prometheus-exporter pattern — no web framework dependencySecurity: CDN assets are SRI-pinned (hashes verified against unpkg at build time of this PR); RF-sourced strings (callsigns, vessel names — attacker-controllable over the air) are HTML-escaped before any DOM context.
Tested
Station-mode integration: ADS-B + AIS file replay →
/api/stateserves the real aircraft (AMC421, full kinematics) and Sacramento AIS base stations with positions; HTML page serves. Full workspace + bench gates green.Pairs with #102 for the v0.15.0 platform release.
🤖 Generated with Claude Code