aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorana <ana@ana.st>2021-08-08 18:44:58 +0200
committerana <ana@ana.st>2021-08-08 18:44:58 +0200
commit3466921a669662ad2476fbad715893aefd626eb2 (patch)
tree6e425708c48aa7e8eea515e5b2966e8348b5c1ee /src
parent4c8be07bea13c2c8935c1c7869270e96d9221501 (diff)
downloadeureka-marks-3466921a669662ad2476fbad715893aefd626eb2.tar.gz
feat: show next weather change in header
Diffstat (limited to 'src')
-rw-r--r--src/App.svelte6
1 files changed, 6 insertions, 0 deletions
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 @@
<ul>
<li><strong>Eureka Mark Tracker</strong></li>
<li>ET: {currentEzTime}</li>
+ <li>Next weather change {getWeatherChangeTime()}</li>
</ul>
</header>
<main class="container">