From 3466921a669662ad2476fbad715893aefd626eb2 Mon Sep 17 00:00:00 2001 From: ana Date: Sun, 8 Aug 2021 18:44:58 +0200 Subject: feat: show next weather change in header --- src/App.svelte | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/App.svelte b/src/App.svelte index b24bc30..ec260ff 100644 --- a/src/App.svelte +++ b/src/App.svelte @@ -76,6 +76,11 @@ otherMatches = matches.filter((m) => m.special && !m.uptime.isUp); } + function getWeatherChangeTime() { + // Doesn't matter which forecast + return day(anemosForecast[1].date).fromNow(); + } + function formatLevel(m) { if (m.level) { return m.level; @@ -108,6 +113,7 @@
-- cgit 1.4.1-2-gfad0