feat: Add VHF DSC Channel 70 monitoring and decoding

- Implement DSC message decoding (Distress, Urgency, Safety, Routine)

- Add MMSI country identification via MID lookup

- Integrate position extraction and map markers for distress alerts

- Implement device conflict detection to prevent SDR collisions with AIS

- Add permanent storage for critical alerts and visual UI overlays
This commit is contained in:
Marc
2026-01-25 04:07:14 -06:00
committed by Smittix
parent 3b238c3c8f
commit b4d3e65a3d
12 changed files with 2781 additions and 5 deletions

View File

@@ -899,3 +899,308 @@ body {
line-height: 44px !important;
font-size: 18px !important;
}
/* ============================================
DSC (Digital Selective Calling) Styles
============================================ */
/* DSC Control Group - Orange accent (warning/distress theme) */
.control-group.dsc-group {
background: rgba(245, 158, 11, 0.05);
border-color: rgba(245, 158, 11, 0.2);
}
.control-group.dsc-group .control-group-label {
color: var(--accent-orange);
}
.control-group.dsc-group select,
.control-group.dsc-group input[type="number"] {
border-color: rgba(245, 158, 11, 0.3);
color: var(--accent-orange);
}
.dsc-btn {
background: var(--accent-orange) !important;
font-size: 9px !important;
padding: 6px 12px !important;
}
.dsc-btn:hover {
background: #d97706 !important;
box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
}
.dsc-btn.active {
background: var(--accent-red) !important;
}
/* DSC Panel */
.panel.dsc-messages {
flex: 0 0 auto;
max-height: 250px;
display: flex;
flex-direction: column;
border-top: 1px solid rgba(245, 158, 11, 0.2);
}
.panel.dsc-messages::before {
background: linear-gradient(90deg, transparent, var(--accent-orange), transparent);
}
.panel.dsc-messages .panel-header {
background: rgba(245, 158, 11, 0.05);
border-bottom-color: rgba(245, 158, 11, 0.1);
color: var(--accent-orange);
}
/* DSC Alert Summary */
.dsc-alert-summary {
display: flex;
gap: 8px;
padding: 6px 12px;
background: rgba(0, 0, 0, 0.2);
border-bottom: 1px solid rgba(245, 158, 11, 0.1);
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
}
.dsc-alert-count {
padding: 2px 6px;
border-radius: 3px;
font-weight: 600;
}
.dsc-alert-count.distress {
background: rgba(239, 68, 68, 0.2);
color: var(--accent-red);
}
.dsc-alert-count.urgency {
background: rgba(245, 158, 11, 0.2);
color: var(--accent-orange);
}
/* DSC List Content */
.dsc-list-content {
flex: 1;
overflow-y: auto;
padding: 8px;
}
.no-messages {
text-align: center;
padding: 20px 15px;
color: var(--text-secondary);
font-size: 11px;
}
/* DSC Message Items */
.dsc-message-item {
position: relative;
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(245, 158, 11, 0.15);
border-radius: 4px;
padding: 8px 10px;
margin-bottom: 6px;
cursor: pointer;
transition: all 0.2s ease;
}
.dsc-message-item:hover {
border-color: var(--accent-orange);
background: rgba(245, 158, 11, 0.05);
}
.dsc-message-item.distress {
border-color: var(--accent-red);
background: rgba(239, 68, 68, 0.1);
animation: distress-pulse 1.5s ease-in-out infinite;
}
.dsc-message-item.urgency {
border-color: var(--accent-orange);
background: rgba(245, 158, 11, 0.1);
}
@keyframes distress-pulse {
0%, 100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.3); }
50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.6); }
}
.dsc-message-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 4px;
}
.dsc-message-category {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.5px;
padding: 2px 6px;
border-radius: 3px;
background: rgba(245, 158, 11, 0.2);
color: var(--accent-orange);
}
.dsc-message-item.distress .dsc-message-category {
background: rgba(239, 68, 68, 0.2);
color: var(--accent-red);
}
.dsc-message-time {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
color: var(--text-dim);
}
.dsc-message-mmsi {
font-family: 'JetBrains Mono', monospace;
font-size: 11px;
color: var(--accent-orange);
}
.dsc-message-country {
font-size: 9px;
color: var(--text-secondary);
}
.dsc-message-nature {
font-size: 10px;
color: var(--accent-red);
font-weight: 500;
margin-top: 2px;
}
.dsc-message-pos {
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
color: var(--text-secondary);
}
/* DSC Distress Alert Overlay */
.dsc-distress-alert {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 10000;
background: rgba(15, 18, 24, 0.98);
border: 2px solid var(--accent-red);
border-radius: 8px;
padding: 24px 32px;
min-width: 300px;
text-align: center;
box-shadow: 0 0 40px rgba(239, 68, 68, 0.5);
animation: alert-flash 0.5s ease-in-out 3;
}
@keyframes alert-flash {
0%, 100% { border-color: var(--accent-red); box-shadow: 0 0 40px rgba(239, 68, 68, 0.5); }
50% { border-color: #ff6b6b; box-shadow: 0 0 60px rgba(239, 68, 68, 0.8); }
}
.dsc-distress-alert .dsc-alert-header {
font-family: 'Orbitron', 'JetBrains Mono', monospace;
font-size: 24px;
font-weight: 700;
color: var(--accent-red);
margin-bottom: 16px;
letter-spacing: 3px;
}
.dsc-distress-alert .dsc-alert-mmsi {
font-family: 'JetBrains Mono', monospace;
font-size: 16px;
color: var(--accent-cyan);
margin-bottom: 8px;
}
.dsc-distress-alert .dsc-alert-country {
font-size: 14px;
color: var(--text-secondary);
margin-bottom: 8px;
}
.dsc-distress-alert .dsc-alert-nature {
font-size: 18px;
font-weight: 600;
color: var(--accent-orange);
margin-bottom: 12px;
}
.dsc-distress-alert .dsc-alert-position {
font-family: 'JetBrains Mono', monospace;
font-size: 14px;
color: var(--accent-cyan);
margin-bottom: 16px;
}
.dsc-distress-alert button {
background: var(--accent-red);
border: none;
color: white;
padding: 10px 24px;
font-family: 'JetBrains Mono', monospace;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
}
.dsc-distress-alert button:hover {
background: #dc2626;
box-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}
/* DSC Map Markers */
.dsc-marker {
background: transparent;
border: none;
}
.dsc-marker-inner {
width: 28px;
height: 28px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 14px;
color: white;
border: 2px solid white;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.dsc-marker-inner.distress {
animation: distress-marker-pulse 1s ease-in-out infinite;
}
@keyframes distress-marker-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.2); }
}
/* Mobile adjustments for DSC */
@media (max-width: 767px) {
.panel.dsc-messages {
max-height: 200px;
}
.dsc-distress-alert {
width: 90%;
min-width: auto;
padding: 16px 20px;
}
.dsc-distress-alert .dsc-alert-header {
font-size: 18px;
}
}