<body>
<h1>Daten zum Seepark Obsteig</h1>
<div id="chart"></div>
+ <div id="buttonbar">
+ <button onclick="loaddays(1)">Tag</button>
+ <button onclick="loaddays(7)">Woche</button>
+ <button onclick="loaddays(30)">Monat</button>
+ <button onclick="loaddays(365)">Jahr</button>
+ </div>
+
+ <!-- openweathermap widget -->
+ <div id="openweathermap-widget-15"></div>
+ <script>
+ window.myWidgetParam ? window.myWidgetParam : window.myWidgetParam = [];
+ window.myWidgetParam.push({
+ id: 15,
+ cityid: '3319578',
+ appid: '{{ apikey }}',
+ units: 'metric',
+ containerid: 'openweathermap-widget-15',
+ lang: 'de',
+ });
+ (function() {
+ var script = document.createElement('script');
+ script.async = true;
+ script.charset = "utf-8";
+ script.src = "//openweathermap.org/themes/openweathermap/assets/vendor/owm/js/weather-widget-generator.js";
+ var s = document.getElementsByTagName('script')[0];
+ s.parentNode.insertBefore(script, s);
+ })();
+ </script>
<!-- Load own javascript code -->
<script src="{{url_for('static', filename='seepark_web.js')}}"></script>