X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/6af726be0c250408a62696db0dec7c08abe9769d..866247a8ef351c97bf845799ef78f7eea25f9793:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 9a7501b..583a14a 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -156,16 +156,14 @@ function dayschart(element, title, days, xtickformat) { ] }); - // woraround for unrendered dots - setTimeout(function () { chart.flush(); }, 5000); - // reload data setInterval( function() { chart.load({ url: api_base_url_sensors + beginend(days), mimeType: 'json' - }) + }); + chart.flush(); }, 5 * 60 * 1000 );