diff --git a/templates/static/node.html.j2 b/templates/static/node.html.j2 index 0343f10..38e426b 100644 --- a/templates/static/node.html.j2 +++ b/templates/static/node.html.j2 @@ -40,7 +40,11 @@ {% if node.telemetry.temperature %} Temperature - {{ node.telemetry.temperature | round(1) }}°C + {% if node.telemetry.temperature is number %} + {{ node.telemetry.temperature | round(1) }}°C + {% else %} + {{ node.telemetry.temperature }} + {% endif %} {% endif %} {% if node.telemetry.humidity %} diff --git a/templates/static/telemetry.html.j2 b/templates/static/telemetry.html.j2 index 81f5b40..8eeb303 100644 --- a/templates/static/telemetry.html.j2 +++ b/templates/static/telemetry.html.j2 @@ -170,7 +170,11 @@ {% if item.payload.temperature is defined %} - {{ item.payload.temperature | round(2) }} °C + {% if item.payload.temperature is number %} + {{ item.payload.temperature | round(2) }}°C + {% else %} + {{ item.payload.temperature }} + {% endif %} {% endif %}