X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/c6847c11c752e5e06f1738e397dd8f069d3573a1..26256314244db4e501c6514d46ee65b88d65675c:/web/static/seepark_web.js?ds=sidebyside diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 5aaf55a..bc0f8c3 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -2,7 +2,7 @@ var api_base_url_sensors = '/api/1/sensor/type/Wassertemperatur?mode=consolidate var api_base_url_weather = '/api/1/openweathermap/city/3319578?mode=consolidated&format=c3'; var api_url_currentair = '/api/1/currentairtemperature'; var api_url_currentwater = '/api/1/currentwatertemperature'; -var refresh_interval = 5 * 60 * 1000; +var refresh_interval = 10 * 60 * 1000; function dayschart(element, title, days, xtickformat) { var chartdata; @@ -30,6 +30,7 @@ function dayschart(element, title, days, xtickformat) { '0416a1bab9ff': 'mediumblue', '0316a2193bff': 'midnightblue' }, + type: 'line', // default /* xSort: false, order: function (a, b) { @@ -55,7 +56,8 @@ function dayschart(element, title, days, xtickformat) { xFormat: '%Y-%m-%d %H:%M:%S', colors: { '3319578': 'red' - } + }, + type: 'spline', }; }; var chart = c3.generate({