var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,12.90000000],[1787954580000,13.04000000],[1787954880000,13.18000000],[1787955180000,13.30000000],[1787955480000,13.30000000],[1787955780000,13.32000000],[1787956080000,13.40000000],[1787956380000,13.50000000],[1787956680000,13.58000000],[1787956980000,13.60000000],[1787957280000,13.54000000],[1787957580000,13.42000000],[1787957880000,13.36000000],[1787958180000,13.28000000],[1787958480000,13.20000000],[1787958780000,13.12000000],[1787959080000,13.10000000],[1787959380000,13.10000000],[1787959680000,13.22000000],[1787959980000,13.50000000],[1787960280000,13.86000000],[1787960580000,14.10000000],[1787960880000,14.34000000],[1787961180000,14.50000000],[1787961480000,14.68000000],[1787961780000,14.82000000],[1787962080000,15.16000000],[1787962380000,15.24000000],[1787962680000,15.34000000],[1787962980000,15.50000000],[1787963280000,15.50000000],[1787963580000,15.54000000],[1787963880000,15.60000000],[1787964180000,15.74000000],[1787964480000,15.90000000],[1787964780000,15.94000000],[1787965080000,16.00000000],[1787965380000,16.10000000],[1787965680000,16.10000000],[1787965980000,16.10000000],[1787966280000,16.10000000],[1787966580000,16.10000000],[1787966880000,16.22000000],[1787967180000,16.36000000],[1787967480000,16.40000000],[1787967780000,16.34000000],[1787968080000,16.38000000],[1787968380000,16.48000000],[1787968680000,16.40000000],[1787968980000,16.40000000],[1787969280000,16.28000000],[1787969580000,16.22000000],[1787969880000,16.24000000],[1787970180000,16.30000000],[1787970480000,16.30000000],[1787970780000,16.30000000],[1787971080000,16.26000000],[1787971380000,16.30000000],[1787971680000,16.32000000],[1787971980000,16.40000000],[1787972280000,16.40000000],[1787972580000,16.40000000],[1787972880000,16.30000000],[1787973180000,16.24000000],[1787973480000,16.30000000],[1787973780000,16.40000000],[1787974080000,16.50000000],[1787974380000,16.46000000],[1787974680000,16.34000000],[1787974980000,16.22000000],[1787975280000,16.04000000],[1787975580000,15.92000000],[1787975880000,15.82000000],[1787976180000,15.72000000],[1787976480000,15.62000000],[1787976780000,15.48000000],[1787977080000,15.36000000],[1787977380000,15.28000000],[1787977680000,15.20000000],[1787977980000,15.12500000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.7],[1787954580000,6.4],[1787954880000,6.9],[1787955180000,6.4],[1787955480000,6.4],[1787955780000,6.4],[1787956080000,6.3],[1787956380000,6],[1787956680000,6.1],[1787956980000,6.7],[1787957280000,6.8],[1787957580000,7.4],[1787957880000,7.5],[1787958180000,7.7],[1787958480000,7.9],[1787958780000,8],[1787959080000,8],[1787959380000,8],[1787959680000,8],[1787959980000,7.8],[1787960280000,7.9],[1787960580000,8],[1787960880000,8.2],[1787961180000,8.3],[1787961480000,8.6],[1787961780000,8.2],[1787962080000,8.6],[1787962380000,8.8],[1787962680000,8.3],[1787962980000,8.6],[1787963280000,8.9],[1787963580000,8.4],[1787963880000,8.6],[1787964180000,8],[1787964480000,8.7],[1787964780000,8.3],[1787965080000,8.5],[1787965380000,8.5],[1787965680000,8.6],[1787965980000,8.6],[1787966280000,8.6],[1787966580000,8.1],[1787966880000,7.7],[1787967180000,7.7],[1787967480000,8.2],[1787967780000,8.3],[1787968080000,7.5],[1787968380000,7.6],[1787968680000,7.4],[1787968980000,7.9],[1787969280000,7.7],[1787969580000,7.3],[1787969880000,7.2],[1787970180000,7.6],[1787970480000,7.9],[1787970780000,8],[1787971080000,7.9],[1787971380000,8.4],[1787971680000,8.4],[1787971980000,8.4],[1787972280000,8.6],[1787972580000,8.6],[1787972880000,9],[1787973180000,9.1],[1787973480000,9.2],[1787973780000,9.2],[1787974080000,9.2],[1787974380000,9.1],[1787974680000,8.7],[1787974980000,8.9],[1787975280000,8.6],[1787975580000,8.9],[1787975880000,8.7],[1787976180000,8.7],[1787976480000,8.9],[1787976780000,8.7],[1787977080000,8.8],[1787977380000,8.8],[1787977680000,8.4],[1787977980000,8.2],], 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,10.30000000],[1787954580000,10.38000000],[1787954880000,10.94000000],[1787955180000,11.06000000],[1787955480000,10.78000000],[1787955780000,10.88000000],[1787956080000,11.08000000],[1787956380000,11.82000000],[1787956680000,11.22000000],[1787956980000,11.20000000],[1787957280000,10.48000000],[1787957580000,10.80000000],[1787957880000,10.98000000],[1787958180000,10.92000000],[1787958480000,10.76000000],[1787958780000,11.04000000],[1787959080000,11.14000000],[1787959380000,11.68000000],[1787959680000,12.02000000],[1787959980000,13.38000000],[1787960280000,13.60000000],[1787960580000,14.08000000],[1787960880000,13.96000000],[1787961180000,14.00000000],[1787961480000,14.50000000],[1787961780000,14.84000000],[1787962080000,15.00000000],[1787962380000,14.44000000],[1787962680000,14.22000000],[1787962980000,14.42000000],[1787963280000,14.14000000],[1787963580000,14.66000000],[1787963880000,14.48000000],[1787964180000,14.78000000],[1787964480000,14.68000000],[1787964780000,15.04000000],[1787965080000,15.14000000],[1787965380000,15.36000000],[1787965680000,14.90000000],[1787965980000,15.18000000],[1787966280000,15.28000000],[1787966580000,15.30000000],[1787966880000,15.62000000],[1787967180000,15.56000000],[1787967480000,15.10000000],[1787967780000,15.14000000],[1787968080000,15.66000000],[1787968380000,15.20000000],[1787968680000,15.24000000],[1787968980000,14.96000000],[1787969280000,14.70000000],[1787969580000,14.72000000],[1787969880000,15.20000000],[1787970180000,15.30000000],[1787970480000,15.28000000],[1787970780000,15.26000000],[1787971080000,15.34000000],[1787971380000,15.18000000],[1787971680000,15.38000000],[1787971980000,14.66000000],[1787972280000,14.58000000],[1787972580000,14.96000000],[1787972880000,14.54000000],[1787973180000,14.72000000],[1787973480000,15.34000000],[1787973780000,15.58000000],[1787974080000,15.58000000],[1787974380000,15.36000000],[1787974680000,15.16000000],[1787974980000,14.90000000],[1787975280000,14.78000000],[1787975580000,14.34000000],[1787975880000,13.88000000],[1787976180000,13.74000000],[1787976480000,13.62000000],[1787976780000,13.52000000],[1787977080000,13.48000000],[1787977380000,13.46000000],[1787977680000,13.34000000],[1787977980000,13.35000000],], 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,66.20000000],[1787954580000,64.26000000],[1787954880000,65.82000000],[1787955180000,63.12000000],[1787955480000,63.18000000],[1787955780000,63.06000000],[1787956080000,62.24000000],[1787956380000,60.66000000],[1787956680000,60.90000000],[1787956980000,63.12000000],[1787957280000,64.18000000],[1787957580000,67.12000000],[1787957880000,67.94000000],[1787958180000,69.06000000],[1787958480000,70.32000000],[1787958780000,71.54000000],[1787959080000,71.28000000],[1787959380000,71.42000000],[1787959680000,70.72000000],[1787959980000,68.70000000],[1787960280000,67.54000000],[1787960580000,66.86000000],[1787960880000,66.90000000],[1787961180000,66.66000000],[1787961480000,67.22000000],[1787961780000,64.92000000],[1787962080000,65.08000000],[1787962380000,65.60000000],[1787962680000,62.96000000],[1787962980000,63.80000000],[1787963280000,64.92000000],[1787963580000,62.84000000],[1787963880000,63.40000000],[1787964180000,60.40000000],[1787964480000,62.46000000],[1787964780000,60.70000000],[1787965080000,61.20000000],[1787965380000,60.76000000],[1787965680000,61.36000000],[1787965980000,61.22000000],[1787966280000,61.20000000],[1787966580000,59.28000000],[1787966880000,57.36000000],[1787967180000,56.74000000],[1787967480000,58.74000000],[1787967780000,59.04000000],[1787968080000,55.80000000],[1787968380000,55.78000000],[1787968680000,55.64000000],[1787968980000,57.24000000],[1787969280000,57.20000000],[1787969580000,55.68000000],[1787969880000,55.32000000],[1787970180000,56.64000000],[1787970480000,57.90000000],[1787970780000,58.28000000],[1787971080000,57.72000000],[1787971380000,59.94000000],[1787971680000,59.52000000],[1787971980000,59.40000000],[1787972280000,60.08000000],[1787972580000,60.12000000],[1787972880000,62.20000000],[1787973180000,63.00000000],[1787973480000,62.90000000],[1787973780000,62.72000000],[1787974080000,62.40000000],[1787974380000,61.96000000],[1787974680000,60.88000000],[1787974980000,62.06000000],[1787975280000,61.68000000],[1787975580000,63.14000000],[1787975880000,62.98000000],[1787976180000,63.24000000],[1787976480000,64.52000000],[1787976780000,64.08000000],[1787977080000,65.20000000],[1787977380000,65.66000000],[1787977680000,64.26000000],[1787977980000,63.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,1017.5],[1787954580000,1017.3],[1787954880000,1017.3],[1787955180000,1017.3],[1787955480000,1017.2],[1787955780000,1017],[1787956080000,1016.8],[1787956380000,1016.8],[1787956680000,1016.8],[1787956980000,1016.8],[1787957280000,1016.8],[1787957580000,1016.7],[1787957880000,1016.5],[1787958180000,1016.5],[1787958480000,1016.5],[1787958780000,1016.5],[1787959080000,1016.5],[1787959380000,1016.5],[1787959680000,1016.5],[1787959980000,1016.4],[1787960280000,1016.2],[1787960580000,1016],[1787960880000,1015.8],[1787961180000,1015.7],[1787961480000,1015.4],[1787961780000,1015.2],[1787962080000,1014.9],[1787962380000,1014.9],[1787962680000,1014.6],[1787962980000,1014.4],[1787963280000,1014.3],[1787963580000,1014.2],[1787963880000,1014.1],[1787964180000,1014.1],[1787964480000,1014.1],[1787964780000,1014.1],[1787965080000,1014.1],[1787965380000,1014.1],[1787965680000,1014.1],[1787965980000,1014],[1787966280000,1013.9],[1787966580000,1013.7],[1787966880000,1013.6],[1787967180000,1013.4],[1787967480000,1013.4],[1787967780000,1013.3],[1787968080000,1013.3],[1787968380000,1013.1],[1787968680000,1013.1],[1787968980000,1013],[1787969280000,1012.9],[1787969580000,1012.9],[1787969880000,1012.6],[1787970180000,1012.5],[1787970480000,1012.5],[1787970780000,1012.5],[1787971080000,1012.6],[1787971380000,1012.5],[1787971680000,1012.5],[1787971980000,1012.3],[1787972280000,1012.3],[1787972580000,1012.3],[1787972880000,1012.4],[1787973180000,1012.4],[1787973480000,1012.3],[1787973780000,1012.2],[1787974080000,1012.3],[1787974380000,1012.5],[1787974680000,1012.9],[1787974980000,1013.1],[1787975280000,1013.1],[1787975580000,1013.1],[1787975880000,1013.1],[1787976180000,1013.2],[1787976480000,1013.3],[1787976780000,1013.3],[1787977080000,1013.4],[1787977380000,1013.4],[1787977680000,1013.5],[1787977980000,1013.4],], 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,3.719999988],[1787954580000,3.6],[1787954880000,4.536],[1787955180000,3.744],[1787955480000,2.592],[1787955780000,4.392],[1787956080000,3.528],[1787956380000,4.752],[1787956680000,4.536],[1787956980000,3.096],[1787957280000,1.584],[1787957580000,2.952],[1787957880000,2.808],[1787958180000,2.232],[1787958480000,1.44],[1787958780000,1.296],[1787959080000,1.584],[1787959380000,2.376],[1787959680000,3.528],[1787959980000,4.824],[1787960280000,4.248],[1787960580000,6.408],[1787960880000,4.32],[1787961180000,4.104],[1787961480000,4.176],[1787961780000,5.688],[1787962080000,4.032],[1787962380000,2.376],[1787962680000,3.024],[1787962980000,3.456],[1787963280000,3.384],[1787963580000,5.256],[1787963880000,2.16],[1787964180000,4.032],[1787964480000,1.944],[1787964780000,2.736],[1787965080000,5.184],[1787965380000,1.8],[1787965680000,3.888],[1787965980000,5.328],[1787966280000,5.184],[1787966580000,4.176],[1787966880000,3.312],[1787967180000,1.872],[1787967480000,2.88],[1787967780000,3.744],[1787968080000,3.456],[1787968380000,3.744],[1787968680000,3.024],[1787968980000,3.384],[1787969280000,2.952],[1787969580000,3.312],[1787969880000,4.968],[1787970180000,5.472],[1787970480000,4.248],[1787970780000,5.472],[1787971080000,3.888],[1787971380000,3.312],[1787971680000,3.456],[1787971980000,1.872],[1787972280000,4.248],[1787972580000,2.232],[1787972880000,3.024],[1787973180000,4.032],[1787973480000,4.824],[1787973780000,4.176],[1787974080000,2.664],[1787974380000,3.6],[1787974680000,3.312],[1787974980000,3.816],[1787975280000,3.816],[1787975580000,1.296],[1787975880000,1.296],[1787976180000,1.08],[1787976480000,1.08],[1787976780000,1.872],[1787977080000,0.936],[1787977380000,1.296],[1787977680000,1.584],[1787977980000,0.81],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,5.280000012],[1787954580000,5.76],[1787954880000,6.408],[1787955180000,5.328],[1787955480000,3.384],[1787955780000,6.696],[1787956080000,5.616],[1787956380000,6.768],[1787956680000,5.832],[1787956980000,5.184],[1787957280000,2.664],[1787957580000,5.04],[1787957880000,4.32],[1787958180000,3.816],[1787958480000,2.232],[1787958780000,1.872],[1787959080000,2.376],[1787959380000,3.456],[1787959680000,5.256],[1787959980000,7.2],[1787960280000,6.192],[1787960580000,9],[1787960880000,6.768],[1787961180000,5.904],[1787961480000,6.408],[1787961780000,8.64],[1787962080000,6.048],[1787962380000,3.456],[1787962680000,4.464],[1787962980000,5.544],[1787963280000,4.608],[1787963580000,7.776],[1787963880000,3.24],[1787964180000,6.336],[1787964480000,3.096],[1787964780000,4.248],[1787965080000,7.488],[1787965380000,3.168],[1787965680000,4.968],[1787965980000,8.64],[1787966280000,7.776],[1787966580000,7.488],[1787966880000,4.752],[1787967180000,2.808],[1787967480000,4.68],[1787967780000,6.336],[1787968080000,5.976],[1787968380000,7.416],[1787968680000,4.176],[1787968980000,4.536],[1787969280000,4.32],[1787969580000,5.472],[1787969880000,6.48],[1787970180000,7.416],[1787970480000,5.904],[1787970780000,7.632],[1787971080000,5.976],[1787971380000,5.76],[1787971680000,6.624],[1787971980000,2.592],[1787972280000,5.832],[1787972580000,3.312],[1787972880000,4.104],[1787973180000,6.336],[1787973480000,8.496],[1787973780000,7.992],[1787974080000,4.536],[1787974380000,5.832],[1787974680000,6.552],[1787974980000,5.976],[1787975280000,6.336],[1787975580000,2.52],[1787975880000,2.304],[1787976180000,1.872],[1787976480000,2.088],[1787976780000,3.096],[1787977080000,1.944],[1787977380000,2.808],[1787977680000,2.448],[1787977980000,1.44],], 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,321.66666667],[1787954580000,323.56000000],[1787954880000,316.76000000],[1787955180000,309.14000000],[1787955480000,327.38000000],[1787955780000,327.66000000],[1787956080000,333.52000000],[1787956380000,322.46000000],[1787956680000,310.50000000],[1787956980000,316.88000000],[1787957280000,328.86000000],[1787957580000,348.40000000],[1787957880000,147.98000000],[1787958180000,274.38000000],[1787958480000,27.18000000],[1787958780000,286.36000000],[1787959080000,263.92000000],[1787959380000,339.66000000],[1787959680000,337.22000000],[1787959980000,330.58000000],[1787960280000,324.26000000],[1787960580000,346.84000000],[1787960880000,318.20000000],[1787961180000,275.54000000],[1787961480000,99.52000000],[1787961780000,84.34000000],[1787962080000,109.96000000],[1787962380000,185.06000000],[1787962680000,139.36000000],[1787962980000,191.94000000],[1787963280000,67.34000000],[1787963580000,46.14000000],[1787963880000,228.40000000],[1787964180000,212.82000000],[1787964480000,89.76000000],[1787964780000,87.02000000],[1787965080000,150.36000000],[1787965380000,213.78000000],[1787965680000,146.22000000],[1787965980000,192.74000000],[1787966280000,53.80000000],[1787966580000,196.50000000],[1787966880000,98.66000000],[1787967180000,124.44000000],[1787967480000,133.14000000],[1787967780000,103.38000000],[1787968080000,141.26000000],[1787968380000,203.80000000],[1787968680000,48.64000000],[1787968980000,37.46000000],[1787969280000,233.66000000],[1787969580000,316.60000000],[1787969880000,18.98000000],[1787970180000,38.08000000],[1787970480000,160.44000000],[1787970780000,65.30000000],[1787971080000,192.04000000],[1787971380000,292.32000000],[1787971680000,184.46000000],[1787971980000,181.34000000],[1787972280000,276.06000000],[1787972580000,167.90000000],[1787972880000,148.32000000],[1787973180000,163.24000000],[1787973480000,253.50000000],[1787973780000,170.78000000],[1787974080000,229.08000000],[1787974380000,134.14000000],[1787974680000,239.70000000],[1787974980000,264.62000000],[1787975280000,279.42000000],[1787975580000,183.60000000],[1787975880000,258.44000000],[1787976180000,178.10000000],[1787976480000,102.76000000],[1787976780000,266.08000000],[1787977080000,108.70000000],[1787977380000,171.52000000],[1787977680000,183.50000000],[1787977980000,164.10000000],], 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; }