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

@@ -1415,7 +1415,7 @@ components:
type: integer
description: 3-hour geomagnetic activity index, 09
example: 2
x_ray:
xray:
type: string
description: Current X-ray flux class
example: "B2.3"
@@ -1564,10 +1564,16 @@ components:
"1743638400.0": 25
"1743724800.0": 25
"1743811200.0": 25
blackout_desc:
xray_desc:
type: string
description: HF radio blackout risk description, derived from the X-ray flux class.
example: "No significant radio blackout"
radio_blackout_scale:
type: integer
description: HF radio blackout scale number (R0-R5), derived from the X-ray flux class.
minimum: 0
maximum: 5
example: 0
proton_flux_desc:
type: string
description: Solar radiation storm level description, derived from proton flux.

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