+ var chartdata;
+ if (element.substr(0, 7) == 'chart_w') {
+ chartdata = {
+ url: api_base_url_sensors + beginend(days),
+ mimeType: 'json',
+ xs: {
+ '0316a2193bff': '0316a2193bff_x',
+ '0316a21383ff': '0316a21383ff_x'
+ },
+ names: {
+ '0316a2193bff': 'Wassertemperatur in 4 m Tiefe',
+ '0316a21383ff': 'Wassertemperatur in 5 m Tiefe'
+ },
+ xFormat: '%Y-%m-%d %H:%M:%S',
+ colors: {
+ '0316a2193bff': 'lightblue',
+ '0316a21383ff': 'darkblue'
+ }
+ };
+ } else {
+ chartdata = {
+ url: api_base_url_weather + beginend(days),
+ mimeType: 'json',
+ xs: {
+ '3319578': '3319578_x'
+ },
+ names: {
+ '3319578': 'Lufttemperatur in Obsteig'
+ },
+ xFormat: '%Y-%m-%d %H:%M:%S',
+ colors: {
+ '3319578': 'red'
+ }
+ };
+ };