var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,25.80000000],[1787954580000,25.80000000],[1787954880000,25.80000000],[1787955180000,25.76000000],[1787955480000,25.70000000],[1787955780000,25.70000000],[1787956080000,25.60000000],[1787956380000,25.60000000],[1787956680000,25.50000000],[1787956980000,25.50000000],[1787957280000,25.42000000],[1787957580000,25.36000000],[1787957880000,25.30000000],[1787958180000,25.28000000],[1787958480000,25.18000000],[1787958780000,25.10000000],[1787959080000,25.10000000],[1787959380000,25.00000000],[1787959680000,25.00000000],[1787959980000,25.10000000],[1787960280000,25.00000000],[1787960580000,25.00000000],[1787960880000,25.00000000],[1787961180000,25.00000000],[1787961480000,24.94000000],[1787961780000,25.00000000],[1787962080000,24.92000000],[1787962380000,24.84000000],[1787962680000,24.80000000],[1787962980000,24.80000000],[1787963280000,24.72000000],[1787963580000,24.60000000],[1787963880000,24.58000000],[1787964180000,24.50000000],[1787964480000,24.50000000],[1787964780000,24.40000000],[1787965080000,24.30000000],[1787965380000,24.24000000],[1787965680000,24.16000000],[1787965980000,24.10000000],[1787966280000,24.10000000],[1787966580000,23.76000000],[1787966880000,23.44000000],[1787967180000,23.58000000],[1787967480000,23.58000000],[1787967780000,23.36000000],[1787968080000,23.28000000],[1787968380000,23.00000000],[1787968680000,23.02000000],[1787968980000,22.84000000],[1787969280000,22.74000000],[1787969580000,22.68000000],[1787969880000,22.68000000],[1787970180000,22.70000000],[1787970480000,22.62000000],[1787970780000,22.70000000],[1787971080000,22.40000000],[1787971380000,21.90000000],[1787971680000,21.50000000],[1787971980000,21.14000000],[1787972280000,20.96000000],[1787972580000,20.84000000],[1787972880000,20.68000000],[1787973180000,20.60000000],[1787973480000,20.54000000],[1787973780000,20.46000000],[1787974080000,20.38000000],[1787974380000,20.30000000],[1787974680000,20.22000000],[1787974980000,20.10000000],[1787975280000,19.94000000],[1787975580000,19.84000000],[1787975880000,19.80000000],[1787976180000,19.72000000],[1787976480000,19.64000000],[1787976780000,19.60000000],[1787977080000,19.52000000],[1787977380000,19.56000000],[1787977680000,19.60000000],[1787977980000,19.70000000],[1787978280000,19.70000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.1],[1787954580000,6.1],[1787954880000,6.2],[1787955180000,6.2],[1787955480000,6.2],[1787955780000,6.2],[1787956080000,6.1],[1787956380000,6.1],[1787956680000,6],[1787956980000,6.1],[1787957280000,6.1],[1787957580000,6.1],[1787957880000,6.1],[1787958180000,6.1],[1787958480000,6.1],[1787958780000,6.2],[1787959080000,6.2],[1787959380000,6.2],[1787959680000,6.1],[1787959980000,6.1],[1787960280000,6.2],[1787960580000,6.2],[1787960880000,6.3],[1787961180000,6.3],[1787961480000,6.3],[1787961780000,6.2],[1787962080000,6.2],[1787962380000,6.2],[1787962680000,6.1],[1787962980000,6.1],[1787963280000,6.1],[1787963580000,6.1],[1787963880000,6.1],[1787964180000,6.2],[1787964480000,6.2],[1787964780000,6.2],[1787965080000,6.2],[1787965380000,6.2],[1787965680000,6.3],[1787965980000,6.3],[1787966280000,6.4],[1787966580000,6.6],[1787966880000,6.5],[1787967180000,6.4],[1787967480000,6.8],[1787967780000,6.7],[1787968080000,6.8],[1787968380000,7],[1787968680000,7.2],[1787968980000,7.3],[1787969280000,7.4],[1787969580000,7.7],[1787969880000,7.6],[1787970180000,7.8],[1787970480000,9.6],[1787970780000,14.6],[1787971080000,15.7],[1787971380000,15.8],[1787971680000,15.6],[1787971980000,15.5],[1787972280000,15.5],[1787972580000,15.4],[1787972880000,15.2],[1787973180000,14.9],[1787973480000,14.8],[1787973780000,14.8],[1787974080000,14.7],[1787974380000,14.7],[1787974680000,14.7],[1787974980000,14.7],[1787975280000,14.7],[1787975580000,14.7],[1787975880000,14.7],[1787976180000,14.7],[1787976480000,14.8],[1787976780000,14.8],[1787977080000,14.8],[1787977380000,14.9],[1787977680000,14.9],[1787977980000,15],[1787978280000,15],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { var dataset = [{label: "5 cm nad povrchom (\u00b0C)", data: [[1787954400000,25.40000000],[1787954580000,25.42000000],[1787954880000,25.32000000],[1787955180000,25.12000000],[1787955480000,25.04000000],[1787955780000,24.98000000],[1787956080000,24.92000000],[1787956380000,24.76000000],[1787956680000,24.70000000],[1787956980000,24.68000000],[1787957280000,24.52000000],[1787957580000,24.42000000],[1787957880000,24.34000000],[1787958180000,24.20000000],[1787958480000,24.22000000],[1787958780000,24.20000000],[1787959080000,24.06000000],[1787959380000,24.02000000],[1787959680000,24.22000000],[1787959980000,24.42000000],[1787960280000,24.20000000],[1787960580000,24.22000000],[1787960880000,24.16000000],[1787961180000,24.26000000],[1787961480000,24.22000000],[1787961780000,24.40000000],[1787962080000,24.14000000],[1787962380000,24.18000000],[1787962680000,24.24000000],[1787962980000,24.26000000],[1787963280000,24.08000000],[1787963580000,24.00000000],[1787963880000,24.00000000],[1787964180000,23.98000000],[1787964480000,23.94000000],[1787964780000,23.72000000],[1787965080000,23.64000000],[1787965380000,23.48000000],[1787965680000,23.38000000],[1787965980000,23.30000000],[1787966280000,23.30000000],[1787966580000,22.16000000],[1787966880000,22.28000000],[1787967180000,22.88000000],[1787967480000,22.60000000],[1787967780000,22.14000000],[1787968080000,21.78000000],[1787968380000,21.98000000],[1787968680000,22.04000000],[1787968980000,21.72000000],[1787969280000,21.70000000],[1787969580000,21.54000000],[1787969880000,21.72000000],[1787970180000,21.80000000],[1787970480000,21.68000000],[1787970780000,22.16000000],[1787971080000,21.92000000],[1787971380000,21.52000000],[1787971680000,21.18000000],[1787971980000,20.86000000],[1787972280000,20.74000000],[1787972580000,20.54000000],[1787972880000,20.40000000],[1787973180000,20.40000000],[1787973480000,20.22000000],[1787973780000,20.10000000],[1787974080000,20.04000000],[1787974380000,19.88000000],[1787974680000,19.78000000],[1787974980000,19.68000000],[1787975280000,19.46000000],[1787975580000,19.34000000],[1787975880000,19.32000000],[1787976180000,19.26000000],[1787976480000,19.14000000],[1787976780000,19.10000000],[1787977080000,19.10000000],[1787977380000,19.28000000],[1787977680000,19.52000000],[1787977980000,19.62000000],[1787978280000,19.70000000],], color: "#f39c12"}]; var options = { points: { show: false }, lines: { show: true, lineWidth: 2, fill: false }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser' }, grid: { hoverable: true, clickable: true, borderWidth: 0 }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-ground-temperature-legend' } }; graphs['#chart-ground-temperature'] = $.plot('#chart-ground-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1787954400000,28.46666667],[1787954580000,28.44000000],[1787954880000,28.48000000],[1787955180000,28.60000000],[1787955480000,28.70000000],[1787955780000,28.68000000],[1787956080000,28.68000000],[1787956380000,28.76000000],[1787956680000,28.76000000],[1787956980000,28.88000000],[1787957280000,29.04000000],[1787957580000,29.10000000],[1787957880000,29.20000000],[1787958180000,29.34000000],[1787958480000,29.54000000],[1787958780000,29.72000000],[1787959080000,29.74000000],[1787959380000,29.94000000],[1787959680000,29.84000000],[1787959980000,29.68000000],[1787960280000,29.96000000],[1787960580000,30.08000000],[1787960880000,30.18000000],[1787961180000,30.24000000],[1787961480000,30.22000000],[1787961780000,30.02000000],[1787962080000,30.14000000],[1787962380000,30.24000000],[1787962680000,30.14000000],[1787962980000,30.14000000],[1787963280000,30.34000000],[1787963580000,30.60000000],[1787963880000,30.64000000],[1787964180000,30.84000000],[1787964480000,30.90000000],[1787964780000,31.12000000],[1787965080000,31.24000000],[1787965380000,31.48000000],[1787965680000,31.78000000],[1787965980000,31.98000000],[1787966280000,32.04000000],[1787966580000,33.18000000],[1787966880000,33.72000000],[1787967180000,33.24000000],[1787967480000,34.16000000],[1787967780000,34.28000000],[1787968080000,34.76000000],[1787968380000,35.70000000],[1787968680000,36.32000000],[1787968980000,37.00000000],[1787969280000,37.34000000],[1787969580000,38.34000000],[1787969880000,38.08000000],[1787970180000,38.44000000],[1787970480000,43.80000000],[1787970780000,60.38000000],[1787971080000,65.84000000],[1787971380000,68.32000000],[1787971680000,69.24000000],[1787971980000,70.14000000],[1787972280000,70.94000000],[1787972580000,71.16000000],[1787972880000,71.06000000],[1787973180000,70.06000000],[1787973480000,69.80000000],[1787973780000,70.00000000],[1787974080000,70.06000000],[1787974380000,70.24000000],[1787974680000,70.56000000],[1787974980000,71.16000000],[1787975280000,71.88000000],[1787975580000,72.40000000],[1787975880000,72.70000000],[1787976180000,73.12000000],[1787976480000,73.54000000],[1787976780000,73.96000000],[1787977080000,74.36000000],[1787977380000,74.56000000],[1787977680000,74.60000000],[1787977980000,74.42000000],[1787978280000,74.40000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1787954400000,1011.5],[1787954580000,1011.4],[1787954880000,1011.2],[1787955180000,1011],[1787955480000,1010.9],[1787955780000,1010.9],[1787956080000,1010.8],[1787956380000,1010.8],[1787956680000,1010.9],[1787956980000,1010.9],[1787957280000,1011.1],[1787957580000,1011.3],[1787957880000,1011.4],[1787958180000,1011.4],[1787958480000,1011.2],[1787958780000,1011],[1787959080000,1010.9],[1787959380000,1010.8],[1787959680000,1010.8],[1787959980000,1010.8],[1787960280000,1010.8],[1787960580000,1010.9],[1787960880000,1010.8],[1787961180000,1010.7],[1787961480000,1010.6],[1787961780000,1010.6],[1787962080000,1010.6],[1787962380000,1010.5],[1787962680000,1010.5],[1787962980000,1010.4],[1787963280000,1010.2],[1787963580000,1010.3],[1787963880000,1010.3],[1787964180000,1010.2],[1787964480000,1010.2],[1787964780000,1010.1],[1787965080000,1010.3],[1787965380000,1010.3],[1787965680000,1010.3],[1787965980000,1010.5],[1787966280000,1010.7],[1787966580000,1011.1],[1787966880000,1011.5],[1787967180000,1011.7],[1787967480000,1011.9],[1787967780000,1012],[1787968080000,1012.5],[1787968380000,1012.7],[1787968680000,1012.9],[1787968980000,1012.9],[1787969280000,1012.9],[1787969580000,1012.9],[1787969880000,1013],[1787970180000,1013.1],[1787970480000,1013.2],[1787970780000,1013.3],[1787971080000,1013.5],[1787971380000,1013.6],[1787971680000,1013.7],[1787971980000,1013.7],[1787972280000,1013.9],[1787972580000,1013.9],[1787972880000,1013.9],[1787973180000,1013.9],[1787973480000,1013.9],[1787973780000,1013.8],[1787974080000,1013.8],[1787974380000,1013.8],[1787974680000,1013.8],[1787974980000,1013.7],[1787975280000,1013.6],[1787975580000,1013.6],[1787975880000,1013.6],[1787976180000,1013.9],[1787976480000,1014],[1787976780000,1014],[1787977080000,1014.1],[1787977380000,1014.2],[1787977680000,1014.2],[1787977980000,1014.2],[1787978280000,1014.2],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1787954400000,26.520000012],[1787954580000,27.72],[1787954880000,28.296],[1787955180000,27.432],[1787955480000,31.464],[1787955780000,29.232],[1787956080000,30.168],[1787956380000,28.44],[1787956680000,26.208],[1787956980000,28.008],[1787957280000,24.12],[1787957580000,22.176],[1787957880000,20.376],[1787958180000,19.8],[1787958480000,22.032],[1787958780000,22.176],[1787959080000,24.624],[1787959380000,22.464],[1787959680000,26.28],[1787959980000,22.248],[1787960280000,24.048],[1787960580000,23.976],[1787960880000,24.624],[1787961180000,22.68],[1787961480000,20.304],[1787961780000,26.712],[1787962080000,24.696],[1787962380000,28.584],[1787962680000,27.648],[1787962980000,30.168],[1787963280000,30.168],[1787963580000,27.432],[1787963880000,28.296],[1787964180000,27.864],[1787964480000,28.8],[1787964780000,31.536],[1787965080000,27.144],[1787965380000,21.816],[1787965680000,23.4],[1787965980000,21.096],[1787966280000,15.12],[1787966580000,12.024],[1787966880000,12.816],[1787967180000,6.84],[1787967480000,7.056],[1787967780000,7.272],[1787968080000,17.784],[1787968380000,22.896],[1787968680000,18],[1787968980000,11.592],[1787969280000,14.184],[1787969580000,14.76],[1787969880000,14.256],[1787970180000,14.04],[1787970480000,23.112],[1787970780000,36.504],[1787971080000,41.904],[1787971380000,40.968],[1787971680000,44.352],[1787971980000,45.72],[1787972280000,46.08],[1787972580000,40.608],[1787972880000,47.52],[1787973180000,48.168],[1787973480000,47.304],[1787973780000,44.856],[1787974080000,46.08],[1787974380000,42.552],[1787974680000,41.832],[1787974980000,40.752],[1787975280000,33.768],[1787975580000,38.304],[1787975880000,41.832],[1787976180000,36.864],[1787976480000,32.832],[1787976780000,27.432],[1787977080000,26.784],[1787977380000,25.704],[1787977680000,22.68],[1787977980000,24.984],[1787978280000,18.72],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,34.440000012],[1787954580000,34.056],[1787954880000,34.416],[1787955180000,34.776],[1787955480000,38.592],[1787955780000,36.36],[1787956080000,36.072],[1787956380000,34.272],[1787956680000,34.704],[1787956980000,35.352],[1787957280000,30.96],[1787957580000,29.088],[1787957880000,25.56],[1787958180000,24.696],[1787958480000,27.36],[1787958780000,28.368],[1787959080000,31.464],[1787959380000,27.504],[1787959680000,31.392],[1787959980000,27.432],[1787960280000,30.312],[1787960580000,29.376],[1787960880000,31.752],[1787961180000,28.368],[1787961480000,25.272],[1787961780000,33.552],[1787962080000,30.024],[1787962380000,34.632],[1787962680000,35.352],[1787962980000,36.288],[1787963280000,37.584],[1787963580000,33.624],[1787963880000,33.552],[1787964180000,34.92],[1787964480000,35.28],[1787964780000,38.952],[1787965080000,32.4],[1787965380000,26.496],[1787965680000,31.248],[1787965980000,26.712],[1787966280000,20.448],[1787966580000,15.192],[1787966880000,16.488],[1787967180000,10.08],[1787967480000,9.216],[1787967780000,8.856],[1787968080000,20.448],[1787968380000,25.272],[1787968680000,20.088],[1787968980000,12.672],[1787969280000,16.344],[1787969580000,16.56],[1787969880000,16.488],[1787970180000,16.632],[1787970480000,29.304],[1787970780000,42.48],[1787971080000,51.192],[1787971380000,48.816],[1787971680000,56.088],[1787971980000,54.72],[1787972280000,54.72],[1787972580000,48.24],[1787972880000,55.512],[1787973180000,58.608],[1787973480000,55.584],[1787973780000,53.496],[1787974080000,53.568],[1787974380000,49.608],[1787974680000,48.6],[1787974980000,49.032],[1787975280000,41.112],[1787975580000,48.888],[1787975880000,49.68],[1787976180000,45.36],[1787976480000,39.816],[1787976780000,31.824],[1787977080000,31.824],[1787977380000,32.4],[1787977680000,28.008],[1787977980000,29.592],[1787978280000,26.1],], color: '#EF9856', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1km/h' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-legend' } }; graphs['#chart-wind'] = $.plot('#chart-wind', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Smer vetra', data: [[1787954400000,74.10000000],[1787954580000,77.30000000],[1787954880000,76.52000000],[1787955180000,79.64000000],[1787955480000,79.38000000],[1787955780000,81.56000000],[1787956080000,82.88000000],[1787956380000,82.08000000],[1787956680000,84.74000000],[1787956980000,82.24000000],[1787957280000,85.22000000],[1787957580000,79.28000000],[1787957880000,82.80000000],[1787958180000,84.04000000],[1787958480000,82.80000000],[1787958780000,81.66000000],[1787959080000,79.06000000],[1787959380000,77.62000000],[1787959680000,81.22000000],[1787959980000,83.34000000],[1787960280000,81.86000000],[1787960580000,80.84000000],[1787960880000,84.92000000],[1787961180000,86.96000000],[1787961480000,88.14000000],[1787961780000,92.20000000],[1787962080000,86.62000000],[1787962380000,85.18000000],[1787962680000,90.30000000],[1787962980000,95.76000000],[1787963280000,91.76000000],[1787963580000,91.12000000],[1787963880000,98.88000000],[1787964180000,91.52000000],[1787964480000,88.20000000],[1787964780000,80.66000000],[1787965080000,84.62000000],[1787965380000,83.10000000],[1787965680000,78.44000000],[1787965980000,82.14000000],[1787966280000,104.78000000],[1787966580000,158.32000000],[1787966880000,199.88000000],[1787967180000,148.00000000],[1787967480000,204.78000000],[1787967780000,213.28000000],[1787968080000,243.64000000],[1787968380000,251.24000000],[1787968680000,262.88000000],[1787968980000,263.40000000],[1787969280000,292.82000000],[1787969580000,313.40000000],[1787969880000,312.40000000],[1787970180000,309.36000000],[1787970480000,282.88000000],[1787970780000,282.92000000],[1787971080000,305.52000000],[1787971380000,307.08000000],[1787971680000,304.40000000],[1787971980000,300.88000000],[1787972280000,310.98000000],[1787972580000,308.90000000],[1787972880000,307.12000000],[1787973180000,309.28000000],[1787973480000,313.66000000],[1787973780000,314.90000000],[1787974080000,316.14000000],[1787974380000,315.00000000],[1787974680000,315.10000000],[1787974980000,314.68000000],[1787975280000,314.54000000],[1787975580000,320.38000000],[1787975880000,316.96000000],[1787976180000,319.66000000],[1787976480000,316.18000000],[1787976780000,320.70000000],[1787977080000,318.56000000],[1787977380000,329.22000000],[1787977680000,336.86000000],[1787977980000,325.20000000],[1787978280000,338.80000000],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1787954400000,0],[1787954580000,0],[1787954880000,0],[1787955180000,0],[1787955480000,0],[1787955780000,0],[1787956080000,0],[1787956380000,0],[1787956680000,0],[1787956980000,0],[1787957280000,0],[1787957580000,0],[1787957880000,0],[1787958180000,0],[1787958480000,0],[1787958780000,0],[1787959080000,0],[1787959380000,0],[1787959680000,0],[1787959980000,0],[1787960280000,0],[1787960580000,0],[1787960880000,0],[1787961180000,0],[1787961480000,0],[1787961780000,0],[1787962080000,0],[1787962380000,0],[1787962680000,0],[1787962980000,0],[1787963280000,0],[1787963580000,0],[1787963880000,0],[1787964180000,0],[1787964480000,0],[1787964780000,0],[1787965080000,0],[1787965380000,0],[1787965680000,0],[1787965980000,0],[1787966280000,0],[1787966580000,0],[1787966880000,0],[1787967180000,0],[1787967480000,0],[1787967780000,0],[1787968080000,0],[1787968380000,0],[1787968680000,0],[1787968980000,0],[1787969280000,0],[1787969580000,0],[1787969880000,0],[1787970180000,0],[1787970480000,0],[1787970780000,0],[1787971080000,0],[1787971380000,0],[1787971680000,0.008],[1787971980000,0.008],[1787972280000,0.008],[1787972580000,0.008],[1787972880000,0.008],[1787973180000,0.008],[1787973480000,0.008],[1787973780000,0.008],[1787974080000,0.008],[1787974380000,0.008],[1787974680000,0.008],[1787974980000,0.008],[1787975280000,0.012],[1787975580000,0.014],[1787975880000,0.014],[1787976180000,0.014],[1787976480000,0.014],[1787976780000,0.014],[1787977080000,0.014],[1787977380000,0.014],[1787977680000,0.014],[1787977980000,0.014],[1787978280000,0.014],], color: '#008fbf' } ]; var options = { xaxes: [{ axisLabel: 'rain', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.3mm' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-rain-legend' } }; graphs['#chart-rain'] = $.plot('#chart-rain', dataset, options); }); $('.modal').on('hide.bs.modal', function() { var memory = $(this).html(); $(this).html(memory); }); function meteo_wind_direction_name(wind_direction) { if (wind_direction >= 0.00 && wind_direction <= 11.25) { ret = 'S'; } else if (wind_direction > 11.25 && wind_direction <= 33.75) { ret = 'SSV'; } else if (wind_direction > 33.75 && wind_direction <= 56.25) { ret = 'SV'; } else if (wind_direction > 56.25 && wind_direction <= 78.75) { // 67.5 ret = 'VSV'; } else if (wind_direction > 78.75 && wind_direction <= 101.25) { // 90 ret = 'V'; } else if (wind_direction > 101.25 && wind_direction <= 123.75) { //112.5 ret = 'VJV'; } else if (wind_direction > 123.75 && wind_direction <= 146.25) { // 135 ret = 'JV'; } else if (wind_direction > 146.25 && wind_direction <= 168.75) { // 157.5 ret = 'JJV'; } else if (wind_direction > 168.75 && wind_direction <= 191.25) { // 180 ret = 'J'; } else if (wind_direction > 191.25 && wind_direction <= 213.75) { // 202.5 ret = 'JJZ'; } else if (wind_direction > 213.75 && wind_direction <= 236.25) { // 225 ret = 'JZ'; } else if (wind_direction > 236.25 && wind_direction <= 258.75) { // 247.5 ret = 'ZJZ'; } else if (wind_direction > 258.75 && wind_direction <= 281.25) { // 270 ret = 'Z'; } else if (wind_direction > 281.25 && wind_direction <= 303.75) { // 292.5 ret = 'ZSZ'; } else if (wind_direction > 303.75 && wind_direction <= 326.25) { // 315 ret = 'SZ'; } else if (wind_direction > 326.25 && wind_direction <= 348.75) { // 337.5 ret = 'SSZ'; } else if (wind_direction > 348.75 && wind_direction <= 360.0) { // 337.5 ret = 'S'; } else { return ''; } return ret; }