feat: display the current ET

This commit is contained in:
insects 2025-03-11 15:19:32 +01:00
parent 705e7b1dc0
commit 6710137d9b
4 changed files with 23 additions and 9 deletions

View file

@ -33,6 +33,11 @@
<span class="progress-container">
<span class="progress-bar" style="width: <%= (mins.in_minutes / 120) * 100 %>%"></span>
</span>
<% else %>
<% if nm[:weather] && forecast[0][:curr_weather] != nm[:weather] %>
<% next_pattern = forecast.find { |f| f[:curr_weather] == nm[:weather] } %>
<%= Weather.get_weather_name(nm[:weather]) %> in <%= ((next_pattern[:time] - Time.now.utc) / 1.minutes).floor %>m
<% end %>
<% end %>
</div>
<div class="action needs_pwd">