Radio blackout (R) scale

This commit is contained in:
Ian Renton
2026-04-04 10:45:42 +01:00
parent 429b278bca
commit d51e5184a1
13 changed files with 70 additions and 38 deletions

View File

@@ -53,8 +53,9 @@ function loadSolarConditions() {
'geomag_storm_scale': 'sw-geomag-storm-scale',
'geomag_storm_desc': 'sw-geomag-storm-desc',
'geomag_noise': 'sw-geomag-noise',
'x_ray': 'sw-x-ray',
'blackout_desc': 'sw-xray-desc',
'xray': 'sw-xray',
'radio_blackout_scale': 'sw-radio-blackout-scale',
'xray_desc': 'sw-xray-desc',
'proton_flux': 'sw-proton-flux',
'solar_storm_scale': 'sw-solar-storm-scale',
'proton_flux_desc': 'sw-proton-desc',
@@ -87,7 +88,7 @@ function loadSolarConditions() {
kIndex < 5 ? 'bg-success-subtle' : kIndex < 6 ? 'bg-warning-subtle' : 'bg-danger-subtle');
}
const xRay = jsonData.x_ray;
const xRay = jsonData.xray;
if (xRay) {
const letter = xRay[0].toUpperCase();
const xRayClass = (letter === 'X') ? 'bg-danger-subtle'
@@ -190,7 +191,7 @@ function renderKIndexForecast(data) {
return timeStr;
},
},
grid: {color: gridColor},
grid: {color: gridColor, offset: false},
};
// Draw a "now" line at the current time position