var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,17.40000000],[1787954580000,17.30000000],[1787954880000,17.20000000],[1787955180000,17.10000000],[1787955480000,17.16000000],[1787955780000,17.10000000],[1787956080000,17.00000000],[1787956380000,16.86000000],[1787956680000,16.80000000],[1787956980000,16.82000000],[1787957280000,16.84000000],[1787957580000,16.90000000],[1787957880000,16.90000000],[1787958180000,16.90000000],[1787958480000,16.90000000],[1787958780000,16.90000000],[1787959080000,16.90000000],[1787959380000,16.90000000],[1787959680000,16.78000000],[1787959980000,16.70000000],[1787960280000,16.72000000],[1787960580000,16.82000000],[1787960880000,16.90000000],[1787961180000,16.90000000],[1787961480000,16.90000000],[1787961780000,16.98000000],[1787962080000,17.32000000],[1787962380000,18.64000000],[1787962680000,19.38000000],[1787962980000,19.50000000],[1787963280000,19.30000000],[1787963580000,18.92000000],[1787963880000,18.56000000],[1787964180000,18.32000000],[1787964480000,18.28000000],[1787964780000,18.20000000],[1787965080000,18.26000000],[1787965380000,18.06000000],[1787965680000,18.00000000],[1787965980000,18.00000000],[1787966280000,17.98000000],[1787966580000,18.00000000],[1787966880000,18.10000000],[1787967180000,18.18000000],[1787967480000,18.38000000],[1787967780000,18.74000000],[1787968080000,18.78000000],[1787968380000,18.90000000],[1787968680000,18.78000000],[1787968980000,18.44000000],[1787969280000,18.18000000],[1787969580000,18.00000000],[1787969880000,17.86000000],[1787970180000,17.80000000],[1787970480000,17.82000000],[1787970780000,17.98000000],[1787971080000,18.00000000],[1787971380000,18.06000000],[1787971680000,18.24000000],[1787971980000,18.20000000],[1787972280000,18.20000000],[1787972580000,18.26000000],[1787972880000,18.36000000],[1787973180000,18.44000000],[1787973480000,18.74000000],[1787973780000,19.12000000],[1787974080000,19.10000000],[1787974380000,19.00000000],[1787974680000,19.02000000],[1787974980000,18.86000000],[1787975280000,18.72000000],[1787975580000,18.68000000],[1787975880000,18.56000000],[1787976180000,18.48000000],[1787976480000,18.32000000],[1787976780000,18.22000000],[1787977080000,18.08000000],[1787977380000,18.00000000],[1787977680000,17.92000000],[1787977980000,17.80000000],[1787978280000,17.80000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,9],[1787954580000,8.9],[1787954880000,9.1],[1787955180000,9],[1787955480000,8.9],[1787955780000,9],[1787956080000,9],[1787956380000,8.9],[1787956680000,8.9],[1787956980000,8.8],[1787957280000,8.7],[1787957580000,8.7],[1787957880000,8.7],[1787958180000,8.7],[1787958480000,8.7],[1787958780000,8.6],[1787959080000,8.5],[1787959380000,8.5],[1787959680000,8.6],[1787959980000,8.5],[1787960280000,8.5],[1787960580000,8.4],[1787960880000,8.5],[1787961180000,8.7],[1787961480000,8.7],[1787961780000,8.7],[1787962080000,7.7],[1787962380000,6.8],[1787962680000,7],[1787962980000,7.2],[1787963280000,7.5],[1787963580000,7.7],[1787963880000,7.8],[1787964180000,8],[1787964480000,7.8],[1787964780000,7.7],[1787965080000,7.7],[1787965380000,7.8],[1787965680000,7.7],[1787965980000,7.8],[1787966280000,7.8],[1787966580000,7.9],[1787966880000,8],[1787967180000,8.1],[1787967480000,7.9],[1787967780000,8],[1787968080000,7.8],[1787968380000,7.9],[1787968680000,8],[1787968980000,8.1],[1787969280000,8.2],[1787969580000,8],[1787969880000,8.2],[1787970180000,8.3],[1787970480000,8.3],[1787970780000,8.3],[1787971080000,8.5],[1787971380000,8.5],[1787971680000,8.5],[1787971980000,8.3],[1787972280000,8.5],[1787972580000,8.4],[1787972880000,8.3],[1787973180000,9],[1787973480000,9.1],[1787973780000,9.2],[1787974080000,9.6],[1787974380000,9.6],[1787974680000,9.6],[1787974980000,9.8],[1787975280000,9.9],[1787975580000,9.9],[1787975880000,9.9],[1787976180000,10],[1787976480000,10],[1787976780000,10.2],[1787977080000,10.2],[1787977380000,10.3],[1787977680000,10.5],[1787977980000,10.6],[1787978280000,10.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,15.16666667],[1787954580000,14.88000000],[1787954880000,14.66000000],[1787955180000,14.70000000],[1787955480000,15.20000000],[1787955780000,15.18000000],[1787956080000,14.76000000],[1787956380000,14.38000000],[1787956680000,14.64000000],[1787956980000,14.90000000],[1787957280000,15.28000000],[1787957580000,15.64000000],[1787957880000,15.38000000],[1787958180000,15.28000000],[1787958480000,15.54000000],[1787958780000,15.64000000],[1787959080000,15.62000000],[1787959380000,15.38000000],[1787959680000,15.14000000],[1787959980000,14.90000000],[1787960280000,15.00000000],[1787960580000,15.24000000],[1787960880000,15.42000000],[1787961180000,15.68000000],[1787961480000,15.80000000],[1787961780000,15.78000000],[1787962080000,15.86000000],[1787962380000,17.38000000],[1787962680000,17.50000000],[1787962980000,16.98000000],[1787963280000,16.90000000],[1787963580000,16.54000000],[1787963880000,16.58000000],[1787964180000,16.50000000],[1787964480000,16.82000000],[1787964780000,16.80000000],[1787965080000,16.88000000],[1787965380000,16.42000000],[1787965680000,16.32000000],[1787965980000,15.98000000],[1787966280000,16.30000000],[1787966580000,16.42000000],[1787966880000,16.76000000],[1787967180000,16.90000000],[1787967480000,17.10000000],[1787967780000,17.02000000],[1787968080000,16.94000000],[1787968380000,17.16000000],[1787968680000,16.64000000],[1787968980000,16.08000000],[1787969280000,15.56000000],[1787969580000,15.16000000],[1787969880000,15.10000000],[1787970180000,15.34000000],[1787970480000,16.00000000],[1787970780000,16.60000000],[1787971080000,16.18000000],[1787971380000,16.34000000],[1787971680000,16.92000000],[1787971980000,17.02000000],[1787972280000,17.10000000],[1787972580000,17.20000000],[1787972880000,17.26000000],[1787973180000,17.58000000],[1787973480000,17.96000000],[1787973780000,18.12000000],[1787974080000,18.12000000],[1787974380000,17.78000000],[1787974680000,17.78000000],[1787974980000,17.66000000],[1787975280000,17.44000000],[1787975580000,17.28000000],[1787975880000,17.20000000],[1787976180000,17.18000000],[1787976480000,17.10000000],[1787976780000,16.94000000],[1787977080000,16.88000000],[1787977380000,16.90000000],[1787977680000,16.90000000],[1787977980000,16.94000000],[1787978280000,17.00000000],], 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,58.20000000],[1787954580000,58.16000000],[1787954880000,59.34000000],[1787955180000,59.26000000],[1787955480000,58.38000000],[1787955780000,59.06000000],[1787956080000,59.42000000],[1787956380000,59.78000000],[1787956680000,59.98000000],[1787956980000,59.24000000],[1787957280000,59.02000000],[1787957580000,58.64000000],[1787957880000,58.60000000],[1787958180000,58.56000000],[1787958480000,58.56000000],[1787958780000,58.24000000],[1787959080000,57.76000000],[1787959380000,57.90000000],[1787959680000,58.90000000],[1787959980000,58.80000000],[1787960280000,58.60000000],[1787960580000,57.62000000],[1787960880000,58.00000000],[1787961180000,58.62000000],[1787961480000,58.64000000],[1787961780000,58.44000000],[1787962080000,53.54000000],[1787962380000,46.20000000],[1787962680000,44.76000000],[1787962980000,45.12000000],[1787963280000,46.40000000],[1787963580000,48.40000000],[1787963880000,49.80000000],[1787964180000,51.02000000],[1787964480000,50.56000000],[1787964780000,50.66000000],[1787965080000,50.50000000],[1787965380000,51.36000000],[1787965680000,51.16000000],[1787965980000,51.50000000],[1787966280000,51.48000000],[1787966580000,52.02000000],[1787966880000,51.96000000],[1787967180000,51.90000000],[1787967480000,50.64000000],[1787967780000,49.70000000],[1787968080000,49.20000000],[1787968380000,48.90000000],[1787968680000,49.58000000],[1787968980000,51.00000000],[1787969280000,52.24000000],[1787969580000,52.18000000],[1787969880000,53.50000000],[1787970180000,54.06000000],[1787970480000,53.72000000],[1787970780000,53.26000000],[1787971080000,54.00000000],[1787971380000,53.68000000],[1787971680000,53.24000000],[1787971980000,52.68000000],[1787972280000,53.46000000],[1787972580000,52.72000000],[1787972880000,52.14000000],[1787973180000,54.44000000],[1787973480000,53.52000000],[1787973780000,52.86000000],[1787974080000,54.40000000],[1787974380000,54.76000000],[1787974680000,54.38000000],[1787974980000,55.82000000],[1787975280000,56.54000000],[1787975580000,56.80000000],[1787975880000,57.12000000],[1787976180000,58.06000000],[1787976480000,58.46000000],[1787976780000,59.62000000],[1787977080000,60.32000000],[1787977380000,61.02000000],[1787977680000,61.90000000],[1787977980000,62.98000000],[1787978280000,62.60000000],], 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,1015.4],[1787954580000,1015.3],[1787954880000,1015.3],[1787955180000,1015.2],[1787955480000,1015.2],[1787955780000,1015.2],[1787956080000,1015.2],[1787956380000,1015.2],[1787956680000,1015],[1787956980000,1014.9],[1787957280000,1014.7],[1787957580000,1014.5],[1787957880000,1014.4],[1787958180000,1014.4],[1787958480000,1014.3],[1787958780000,1014.3],[1787959080000,1014.3],[1787959380000,1014.3],[1787959680000,1014.2],[1787959980000,1014.3],[1787960280000,1014.4],[1787960580000,1014.3],[1787960880000,1014.4],[1787961180000,1014.2],[1787961480000,1014],[1787961780000,1013.6],[1787962080000,1013.1],[1787962380000,1012.7],[1787962680000,1012.7],[1787962980000,1012.8],[1787963280000,1012.7],[1787963580000,1012.9],[1787963880000,1013.1],[1787964180000,1013.2],[1787964480000,1013.2],[1787964780000,1013.1],[1787965080000,1012.9],[1787965380000,1012.7],[1787965680000,1012.7],[1787965980000,1012.6],[1787966280000,1012.7],[1787966580000,1012.6],[1787966880000,1012.4],[1787967180000,1012.2],[1787967480000,1012],[1787967780000,1011.8],[1787968080000,1011.8],[1787968380000,1011.7],[1787968680000,1011.5],[1787968980000,1011.5],[1787969280000,1011.5],[1787969580000,1011.5],[1787969880000,1011.6],[1787970180000,1011.6],[1787970480000,1011.5],[1787970780000,1011.4],[1787971080000,1011.2],[1787971380000,1011.2],[1787971680000,1011.4],[1787971980000,1011.6],[1787972280000,1011.9],[1787972580000,1012.2],[1787972880000,1012.5],[1787973180000,1012.8],[1787973480000,1012.8],[1787973780000,1012.8],[1787974080000,1012.5],[1787974380000,1012.6],[1787974680000,1012.8],[1787974980000,1012.8],[1787975280000,1012.9],[1787975580000,1012.9],[1787975880000,1013],[1787976180000,1013],[1787976480000,1013.1],[1787976780000,1013],[1787977080000,1013],[1787977380000,1013],[1787977680000,1013],[1787977980000,1013.1],[1787978280000,1013.1],], 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,1.680000012],[1787954580000,1.584],[1787954880000,1.512],[1787955180000,2.448],[1787955480000,2.88],[1787955780000,2.304],[1787956080000,1.8],[1787956380000,1.584],[1787956680000,1.44],[1787956980000,2.592],[1787957280000,2.448],[1787957580000,3.24],[1787957880000,3.024],[1787958180000,3.312],[1787958480000,3.384],[1787958780000,4.032],[1787959080000,4.176],[1787959380000,3.888],[1787959680000,2.304],[1787959980000,2.16],[1787960280000,1.656],[1787960580000,1.44],[1787960880000,1.8],[1787961180000,1.728],[1787961480000,1.08],[1787961780000,1.656],[1787962080000,3.96],[1787962380000,5.544],[1787962680000,3.096],[1787962980000,2.736],[1787963280000,4.176],[1787963580000,2.448],[1787963880000,2.52],[1787964180000,3.024],[1787964480000,2.376],[1787964780000,3.168],[1787965080000,3.312],[1787965380000,4.176],[1787965680000,3.96],[1787965980000,3.312],[1787966280000,3.312],[1787966580000,2.304],[1787966880000,3.168],[1787967180000,3.096],[1787967480000,2.592],[1787967780000,3.456],[1787968080000,3.528],[1787968380000,3.528],[1787968680000,2.448],[1787968980000,2.16],[1787969280000,1.872],[1787969580000,1.944],[1787969880000,1.8],[1787970180000,2.664],[1787970480000,2.736],[1787970780000,3.384],[1787971080000,2.304],[1787971380000,3.024],[1787971680000,2.448],[1787971980000,3.24],[1787972280000,2.808],[1787972580000,1.584],[1787972880000,2.592],[1787973180000,3.24],[1787973480000,3.384],[1787973780000,4.824],[1787974080000,2.736],[1787974380000,1.584],[1787974680000,3.744],[1787974980000,1.512],[1787975280000,1.512],[1787975580000,1.8],[1787975880000,2.016],[1787976180000,1.872],[1787976480000,1.584],[1787976780000,1.224],[1787977080000,1.08],[1787977380000,1.512],[1787977680000,1.872],[1787977980000,2.304],[1787978280000,1.44],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,2.999999988],[1787954580000,3.096],[1787954880000,2.808],[1787955180000,4.248],[1787955480000,6.552],[1787955780000,5.184],[1787956080000,3.312],[1787956380000,3.24],[1787956680000,2.448],[1787956980000,4.248],[1787957280000,3.888],[1787957580000,6.264],[1787957880000,5.4],[1787958180000,6.696],[1787958480000,6.912],[1787958780000,8.568],[1787959080000,7.632],[1787959380000,8.784],[1787959680000,4.104],[1787959980000,3.744],[1787960280000,3.096],[1787960580000,3.096],[1787960880000,2.952],[1787961180000,2.952],[1787961480000,2.088],[1787961780000,2.664],[1787962080000,10.872],[1787962380000,11.304],[1787962680000,6.12],[1787962980000,5.472],[1787963280000,9.504],[1787963580000,4.68],[1787963880000,5.04],[1787964180000,6.048],[1787964480000,4.896],[1787964780000,5.688],[1787965080000,6.912],[1787965380000,8.928],[1787965680000,9.216],[1787965980000,5.976],[1787966280000,7.2],[1787966580000,4.536],[1787966880000,6.192],[1787967180000,6.552],[1787967480000,4.968],[1787967780000,6.12],[1787968080000,7.992],[1787968380000,6.984],[1787968680000,5.184],[1787968980000,4.68],[1787969280000,4.032],[1787969580000,3.456],[1787969880000,3.384],[1787970180000,5.832],[1787970480000,5.76],[1787970780000,7.056],[1787971080000,4.752],[1787971380000,5.76],[1787971680000,4.968],[1787971980000,6.336],[1787972280000,4.752],[1787972580000,2.952],[1787972880000,5.112],[1787973180000,5.328],[1787973480000,5.616],[1787973780000,8.28],[1787974080000,4.104],[1787974380000,2.304],[1787974680000,5.4],[1787974980000,2.448],[1787975280000,2.448],[1787975580000,3.168],[1787975880000,3.24],[1787976180000,2.736],[1787976480000,2.088],[1787976780000,1.872],[1787977080000,1.656],[1787977380000,2.304],[1787977680000,2.52],[1787977980000,3.096],[1787978280000,1.98],], 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,55.20000000],[1787954580000,90.08000000],[1787954880000,104.58000000],[1787955180000,106.06000000],[1787955480000,107.48000000],[1787955780000,112.44000000],[1787956080000,94.60000000],[1787956380000,112.66000000],[1787956680000,94.56000000],[1787956980000,104.08000000],[1787957280000,94.88000000],[1787957580000,103.78000000],[1787957880000,120.06000000],[1787958180000,120.66000000],[1787958480000,111.78000000],[1787958780000,112.06000000],[1787959080000,120.42000000],[1787959380000,128.40000000],[1787959680000,77.00000000],[1787959980000,123.70000000],[1787960280000,163.52000000],[1787960580000,160.90000000],[1787960880000,106.16000000],[1787961180000,88.06000000],[1787961480000,97.78000000],[1787961780000,98.62000000],[1787962080000,95.48000000],[1787962380000,97.66000000],[1787962680000,102.88000000],[1787962980000,119.24000000],[1787963280000,120.94000000],[1787963580000,105.94000000],[1787963880000,110.60000000],[1787964180000,121.92000000],[1787964480000,120.72000000],[1787964780000,129.74000000],[1787965080000,121.12000000],[1787965380000,121.46000000],[1787965680000,118.04000000],[1787965980000,109.02000000],[1787966280000,116.50000000],[1787966580000,111.90000000],[1787966880000,112.58000000],[1787967180000,122.10000000],[1787967480000,121.98000000],[1787967780000,131.98000000],[1787968080000,120.02000000],[1787968380000,100.78000000],[1787968680000,124.06000000],[1787968980000,117.82000000],[1787969280000,83.92000000],[1787969580000,114.76000000],[1787969880000,119.68000000],[1787970180000,110.16000000],[1787970480000,110.76000000],[1787970780000,102.26000000],[1787971080000,99.12000000],[1787971380000,109.12000000],[1787971680000,104.44000000],[1787971980000,115.54000000],[1787972280000,137.90000000],[1787972580000,158.82000000],[1787972880000,256.24000000],[1787973180000,236.66000000],[1787973480000,231.50000000],[1787973780000,220.58000000],[1787974080000,126.48000000],[1787974380000,273.68000000],[1787974680000,227.58000000],[1787974980000,136.84000000],[1787975280000,235.40000000],[1787975580000,273.52000000],[1787975880000,226.60000000],[1787976180000,120.04000000],[1787976480000,152.18000000],[1787976780000,98.70000000],[1787977080000,134.60000000],[1787977380000,117.98000000],[1787977680000,91.36000000],[1787977980000,167.98000000],[1787978280000,97.60000000],], 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],[1787978280000,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; }