X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/5e537928c545acf84bedf2fda50609584caecb41..282065a04f0b9762a1019376712fdfc4a7bc4acf:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 6d8e1f1..583a14a 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -156,16 +156,14 @@ function dayschart(element, title, days, xtickformat) { ] }); - // workaround 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 );