Use openweathermap module in web app.
[chrisu/seepark.git] / web / templates / seepark_web.html
index fd75b467b877d5f5904620bf62cda83024a6b21c..7715013e18ab98dba9fd3617eb75dddccf162a9c 100644 (file)
                <h2>Aktuelle Werte</h2>
                <div id="current">
                <p id="currentair">
                <h2>Aktuelle Werte</h2>
                <div id="current">
                <p id="currentair">
+                       {% if airvalue is none %}
+                       <strong>Luft: N/A</strong>
+                       {% else %}
                        <strong>Luft: {{ airvalue }}°C</strong><br />
                        <small>({{ airtime }})</small>
                        <strong>Luft: {{ airvalue }}°C</strong><br />
                        <small>({{ airtime }})</small>
+                       {% endif %}
                </p>
                <p id="currentwater">
                        <strong>Wasser: {{ watervalue }}°C</strong><br />
                </p>
                <p id="currentwater">
                        <strong>Wasser: {{ watervalue }}°C</strong><br />