{#if clockStyle === 'analog'} {#each {length: 12} as _, i (i)} {@const angle = (i * 30 * Math.PI) / 180} {@const x1 = 50 + 42 * Math.sin(angle)} {@const y1 = 50 - 42 * Math.cos(angle)} {@const x2 = 50 + 46 * Math.sin(angle)} {@const y2 = 50 - 46 * Math.cos(angle)} {/each}

{dateStr}

{:else}

{timeStr}

{dateStr}

{#if config.timezone}

{config.timezone.replace(/_/g, ' ')}

{/if} {/if} {#if showWeather}
{#if weatherLoading}
{:else if weatherError} Weather unavailable {:else if weatherData} {@const WeatherIcon = getWeatherIcon(weatherData.condition)} {Math.round(weatherData.temp)}° {weatherData.condition} {:else} No weather data {/if}
{/if}