<% layout("/sk/layout", { title: it.meteostanica.name }) %> <%~ include("/sk/panel/partials/navbar") %> <% const backIcon = ` ` %> <% const tickIcon = ` ` %> <% const xIcon = ` ` %> <% const tempIcon = ` ` %> <% const pressureIcon = ` ` %> <% const humidityIcon = ` ` %> <% const resetIcon = ` ` %> <% const historyIcon = ` ` %> <% const editIcon = ` ` %> <% const deleteIcon = ` ` %>
<%~ backIcon %>

<%= it.meteostanica.name %>

<% if (it.meteostanica.description) { %>

popis: <%= it.meteostanica.description %>

<% } %>

vytvorená: <%= it.meteostanica.timestamp %>

websocket kľúč: <%= it.meteostanica.websocketKey %>

<%~ resetIcon %> reset

<%~ historyIcon %> história <%~ editIcon %> upraviť <%~ deleteIcon %> odstrániť
<% if (it.data?.[0]) { %>
<% /*

High temperature was detcted!

High pressure was detcted!

High humidity was detcted!

*/ %>

naposledy aktualizované: <%= it.data?.[0]?.timestamp %>

vnútorné

<%~ tempIcon %> <%= it.data?.[0]?.indoorTemp / 100 %> °C

<%~ pressureIcon %> <%= it.data?.[0]?.indoorPressure / 100 %> hPa

<%~ humidityIcon %> <%= it.data?.[0]?.indoorHumidity / 100 %> %

vonkajšie

<%~ it.data?.[0]?.outdoorConnected ? tickIcon : xIcon %> <%= it.data?.[0]?.outdoorConnected ? `pripojené` : `odpojené` %>

<%~ tempIcon %> <%= it.data?.[0]?.outdoorTemp / 100 %> °C

<%~ pressureIcon %> <%= it.data?.[0]?.outdoorPressure / 100 %> hPa

<%~ humidityIcon %> <%= it.data?.[0]?.outdoorHumidity / 100 %> %

<% } %>