{#if !$navigator_location.updating && $navigator_location.available && !$earth_weather.updating && !$space_weather.updating} {#if $navigator_location.city !== undefined}

{$navigator_location.city}

{:else}

long: {$navigator_location.longitude}
lat: {$navigator_location.latitude}

{/if} {/if}
{#if !$earth_weather.updating && !$space_weather.updating} {#if Math.abs($earth_weather.updated - $space_weather.updated) > 60*10*1000}

There is more than 10 minutes difference between data updates

{:else}

{oldestUpdateTime.toLocaleString("no-NO", {dateStyle: "medium", timeStyle: "short"})}

{/if} {#if timeagoLastUpdate >= data_max_age} Data is {Math.round(timeagoLastUpdate / 60 / 1000)} minutes old! {/if} {/if}
{#if $space_weather.updating || $earth_weather.updating} {:else}

KP {$space_weather.now.kp}

↑ KP {$space_weather.now.kp_max} ↓ KP {$space_weather.now.kp_min}

{/if}
{#if !$space_weather.updating && !$earth_weather.updating}

BZ

{$space_weather.now.bz}

BT

{$space_weather.now.bt}

{#if $earth_weather.available}

Temp

{$earth_weather.now.temp}°C

Clouds

{$earth_weather.now.clouds}%

{/if} {/if}