mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 14:50:00 -07:00
Add weather satellite auto-scheduler, polar plot, ground track map, and rtlamr Docker support
- Fix SDR device stuck claimed on capture failure via on_complete callback - Improve SatDump output parsing to emit all lines (throttled 2s) for real-time feedback - Extract shared pass prediction into utils/weather_sat_predict.py with trajectory/ground track support - Add auto-scheduler (utils/weather_sat_scheduler.py) using threading.Timer for unattended captures - Add scheduler API endpoints (enable/disable/status/passes/skip) with SSE event notifications - Add countdown timer (D/H/M/S) with imminent/active glow states - Add 24h timeline bar with colored pass markers and current-time cursor - Add canvas polar plot showing az/el trajectory arc with cardinal directions - Add Leaflet ground track map with satellite path and observer marker - Restructure to 3-column layout (passes | polar+map | gallery) with responsive stacking - Add auto-schedule toggle in strip bar and sidebar - Add rtlamr (Go utility meter decoder) to Dockerfile Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,6 +107,30 @@
|
||||
color: var(--accent-cyan, #00d4ff);
|
||||
}
|
||||
|
||||
/* ===== Auto-Schedule Toggle ===== */
|
||||
.wxsat-schedule-toggle {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
font-size: 10px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
color: var(--text-dim, #666);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.wxsat-schedule-toggle input[type="checkbox"] {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
cursor: pointer;
|
||||
accent-color: #00ff88;
|
||||
}
|
||||
|
||||
.wxsat-schedule-toggle input:checked + .wxsat-toggle-label {
|
||||
color: #00ff88;
|
||||
}
|
||||
|
||||
/* ===== Location inputs in strip ===== */
|
||||
.wxsat-strip-location {
|
||||
display: flex;
|
||||
@@ -142,16 +166,160 @@
|
||||
|
||||
.wxsat-content {
|
||||
display: flex;
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
/* ===== Countdown Bar ===== */
|
||||
.wxsat-countdown-bar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 10px 16px;
|
||||
background: var(--bg-secondary, #141820);
|
||||
border-bottom: 1px solid var(--border-color, #2a3040);
|
||||
}
|
||||
|
||||
.wxsat-countdown-next {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.wxsat-countdown-boxes {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.wxsat-countdown-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding: 4px 8px;
|
||||
background: var(--bg-primary, #0d1117);
|
||||
border: 1px solid var(--border-color, #2a3040);
|
||||
border-radius: 4px;
|
||||
min-width: 40px;
|
||||
}
|
||||
|
||||
.wxsat-countdown-box.imminent {
|
||||
border-color: #ffbb00;
|
||||
box-shadow: 0 0 8px rgba(255, 187, 0, 0.2);
|
||||
}
|
||||
|
||||
.wxsat-countdown-box.active {
|
||||
border-color: #00ff88;
|
||||
box-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
|
||||
animation: wxsat-glow 1.5s ease-in-out infinite;
|
||||
}
|
||||
|
||||
@keyframes wxsat-glow {
|
||||
0%, 100% { box-shadow: 0 0 8px rgba(0, 255, 136, 0.3); }
|
||||
50% { box-shadow: 0 0 16px rgba(0, 255, 136, 0.5); }
|
||||
}
|
||||
|
||||
.wxsat-cd-value {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
color: var(--text-primary, #e0e0e0);
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.wxsat-cd-unit {
|
||||
font-size: 8px;
|
||||
color: var(--text-dim, #666);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.wxsat-countdown-info {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.wxsat-countdown-sat {
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: var(--accent-cyan, #00d4ff);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
.wxsat-countdown-detail {
|
||||
font-size: 10px;
|
||||
color: var(--text-dim, #666);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* ===== Timeline ===== */
|
||||
.wxsat-timeline {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
height: 36px;
|
||||
min-width: 200px;
|
||||
}
|
||||
|
||||
.wxsat-timeline-track {
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 16px;
|
||||
background: var(--bg-primary, #0d1117);
|
||||
border: 1px solid var(--border-color, #2a3040);
|
||||
border-radius: 3px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wxsat-timeline-pass {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
height: 100%;
|
||||
border-radius: 2px;
|
||||
cursor: pointer;
|
||||
opacity: 0.8;
|
||||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
.wxsat-timeline-pass:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.wxsat-timeline-pass.apt { background: rgba(0, 212, 255, 0.6); }
|
||||
.wxsat-timeline-pass.lrpt { background: rgba(0, 255, 136, 0.6); }
|
||||
.wxsat-timeline-pass.scheduled { border: 1px solid #ffbb00; }
|
||||
|
||||
.wxsat-timeline-cursor {
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
background: #ff4444;
|
||||
border-radius: 1px;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.wxsat-timeline-labels {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 8px;
|
||||
color: var(--text-dim, #666);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
/* ===== Pass Predictions Panel ===== */
|
||||
.wxsat-passes-panel {
|
||||
flex: 0 0 320px;
|
||||
flex: 0 0 280px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0;
|
||||
@@ -205,11 +373,25 @@
|
||||
background: var(--bg-hover, #252a3a);
|
||||
}
|
||||
|
||||
.wxsat-pass-card.active {
|
||||
.wxsat-pass-card.active,
|
||||
.wxsat-pass-card.selected {
|
||||
border-color: #00ff88;
|
||||
background: rgba(0, 255, 136, 0.05);
|
||||
}
|
||||
|
||||
.wxsat-pass-card .wxsat-scheduled-badge {
|
||||
display: inline-block;
|
||||
font-size: 8px;
|
||||
padding: 1px 4px;
|
||||
border-radius: 2px;
|
||||
background: rgba(255, 187, 0, 0.15);
|
||||
color: #ffbb00;
|
||||
margin-left: 6px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.wxsat-pass-sat {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -281,6 +463,57 @@
|
||||
color: #ffbb00;
|
||||
}
|
||||
|
||||
/* ===== Center Panel (Polar + Map) ===== */
|
||||
.wxsat-center-panel {
|
||||
flex: 0 0 320px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.wxsat-polar-container,
|
||||
.wxsat-map-container {
|
||||
background: var(--bg-secondary, #141820);
|
||||
border: 1px solid var(--border-color, #2a3040);
|
||||
border-radius: 6px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.wxsat-panel-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 8px 14px;
|
||||
background: var(--bg-tertiary, #1a1f2e);
|
||||
border-bottom: 1px solid var(--border-color, #2a3040);
|
||||
}
|
||||
|
||||
.wxsat-panel-title {
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary, #e0e0e0);
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
.wxsat-panel-subtitle {
|
||||
font-size: 10px;
|
||||
color: var(--accent-cyan, #00d4ff);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
}
|
||||
|
||||
#wxsatPolarCanvas {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
max-height: 300px;
|
||||
}
|
||||
|
||||
.wxsat-ground-map {
|
||||
height: 200px;
|
||||
background: var(--bg-primary, #0d1117);
|
||||
}
|
||||
|
||||
/* ===== Image Gallery Panel ===== */
|
||||
.wxsat-gallery-panel {
|
||||
flex: 1;
|
||||
@@ -322,7 +555,7 @@
|
||||
overflow-y: auto;
|
||||
padding: 12px;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
|
||||
gap: 12px;
|
||||
align-content: start;
|
||||
}
|
||||
@@ -421,12 +654,18 @@
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary, #999);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
flex: 1;
|
||||
margin-right: 12px;
|
||||
}
|
||||
|
||||
.wxsat-capture-elapsed {
|
||||
font-size: 11px;
|
||||
color: var(--text-dim, #666);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.wxsat-progress-bar {
|
||||
@@ -496,14 +735,53 @@
|
||||
}
|
||||
|
||||
/* ===== Responsive ===== */
|
||||
@media (max-width: 900px) {
|
||||
@media (max-width: 1100px) {
|
||||
.wxsat-content {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.wxsat-passes-panel {
|
||||
flex: none;
|
||||
max-height: 300px;
|
||||
max-height: 250px;
|
||||
}
|
||||
|
||||
.wxsat-center-panel {
|
||||
flex: none;
|
||||
flex-direction: row;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.wxsat-polar-container,
|
||||
.wxsat-map-container {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.wxsat-countdown-bar {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.wxsat-timeline {
|
||||
min-width: 0;
|
||||
flex: 1 1 200px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.wxsat-center-panel {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.wxsat-countdown-boxes {
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.wxsat-countdown-box {
|
||||
min-width: 32px;
|
||||
padding: 3px 5px;
|
||||
}
|
||||
|
||||
.wxsat-cd-value {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.wxsat-gallery-grid {
|
||||
|
||||
Reference in New Issue
Block a user