README: add ipv6 note
[chrisu/seepark.git] / web / templates / seepark_web.html
1 <!DOCTYPE html>
2 <html lang="de">
3         <head>
4                 <!-- mobile first, yeah -->
5                 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
7                 <!-- don't cache; refresh -->
8                 <meta http-equiv="Pragma" content="no-cache" />
9                 <meta http-equiv="Cache-Control" content="no-cache" />
10                 <meta http-equiv="Refresh" content="300" />
11
12                 <!-- Load c3.css -->
13                 <link href="{{url_for('static', filename='c3.css')}}" rel="stylesheet">
14
15                 <!-- Load own css -->
16                 <link href="{{url_for('static', filename='seepark_web.css')}}" rel="stylesheet">
17
18                 <!-- Load d3.js and c3.js -->
19                 <script src="{{url_for('static', filename='d3.js')}}" charset="utf-8"></script>
20                 <script src="{{url_for('static', filename='c3.js')}}"></script>
21
22                 <title>Seepark Obsteig</title>
23         </head>
24         <body>
25                 <h1>Daten zum Seepark Obsteig</h1>
26                 <h2>Aktuelle Werte</h2>
27                 <div id="current">
28                 <p id="currentair">
29                         {% if airvalue is none %}
30                         <strong>Luft: N/A</strong>
31                         {% else %}
32                         <strong>Luft: {{ airvalue|round(1) }}°C</strong><br />
33                         <small>({{ airtime.strftime('%Y-%m-%d %H:%M') }})</small>
34                         {% endif %}
35                 </p>
36                 <p id="currentwater">
37                         <strong>Wasser: {{ watervalue|round(1) }}°C</strong><br />
38                         <small>({{ watertime.strftime('%Y-%m-%d %H:%M') }})</small>
39                 </p>
40                 </div>
41
42                 <h2>Der See</h2>
43                 <div id="chart_water_1"></div>
44                 <div id="chart_water_7"></div>
45                 <div id="chart_water_31"></div>
46                 <div id="chart_water_365"></div>
47
48                 <h2>Die Luft</h2>
49                 <div id="chart_air_1"></div>
50                 <div id="chart_air_7"></div>
51                 <div id="chart_air_31"></div>
52                 <div id="chart_air_365"></div>
53
54                 <!-- openweathermap widget -->
55                 <div id="openweathermap-widget-15"></div>
56                 <script>
57                 window.myWidgetParam ? window.myWidgetParam : window.myWidgetParam = [];
58                 window.myWidgetParam.push({
59                         id: 15,
60                         cityid: '3319578',
61                         appid: '{{ apikey }}',
62                         units: 'metric',
63                         containerid: 'openweathermap-widget-15',
64                         lang: 'de',
65                 });
66                 (function() {
67                         var script = document.createElement('script');
68                         script.async = true;
69                         script.charset = "utf-8";
70                         script.src = "//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js";
71                         var s = document.getElementsByTagName('script')[0];
72                         s.parentNode.insertBefore(script, s);
73                 })();
74                 </script>
75
76                 <!-- Load own javascript code -->
77                 <script src="{{url_for('static', filename='seepark_web.js')}}"></script>
78
79         </body>
80 </html>