fd75b467b877d5f5904620bf62cda83024a6b21c
[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                         <strong>Luft: {{ airvalue }}°C</strong><br />
30                         <small>({{ airtime }})</small>
31                 </p>
32                 <p id="currentwater">
33                         <strong>Wasser: {{ watervalue }}°C</strong><br />
34                         <small>({{ watertime }})</small>
35                 </p>
36                 </div>
37
38                 <h2>Der See</h2>
39                 <div id="chart1"></div>
40                 <div id="chart7"></div>
41                 <div id="chart31"></div>
42                 <div id="chart365"></div>
43
44                 <!-- openweathermap widget -->
45                 <div id="openweathermap-widget-15"></div>
46                 <script>
47                 window.myWidgetParam ? window.myWidgetParam : window.myWidgetParam = [];
48                 window.myWidgetParam.push({
49                         id: 15,
50                         cityid: '3319578',
51                         appid: '{{ apikey }}',
52                         units: 'metric',
53                         containerid: 'openweathermap-widget-15',
54                         lang: 'de',
55                 });
56                 (function() {
57                         var script = document.createElement('script');
58                         script.async = true;
59                         script.charset = "utf-8";
60                         script.src = "//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js";
61                         var s = document.getElementsByTagName('script')[0];
62                         s.parentNode.insertBefore(script, s);
63                 })();
64                 </script>
65
66                 <!-- Load own javascript code -->
67                 <script src="{{url_for('static', filename='seepark_web.js')}}"></script>
68
69         </body>
70 </html>