diff --git a/html/weather.ejs b/html/weather.ejs new file mode 100644 index 00000000..a9adde4f --- /dev/null +++ b/html/weather.ejs @@ -0,0 +1,421 @@ + + + + + +PokeWeather + + + +<% /* Add a no-JS class if you detect on server (e.g., via UA or query). Default leaves it blank. */ %> + + + + +
+ +
+ + +
+
+
+

Now — <%= (ssr && ssr.name) || 'Unknown' %>

+ <% if (ssr && ssr.current) { %> +
+
+
<%= ssr.icon %>
+
+
<%= Math.round(ssr.current.temperature_2m) %>°
+
<%= ssr.desc %>
+
+
+
+

Feels like

<%= Math.round(ssr.current.apparent_temperature) %>°
+

Wind

<%= Math.round(ssr.current.wind_speed_10m) %> <%= ssr.windUnit %>
+

Humidity

<%= Math.round(ssr.current.relative_humidity_2m) %>%
+

Pressure

<%= Math.round(ssr.current.pressure_msl) %> hPa
+
+
+
+

Sunrise

<%= ssr.sunriseLocal %>
+

Sunset

<%= ssr.sunsetLocal %>
+

UV max

<%= ssr.daily.uv_index_max?.[0] ?? '—' %>
+

Precip prob (next hr)

<%= ssr.popNext ?? '—' %>%
+
+ <% } else { %> +

No data to show.

+ <% } %> +
+ +
+

7-day forecast

+ <% if (ssr && ssr.daily) { %> +
+ <% for (let i=0;i +
+
+
<%= ssr.dailyIcons[i] %>
+
<%= ssr.dailyLabels[i] %>
+
+
+
<%= Math.round(ssr.daily.temperature_2m_max[i]) %>°
+
<%= Math.round(ssr.daily.temperature_2m_min[i]) %>°
+
+
<%= ssr.dailyTexts[i] %>
+
+ <% } %> +
+ <% } %> +
+
+
+ + +
+
+
+
+
+
+
+
+
+
+
+
+

Feels like

+

Wind

+

Humidity

+

Pressure

+
+
+
+

Sunrise

+

Sunset

+

UV max

+

Precip prob (next hr)

+
+
+ + +
+ +
+

7-day forecast

+
+
+ + +
+ + + +