Merge pull request #102 from accius/Modular-Staging

unify space weather
main
accius 1 day ago committed by GitHub
commit c6bf7e55f5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -460,7 +460,7 @@ const App = () => {
</div> </div>
<div style={{ marginBottom: '6px' }}> <div style={{ marginBottom: '6px' }}>
<div style={{ color: '#888' }}>Kp</div> <div style={{ color: '#888' }}>Kp</div>
<div style={{ color: '#00ff00', fontSize: '16px', fontWeight: '700' }}>{spaceWeather?.data?.kIndex ?? '--'}</div> <div style={{ color: '#00ff00', fontSize: '16px', fontWeight: '700' }}>{solarIndices?.data?.kp?.current ?? spaceWeather?.data?.kIndex ?? '--'}</div>
</div> </div>
<div style={{ marginBottom: '6px' }}> <div style={{ marginBottom: '6px' }}>
<div style={{ color: '#888' }}>Bz</div> <div style={{ color: '#888' }}>Bz</div>
@ -596,6 +596,7 @@ const App = () => {
localDate={localDate} localDate={localDate}
localWeather={localWeather} localWeather={localWeather}
spaceWeather={spaceWeather} spaceWeather={spaceWeather}
solarIndices={solarIndices}
use12Hour={use12Hour} use12Hour={use12Hour}
onTimeFormatToggle={handleTimeFormatToggle} onTimeFormatToggle={handleTimeFormatToggle}
onSettingsClick={() => setShowSettings(true)} onSettingsClick={() => setShowSettings(true)}

@ -12,6 +12,7 @@ export const Header = ({
localDate, localDate,
localWeather, localWeather,
spaceWeather, spaceWeather,
solarIndices,
use12Hour, use12Hour,
onTimeFormatToggle, onTimeFormatToggle,
onSettingsClick, onSettingsClick,
@ -113,17 +114,17 @@ export const Header = ({
})()} })()}
<div> <div>
<span style={{ color: 'var(--text-muted)' }}>SFI </span> <span style={{ color: 'var(--text-muted)' }}>SFI </span>
<span style={{ color: 'var(--accent-amber)', fontWeight: '700' }}>{spaceWeather?.data?.solarFlux || '--'}</span> <span style={{ color: 'var(--accent-amber)', fontWeight: '700' }}>{solarIndices?.data?.sfi?.current || spaceWeather?.data?.solarFlux || '--'}</span>
</div> </div>
<div> <div>
<span style={{ color: 'var(--text-muted)' }}>K </span> <span style={{ color: 'var(--text-muted)' }}>K </span>
<span style={{ color: parseInt(spaceWeather?.data?.kIndex) >= 4 ? 'var(--accent-red)' : 'var(--accent-green)', fontWeight: '700' }}> <span style={{ color: parseInt(solarIndices?.data?.kp?.current ?? spaceWeather?.data?.kIndex) >= 4 ? 'var(--accent-red)' : 'var(--accent-green)', fontWeight: '700' }}>
{spaceWeather?.data?.kIndex ?? '--'} {solarIndices?.data?.kp?.current ?? spaceWeather?.data?.kIndex ?? '--'}
</span> </span>
</div> </div>
<div> <div>
<span style={{ color: 'var(--text-muted)' }}>SSN </span> <span style={{ color: 'var(--text-muted)' }}>SSN </span>
<span style={{ color: 'var(--accent-cyan)', fontWeight: '700' }}>{spaceWeather?.data?.sunspotNumber || '--'}</span> <span style={{ color: 'var(--accent-cyan)', fontWeight: '700' }}>{solarIndices?.data?.ssn?.current || spaceWeather?.data?.sunspotNumber || '--'}</span>
</div> </div>
</div> </div>

Loading…
Cancel
Save

Powered by TurnKey Linux.