X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/b34bde11dcf0b2f922010a5cc01756c4a7805443..031007b29dd155ff0ff46d2f0d277d442e78b9fa:/web/static/seepark_web.js diff --git a/web/static/seepark_web.js b/web/static/seepark_web.js index 9b24b60..85b62db 100644 --- a/web/static/seepark_web.js +++ b/web/static/seepark_web.js @@ -8,17 +8,20 @@ function dayschart(element, title, days, xtickformat) { url: api_base_url_sensors + beginend(days), mimeType: 'json', xs: { - '0316a2193bff': '0316a2193bff_x', - '0316a21383ff': '0316a21383ff_x' + '0416a1ac66ff': '0416a1ac66ff_x', + '0516a207a4ff': '0516a207a4ff_x', + '0416a1bab9ff': '0416a1bab9ff_x' }, names: { - '0316a2193bff': 'Wassertemperatur in 4 m Tiefe', - '0316a21383ff': 'Wassertemperatur in 5 m Tiefe' + '0416a1ac66ff': 'Wassertemperatur in 50 cm Tiefe', + '0516a207a4ff': 'Wassertemperatur in 1 m Tiefe', + '0416a1bab9ff': 'Wassertemperatur in 2 m Tiefe' }, xFormat: '%Y-%m-%d %H:%M:%S', colors: { - '0316a2193bff': 'lightblue', - '0316a21383ff': 'darkblue' + '0416a1ac66ff': 'lightblue', + '0516a207a4ff': 'middleblue', + '0416a1bab9ff': 'darkblue' } }; } else { @@ -95,7 +98,7 @@ function dayschart(element, title, days, xtickformat) { name: function (name, ratio, id, index) { var prefix = ''; if (element.substr(0, 7) == 'chart_w') { - var re = /\d m/; + var re = /\d+ c?m/; prefix = 'Wasser '; } else { var re = /Luft/;