template: add spans with IDs fur current values
authorgregor herrmann <gregor@toastfreeware.priv.at>
Wed, 5 Sep 2018 21:33:09 +0000 (23:33 +0200)
committergregor herrmann <gregor@toastfreeware.priv.at>
Wed, 5 Sep 2018 21:33:09 +0000 (23:33 +0200)
as a preparation for replacing them

web/templates/seepark_web.html

index ecf0444..a424547 100644 (file)
                        {% if airvalue is none %}
                        <strong>Luft: N/A</strong>
                        {% else %}
-                       <strong>Luft: {{ airvalue|round(1) }}°C</strong><br />
-                       <small>({{ airtime.strftime('%Y-%m-%d %H:%M') }})</small>
+                       <strong>Luft: <span id="currentairvalue">{{ airvalue|round(1) }}</span>°C</strong><br />
+                       <small>(<span id="currentairtime">{{ airtime.strftime('%Y-%m-%d %H:%M') }}</span>)</small>
                        {% endif %}
                </p>
                <p id="currentwater">
-                       <strong>Wasser: {{ watervalue|round(1) }}°C</strong><br />
-                       <small>({{ watertime.strftime('%Y-%m-%d %H:%M') }})</small>
+                       <strong>Wasser: <span id="currentwatervalue">{{ watervalue|round(1) }}</span>°C</strong><br />
+                       <small>(<span id="currentwatertime">{{ watertime.strftime('%Y-%m-%d %H:%M') }}</span>)</small>
                </p>
                </div>