@mytec: iter10.1 ready for testing

This commit is contained in:
2026-01-30 16:34:46 +02:00
parent 55fd42b696
commit d0e827e350
5 changed files with 96 additions and 60 deletions

View File

@@ -18,14 +18,14 @@ export function getSignalQuality(rsrp: number): SignalQuality {
return 'no-service';
}
// New color scheme: cold = weak, warm = strong
// Warm color scheme: dark = weak, bright = strong
export const SIGNAL_COLORS: Record<string, string> = {
excellent: '#f44336', // Red (very strong)
excellent: '#ffeb3b', // Yellow (excellent)
good: '#ff9800', // Orange (strong)
fair: '#ffeb3b', // Yellow (acceptable)
poor: '#4caf50', // Green (weak)
weak: '#00bcd4', // Cyan (very weak)
'no-service': '#0d47a1', // Dark Blue (no coverage)
fair: '#ff4444', // Bright red (fair)
poor: '#cc0000', // Red (weak)
weak: '#8b0000', // Dark red (very weak)
'no-service': '#3c1428', // Deep maroon (no coverage)
} as const;
export function getRSRPColor(rsrp: number): string {
@@ -33,10 +33,10 @@ export function getRSRPColor(rsrp: number): string {
}
export const RSRP_LEGEND = [
{ label: 'Excellent', range: '> -70 dBm', color: '#f44336', description: 'Very strong signal', min: -70 },
{ label: 'Excellent', range: '> -70 dBm', color: '#ffeb3b', description: 'Very strong signal', min: -70 },
{ label: 'Good', range: '-70 to -85 dBm', color: '#ff9800', description: 'Strong signal', min: -85 },
{ label: 'Fair', range: '-85 to -100 dBm', color: '#ffeb3b', description: 'Acceptable signal', min: -100 },
{ label: 'Poor', range: '-100 to -110 dBm', color: '#4caf50', description: 'Weak signal', min: -110 },
{ label: 'Weak', range: '-110 to -120 dBm', color: '#00bcd4', description: 'Very weak signal', min: -120 },
{ label: 'No Service', range: '< -120 dBm', color: '#0d47a1', description: 'No coverage', min: -140 },
{ label: 'Fair', range: '-85 to -100 dBm', color: '#ff4444', description: 'Acceptable signal', min: -100 },
{ label: 'Poor', range: '-100 to -110 dBm', color: '#cc0000', description: 'Weak signal', min: -110 },
{ label: 'Weak', range: '-110 to -120 dBm', color: '#8b0000', description: 'Very weak signal', min: -120 },
{ label: 'No Service', range: '< -120 dBm', color: '#3c1428', description: 'No coverage', min: -140 },
] as const;