var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,12.63333333],[1787954580000,12.70000000],[1787954880000,13.36000000],[1787955180000,13.80000000],[1787955480000,14.20000000],[1787955780000,14.30000000],[1787956080000,14.18000000],[1787956380000,13.98000000],[1787956680000,13.68000000],[1787956980000,13.66000000],[1787957280000,13.72000000],[1787957580000,13.28000000],[1787957880000,13.36000000],[1787958180000,12.92000000],[1787958480000,12.62000000],[1787958780000,12.38000000],[1787959080000,11.98000000],[1787959380000,11.66000000],[1787959680000,11.78000000],[1787959980000,11.98000000],[1787960280000,12.50000000],[1787960580000,12.82000000],[1787960880000,12.98000000],[1787961180000,13.42000000],[1787961480000,13.58000000],[1787961780000,13.66000000],[1787962080000,13.46000000],[1787962380000,13.18000000],[1787962680000,12.84000000],[1787962980000,12.76000000],[1787963280000,12.80000000],[1787963580000,13.36000000],[1787963880000,13.50000000],[1787964180000,13.60000000],[1787964480000,13.54000000],[1787964780000,13.34000000],[1787965080000,13.62000000],[1787965380000,13.88000000],[1787965680000,14.16000000],[1787965980000,14.38000000],[1787966280000,14.30000000],[1787966580000,14.30000000],[1787966880000,14.40000000],[1787967180000,14.40000000],[1787967480000,14.50000000],[1787967780000,14.44000000],[1787968080000,14.40000000],[1787968380000,14.38000000],[1787968680000,14.40000000],[1787968980000,14.30000000],[1787969280000,14.20000000],[1787969580000,14.10000000],[1787969880000,14.08000000],[1787970180000,14.10000000],[1787970480000,14.12000000],[1787970780000,13.96000000],[1787971080000,13.90000000],[1787971380000,14.10000000],[1787971680000,14.84000000],[1787971980000,15.00000000],[1787972280000,15.06000000],[1787972580000,14.96000000],[1787972880000,14.80000000],[1787973180000,14.42000000],[1787973480000,14.32000000],[1787973780000,14.32000000],[1787974080000,14.58000000],[1787974380000,14.52000000],[1787974680000,14.62000000],[1787974980000,14.86000000],[1787975280000,14.90000000],[1787975580000,14.86000000],[1787975880000,14.92000000],[1787976180000,15.12000000],[1787976480000,15.32000000],[1787976780000,15.34000000],[1787977080000,15.20000000],[1787977380000,15.28000000],[1787977680000,15.32000000],[1787977980000,15.13333333],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,9.2],[1787954580000,9.3],[1787954880000,9.2],[1787955180000,8.9],[1787955480000,8.7],[1787955780000,8.5],[1787956080000,8.4],[1787956380000,8.5],[1787956680000,8.5],[1787956980000,8.7],[1787957280000,8.8],[1787957580000,8.8],[1787957880000,8.8],[1787958180000,8.9],[1787958480000,9.2],[1787958780000,9.2],[1787959080000,9.7],[1787959380000,9.8],[1787959680000,9.6],[1787959980000,9.6],[1787960280000,9.6],[1787960580000,9.5],[1787960880000,9.4],[1787961180000,9.5],[1787961480000,9.5],[1787961780000,9.3],[1787962080000,9.4],[1787962380000,10.1],[1787962680000,10.2],[1787962980000,10.4],[1787963280000,10],[1787963580000,9.3],[1787963880000,9.2],[1787964180000,9.3],[1787964480000,9.5],[1787964780000,9.5],[1787965080000,9.4],[1787965380000,9.4],[1787965680000,9.1],[1787965980000,9.2],[1787966280000,9.2],[1787966580000,9.9],[1787966880000,10.1],[1787967180000,10.1],[1787967480000,10],[1787967780000,10.2],[1787968080000,10.2],[1787968380000,10.1],[1787968680000,10.7],[1787968980000,10.8],[1787969280000,10.5],[1787969580000,10.5],[1787969880000,10.8],[1787970180000,10.2],[1787970480000,10.3],[1787970780000,10.6],[1787971080000,10.7],[1787971380000,10.1],[1787971680000,8.5],[1787971980000,9.1],[1787972280000,8.7],[1787972580000,9.1],[1787972880000,9.4],[1787973180000,9.4],[1787973480000,9.9],[1787973780000,10],[1787974080000,10],[1787974380000,10],[1787974680000,9.9],[1787974980000,9.8],[1787975280000,9.3],[1787975580000,9.4],[1787975880000,9.3],[1787976180000,8.6],[1787976480000,8.2],[1787976780000,8.9],[1787977080000,9.1],[1787977380000,9],[1787977680000,9.3],[1787977980000,9.5],], 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,9.30000000],[1787954580000,9.60000000],[1787954880000,10.30000000],[1787955180000,10.78000000],[1787955480000,11.22000000],[1787955780000,11.40000000],[1787956080000,11.54000000],[1787956380000,11.44000000],[1787956680000,10.78000000],[1787956980000,10.36000000],[1787957280000,10.18000000],[1787957580000,9.98000000],[1787957880000,10.38000000],[1787958180000,10.22000000],[1787958480000,9.94000000],[1787958780000,9.76000000],[1787959080000,9.96000000],[1787959380000,10.32000000],[1787959680000,10.84000000],[1787959980000,11.24000000],[1787960280000,11.62000000],[1787960580000,11.88000000],[1787960880000,12.12000000],[1787961180000,12.36000000],[1787961480000,12.46000000],[1787961780000,12.38000000],[1787962080000,12.20000000],[1787962380000,12.02000000],[1787962680000,11.94000000],[1787962980000,11.88000000],[1787963280000,11.84000000],[1787963580000,12.14000000],[1787963880000,12.16000000],[1787964180000,12.00000000],[1787964480000,11.62000000],[1787964780000,11.76000000],[1787965080000,12.18000000],[1787965380000,12.80000000],[1787965680000,13.14000000],[1787965980000,13.38000000],[1787966280000,13.50000000],[1787966580000,13.58000000],[1787966880000,13.70000000],[1787967180000,13.80000000],[1787967480000,13.88000000],[1787967780000,13.90000000],[1787968080000,13.90000000],[1787968380000,13.90000000],[1787968680000,13.92000000],[1787968980000,13.90000000],[1787969280000,13.78000000],[1787969580000,13.54000000],[1787969880000,13.46000000],[1787970180000,13.22000000],[1787970480000,12.94000000],[1787970780000,12.90000000],[1787971080000,13.00000000],[1787971380000,13.32000000],[1787971680000,13.84000000],[1787971980000,14.06000000],[1787972280000,14.04000000],[1787972580000,13.62000000],[1787972880000,13.10000000],[1787973180000,12.68000000],[1787973480000,12.68000000],[1787973780000,12.98000000],[1787974080000,13.30000000],[1787974380000,13.52000000],[1787974680000,13.74000000],[1787974980000,13.92000000],[1787975280000,14.08000000],[1787975580000,14.10000000],[1787975880000,14.12000000],[1787976180000,14.20000000],[1787976480000,14.20000000],[1787976780000,14.26000000],[1787977080000,14.38000000],[1787977380000,14.48000000],[1787977680000,14.50000000],[1787977980000,14.56666667],], 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,80.00000000],[1787954580000,80.00000000],[1787954880000,76.00000000],[1787955180000,72.40000000],[1787955480000,69.60000000],[1787955780000,68.20000000],[1787956080000,68.60000000],[1787956380000,70.00000000],[1787956680000,71.20000000],[1787956980000,72.00000000],[1787957280000,72.20000000],[1787957580000,74.60000000],[1787957880000,74.00000000],[1787958180000,77.00000000],[1787958480000,79.80000000],[1787958780000,81.20000000],[1787959080000,86.20000000],[1787959380000,88.60000000],[1787959680000,86.40000000],[1787959980000,85.60000000],[1787960280000,82.40000000],[1787960580000,80.40000000],[1787960880000,79.00000000],[1787961180000,77.20000000],[1787961480000,76.40000000],[1787961780000,75.20000000],[1787962080000,76.40000000],[1787962380000,81.60000000],[1787962680000,84.20000000],[1787962980000,85.60000000],[1787963280000,83.00000000],[1787963580000,76.80000000],[1787963880000,75.60000000],[1787964180000,75.40000000],[1787964480000,76.60000000],[1787964780000,78.00000000],[1787965080000,76.00000000],[1787965380000,74.40000000],[1787965680000,72.00000000],[1787965980000,71.20000000],[1787966280000,71.80000000],[1787966580000,75.00000000],[1787966880000,75.40000000],[1787967180000,75.80000000],[1787967480000,74.80000000],[1787967780000,76.00000000],[1787968080000,76.20000000],[1787968380000,75.60000000],[1787968680000,78.40000000],[1787968980000,79.40000000],[1787969280000,78.80000000],[1787969580000,79.20000000],[1787969880000,80.60000000],[1787970180000,77.60000000],[1787970480000,78.20000000],[1787970780000,80.40000000],[1787971080000,81.00000000],[1787971380000,76.80000000],[1787971680000,66.20000000],[1787971980000,68.00000000],[1787972280000,65.80000000],[1787972580000,68.20000000],[1787972880000,70.40000000],[1787973180000,71.80000000],[1787973480000,75.20000000],[1787973780000,75.60000000],[1787974080000,74.40000000],[1787974380000,74.60000000],[1787974680000,73.60000000],[1787974980000,72.00000000],[1787975280000,69.60000000],[1787975580000,70.20000000],[1787975880000,69.20000000],[1787976180000,65.40000000],[1787976480000,62.60000000],[1787976780000,65.80000000],[1787977080000,67.20000000],[1787977380000,66.20000000],[1787977680000,67.40000000],[1787977980000,69.33333333],], 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,1017.5],[1787954580000,1017.5],[1787954880000,1017.2],[1787955180000,1017.1],[1787955480000,1017.1],[1787955780000,1016.9],[1787956080000,1016.9],[1787956380000,1016.9],[1787956680000,1017],[1787956980000,1016.9],[1787957280000,1016.9],[1787957580000,1017],[1787957880000,1016.9],[1787958180000,1017],[1787958480000,1017],[1787958780000,1016.9],[1787959080000,1017.1],[1787959380000,1017.2],[1787959680000,1017.1],[1787959980000,1017.1],[1787960280000,1016.9],[1787960580000,1016.8],[1787960880000,1016.7],[1787961180000,1016.5],[1787961480000,1016.4],[1787961780000,1016.2],[1787962080000,1016.3],[1787962380000,1016.2],[1787962680000,1016.2],[1787962980000,1016.1],[1787963280000,1016],[1787963580000,1015.8],[1787963880000,1015.6],[1787964180000,1015.6],[1787964480000,1015.6],[1787964780000,1015.5],[1787965080000,1015.5],[1787965380000,1015.4],[1787965680000,1015.4],[1787965980000,1015.3],[1787966280000,1015.3],[1787966580000,1015.2],[1787966880000,1015],[1787967180000,1014.8],[1787967480000,1014.9],[1787967780000,1014.8],[1787968080000,1014.6],[1787968380000,1014.6],[1787968680000,1014.5],[1787968980000,1014.6],[1787969280000,1014.5],[1787969580000,1014.5],[1787969880000,1014.4],[1787970180000,1014.3],[1787970480000,1014.3],[1787970780000,1014.4],[1787971080000,1014.3],[1787971380000,1014.3],[1787971680000,1014.1],[1787971980000,1014],[1787972280000,1013.9],[1787972580000,1014],[1787972880000,1014.1],[1787973180000,1014.3],[1787973480000,1014.3],[1787973780000,1014.3],[1787974080000,1014.3],[1787974380000,1014.4],[1787974680000,1014.5],[1787974980000,1014.7],[1787975280000,1014.6],[1787975580000,1014.7],[1787975880000,1015],[1787976180000,1014.9],[1787976480000,1014.7],[1787976780000,1014.5],[1787977080000,1014.5],[1787977380000,1014.5],[1787977680000,1014.6],[1787977980000,1014.6],], 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,10.199999988],[1787954580000,10.944],[1787954880000,11.736],[1787955180000,10.656],[1787955480000,10.152],[1787955780000,9.792],[1787956080000,9.36],[1787956380000,10.296],[1787956680000,10.512],[1787956980000,9.792],[1787957280000,7.992],[1787957580000,8.928],[1787957880000,7.848],[1787958180000,5.904],[1787958480000,5.04],[1787958780000,3.744],[1787959080000,3.816],[1787959380000,4.68],[1787959680000,5.184],[1787959980000,5.832],[1787960280000,7.632],[1787960580000,7.128],[1787960880000,6.768],[1787961180000,8.928],[1787961480000,10.008],[1787961780000,7.2],[1787962080000,5.112],[1787962380000,4.248],[1787962680000,2.736],[1787962980000,1.872],[1787963280000,5.76],[1787963580000,6.48],[1787963880000,4.824],[1787964180000,4.104],[1787964480000,4.608],[1787964780000,6.768],[1787965080000,9.36],[1787965380000,8.136],[1787965680000,4.536],[1787965980000,3.6],[1787966280000,3.024],[1787966580000,2.736],[1787966880000,4.104],[1787967180000,1.512],[1787967480000,2.376],[1787967780000,4.464],[1787968080000,2.088],[1787968380000,1.512],[1787968680000,2.664],[1787968980000,4.68],[1787969280000,6.696],[1787969580000,8.064],[1787969880000,5.904],[1787970180000,5.616],[1787970480000,7.416],[1787970780000,6.624],[1787971080000,3.672],[1787971380000,5.688],[1787971680000,8.28],[1787971980000,8.064],[1787972280000,5.688],[1787972580000,3.096],[1787972880000,1.656],[1787973180000,1.512],[1787973480000,0.864],[1787973780000,3.96],[1787974080000,5.112],[1787974380000,1.44],[1787974680000,3.744],[1787974980000,5.04],[1787975280000,6.048],[1787975580000,5.76],[1787975880000,7.776],[1787976180000,7.92],[1787976480000,4.464],[1787976780000,8.64],[1787977080000,8.424],[1787977380000,3.744],[1787977680000,4.032],[1787977980000,3.840000012],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,10.680000012],[1787954580000,11.448],[1787954880000,12.528],[1787955180000,11.736],[1787955480000,10.728],[1787955780000,10.224],[1787956080000,10.224],[1787956380000,10.944],[1787956680000,11.16],[1787956980000,10.44],[1787957280000,8.496],[1787957580000,9.648],[1787957880000,8.784],[1787958180000,7.2],[1787958480000,5.976],[1787958780000,4.536],[1787959080000,4.608],[1787959380000,5.472],[1787959680000,5.904],[1787959980000,6.696],[1787960280000,7.992],[1787960580000,7.56],[1787960880000,7.128],[1787961180000,9.864],[1787961480000,11.16],[1787961780000,7.848],[1787962080000,6.192],[1787962380000,5.544],[1787962680000,3.384],[1787962980000,2.52],[1787963280000,6.552],[1787963580000,7.416],[1787963880000,5.328],[1787964180000,4.464],[1787964480000,4.968],[1787964780000,7.488],[1787965080000,10.008],[1787965380000,10.08],[1787965680000,5.976],[1787965980000,4.248],[1787966280000,3.384],[1787966580000,3.168],[1787966880000,4.68],[1787967180000,2.088],[1787967480000,2.88],[1787967780000,4.824],[1787968080000,2.736],[1787968380000,1.728],[1787968680000,3.024],[1787968980000,5.472],[1787969280000,7.632],[1787969580000,9.144],[1787969880000,6.984],[1787970180000,6.264],[1787970480000,8.064],[1787970780000,7.704],[1787971080000,4.608],[1787971380000,7.056],[1787971680000,10.152],[1787971980000,10.296],[1787972280000,6.912],[1787972580000,4.536],[1787972880000,2.304],[1787973180000,1.944],[1787973480000,1.512],[1787973780000,4.536],[1787974080000,5.688],[1787974380000,2.448],[1787974680000,4.392],[1787974980000,6.192],[1787975280000,7.272],[1787975580000,6.552],[1787975880000,8.712],[1787976180000,9.36],[1787976480000,5.832],[1787976780000,9.72],[1787977080000,9.576],[1787977380000,5.328],[1787977680000,5.256],[1787977980000,4.560000012],], 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,286.00000000],[1787954580000,283.00000000],[1787954880000,276.20000000],[1787955180000,273.00000000],[1787955480000,262.20000000],[1787955780000,269.00000000],[1787956080000,272.60000000],[1787956380000,266.20000000],[1787956680000,263.40000000],[1787956980000,250.60000000],[1787957280000,258.00000000],[1787957580000,271.00000000],[1787957880000,284.60000000],[1787958180000,286.20000000],[1787958480000,296.80000000],[1787958780000,291.80000000],[1787959080000,284.40000000],[1787959380000,307.80000000],[1787959680000,296.60000000],[1787959980000,270.40000000],[1787960280000,275.40000000],[1787960580000,272.00000000],[1787960880000,273.80000000],[1787961180000,276.80000000],[1787961480000,275.00000000],[1787961780000,270.60000000],[1787962080000,272.80000000],[1787962380000,269.80000000],[1787962680000,272.40000000],[1787962980000,264.80000000],[1787963280000,291.60000000],[1787963580000,298.40000000],[1787963880000,311.00000000],[1787964180000,306.20000000],[1787964480000,263.20000000],[1787964780000,265.80000000],[1787965080000,316.20000000],[1787965380000,278.40000000],[1787965680000,262.60000000],[1787965980000,263.20000000],[1787966280000,262.40000000],[1787966580000,208.00000000],[1787966880000,171.60000000],[1787967180000,229.20000000],[1787967480000,223.20000000],[1787967780000,168.60000000],[1787968080000,160.40000000],[1787968380000,211.60000000],[1787968680000,159.40000000],[1787968980000,162.40000000],[1787969280000,128.20000000],[1787969580000,127.40000000],[1787969880000,113.00000000],[1787970180000,33.60000000],[1787970480000,27.80000000],[1787970780000,40.00000000],[1787971080000,31.40000000],[1787971380000,60.60000000],[1787971680000,113.20000000],[1787971980000,128.40000000],[1787972280000,230.40000000],[1787972580000,305.40000000],[1787972880000,200.00000000],[1787973180000,271.40000000],[1787973480000,214.60000000],[1787973780000,203.80000000],[1787974080000,229.00000000],[1787974380000,273.00000000],[1787974680000,230.80000000],[1787974980000,256.00000000],[1787975280000,259.00000000],[1787975580000,294.60000000],[1787975880000,296.80000000],[1787976180000,298.20000000],[1787976480000,217.60000000],[1787976780000,145.00000000],[1787977080000,146.40000000],[1787977380000,194.60000000],[1787977680000,143.00000000],[1787977980000,138.33333333],], 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],[1787971980000,0],[1787972280000,0],[1787972580000,0],[1787972880000,0],[1787973180000,0],[1787973480000,0],[1787973780000,0],[1787974080000,0],[1787974380000,0],[1787974680000,0],[1787974980000,0],[1787975280000,0],[1787975580000,0],[1787975880000,0],[1787976180000,0],[1787976480000,0],[1787976780000,0],[1787977080000,0],[1787977380000,0],[1787977680000,0],[1787977980000,0],], 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; }