var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,11.10000000],[1787954580000,11.08000000],[1787954880000,10.98000000],[1787955180000,10.84000000],[1787955480000,10.74000000],[1787955780000,10.64000000],[1787956080000,10.60000000],[1787956380000,10.50000000],[1787956680000,10.40000000],[1787956980000,10.32000000],[1787957280000,10.30000000],[1787957580000,10.30000000],[1787957880000,10.28000000],[1787958180000,10.30000000],[1787958480000,10.34000000],[1787958780000,10.30000000],[1787959080000,10.30000000],[1787959380000,10.20000000],[1787959680000,10.20000000],[1787959980000,10.20000000],[1787960280000,10.22000000],[1787960580000,10.30000000],[1787960880000,10.44000000],[1787961180000,10.54000000],[1787961480000,10.50000000],[1787961780000,10.60000000],[1787962080000,10.60000000],[1787962380000,10.60000000],[1787962680000,10.60000000],[1787962980000,10.66000000],[1787963280000,10.62000000],[1787963580000,10.60000000],[1787963880000,10.52000000],[1787964180000,10.50000000],[1787964480000,10.50000000],[1787964780000,10.42000000],[1787965080000,10.40000000],[1787965380000,10.40000000],[1787965680000,10.40000000],[1787965980000,10.40000000],[1787966280000,10.40000000],[1787966580000,10.48000000],[1787966880000,10.50000000],[1787967180000,10.50000000],[1787967480000,10.54000000],[1787967780000,10.70000000],[1787968080000,10.80000000],[1787968380000,10.78000000],[1787968680000,10.70000000],[1787968980000,10.70000000],[1787969280000,10.68000000],[1787969580000,10.70000000],[1787969880000,10.74000000],[1787970180000,10.86000000],[1787970480000,11.12000000],[1787970780000,11.54000000],[1787971080000,11.58000000],[1787971380000,11.50000000],[1787971680000,11.50000000],[1787971980000,11.50000000],[1787972280000,11.42000000],[1787972580000,11.36000000],[1787972880000,11.22000000],[1787973180000,11.20000000],[1787973480000,11.30000000],[1787973780000,11.40000000],[1787974080000,11.48000000],[1787974380000,11.46000000],[1787974680000,11.40000000],[1787974980000,11.48000000],[1787975280000,11.24000000],[1787975580000,11.24000000],[1787975880000,11.50000000],[1787976180000,12.04000000],[1787976480000,12.30000000],[1787976780000,12.42000000],[1787977080000,12.50000000],[1787977380000,12.46000000],[1787977680000,12.40000000],[1787977980000,12.43333333],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,9.8],[1787954580000,9.7],[1787954880000,9.5],[1787955180000,9.6],[1787955480000,9.5],[1787955780000,9.6],[1787956080000,9.6],[1787956380000,9.5],[1787956680000,9.5],[1787956980000,9.5],[1787957280000,9.5],[1787957580000,9.4],[1787957880000,9.4],[1787958180000,9.5],[1787958480000,9.7],[1787958780000,9.7],[1787959080000,9.8],[1787959380000,9.8],[1787959680000,9.8],[1787959980000,9.9],[1787960280000,9.8],[1787960580000,9.8],[1787960880000,9.2],[1787961180000,9.7],[1787961480000,9.8],[1787961780000,9.6],[1787962080000,9.6],[1787962380000,9.7],[1787962680000,9.5],[1787962980000,9.4],[1787963280000,9.3],[1787963580000,9.2],[1787963880000,9.2],[1787964180000,9.3],[1787964480000,9.1],[1787964780000,9.3],[1787965080000,9.6],[1787965380000,9.5],[1787965680000,9.4],[1787965980000,9.4],[1787966280000,9.3],[1787966580000,9.3],[1787966880000,9.4],[1787967180000,9.7],[1787967480000,9.6],[1787967780000,9.6],[1787968080000,9.5],[1787968380000,9.6],[1787968680000,9.6],[1787968980000,9.7],[1787969280000,9.7],[1787969580000,9.6],[1787969880000,9.6],[1787970180000,9.5],[1787970480000,9.4],[1787970780000,9.1],[1787971080000,9.9],[1787971380000,9.8],[1787971680000,9.8],[1787971980000,9.8],[1787972280000,9.9],[1787972580000,9.8],[1787972880000,9.7],[1787973180000,9.7],[1787973480000,9.5],[1787973780000,9.6],[1787974080000,9.8],[1787974380000,9.9],[1787974680000,9.6],[1787974980000,9.7],[1787975280000,9.9],[1787975580000,9.8],[1787975880000,9.5],[1787976180000,9.1],[1787976480000,9.7],[1787976780000,10],[1787977080000,9.9],[1787977380000,10.1],[1787977680000,10.1],[1787977980000,10.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,9.33333333],[1787954580000,9.24000000],[1787954880000,9.22000000],[1787955180000,9.08000000],[1787955480000,9.08000000],[1787955780000,9.14000000],[1787956080000,9.00000000],[1787956380000,9.16000000],[1787956680000,9.10000000],[1787956980000,9.24000000],[1787957280000,9.14000000],[1787957580000,9.24000000],[1787957880000,9.46000000],[1787958180000,9.48000000],[1787958480000,9.48000000],[1787958780000,9.42000000],[1787959080000,9.50000000],[1787959380000,9.56000000],[1787959680000,9.50000000],[1787959980000,9.52000000],[1787960280000,9.56000000],[1787960580000,9.76000000],[1787960880000,9.82000000],[1787961180000,9.96000000],[1787961480000,9.90000000],[1787961780000,9.84000000],[1787962080000,9.82000000],[1787962380000,9.78000000],[1787962680000,9.70000000],[1787962980000,9.60000000],[1787963280000,9.50000000],[1787963580000,9.40000000],[1787963880000,9.34000000],[1787964180000,9.32000000],[1787964480000,9.46000000],[1787964780000,9.40000000],[1787965080000,9.40000000],[1787965380000,9.48000000],[1787965680000,9.52000000],[1787965980000,9.60000000],[1787966280000,9.70000000],[1787966580000,9.76000000],[1787966880000,9.82000000],[1787967180000,9.84000000],[1787967480000,9.84000000],[1787967780000,9.98000000],[1787968080000,10.12000000],[1787968380000,10.26000000],[1787968680000,10.34000000],[1787968980000,10.40000000],[1787969280000,10.40000000],[1787969580000,10.40000000],[1787969880000,10.46000000],[1787970180000,10.72000000],[1787970480000,11.08000000],[1787970780000,11.24000000],[1787971080000,11.16000000],[1787971380000,11.10000000],[1787971680000,11.00000000],[1787971980000,10.88000000],[1787972280000,10.72000000],[1787972580000,10.54000000],[1787972880000,10.52000000],[1787973180000,10.52000000],[1787973480000,10.62000000],[1787973780000,10.78000000],[1787974080000,10.86000000],[1787974380000,10.68000000],[1787974680000,10.42000000],[1787974980000,10.34000000],[1787975280000,10.32000000],[1787975580000,10.60000000],[1787975880000,11.14000000],[1787976180000,11.58000000],[1787976480000,11.92000000],[1787976780000,12.14000000],[1787977080000,12.28000000],[1787977380000,12.20000000],[1787977680000,12.22000000],[1787977980000,12.30000000],], 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,91.70000000],[1787954580000,91.06000000],[1787954880000,90.78000000],[1787955180000,92.04000000],[1787955480000,92.04000000],[1787955780000,93.16000000],[1787956080000,93.52000000],[1787956380000,93.32000000],[1787956680000,94.18000000],[1787956980000,94.48000000],[1787957280000,94.56000000],[1787957580000,94.20000000],[1787957880000,94.28000000],[1787958180000,94.84000000],[1787958480000,95.74000000],[1787958780000,96.12000000],[1787959080000,96.88000000],[1787959380000,97.26000000],[1787959680000,97.48000000],[1787959980000,97.74000000],[1787960280000,97.42000000],[1787960580000,96.66000000],[1787960880000,92.18000000],[1787961180000,94.70000000],[1787961480000,95.28000000],[1787961780000,93.44000000],[1787962080000,93.70000000],[1787962380000,94.10000000],[1787962680000,93.22000000],[1787962980000,91.94000000],[1787963280000,91.48000000],[1787963580000,91.16000000],[1787963880000,91.82000000],[1787964180000,92.12000000],[1787964480000,90.98000000],[1787964780000,92.76000000],[1787965080000,94.66000000],[1787965380000,94.00000000],[1787965680000,93.56000000],[1787965980000,93.30000000],[1787966280000,93.16000000],[1787966580000,92.44000000],[1787966880000,93.06000000],[1787967180000,94.62000000],[1787967480000,94.24000000],[1787967780000,92.86000000],[1787968080000,91.98000000],[1787968380000,92.76000000],[1787968680000,92.74000000],[1787968980000,93.44000000],[1787969280000,94.00000000],[1787969580000,93.08000000],[1787969880000,92.54000000],[1787970180000,91.54000000],[1787970480000,89.14000000],[1787970780000,84.94000000],[1787971080000,89.32000000],[1787971380000,89.62000000],[1787971680000,89.54000000],[1787971980000,89.50000000],[1787972280000,90.50000000],[1787972580000,90.00000000],[1787972880000,90.48000000],[1787973180000,90.70000000],[1787973480000,88.64000000],[1787973780000,89.00000000],[1787974080000,89.46000000],[1787974380000,90.14000000],[1787974680000,89.08000000],[1787974980000,89.04000000],[1787975280000,91.42000000],[1787975580000,91.22000000],[1787975880000,87.70000000],[1787976180000,82.40000000],[1787976480000,84.40000000],[1787976780000,85.32000000],[1787977080000,84.22000000],[1787977380000,85.58000000],[1787977680000,85.78000000],[1787977980000,86.56666667],], 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,1018.7],[1787954580000,1018.6],[1787954880000,1018.6],[1787955180000,1018.6],[1787955480000,1018.6],[1787955780000,1018.7],[1787956080000,1018.8],[1787956380000,1018.7],[1787956680000,1018.6],[1787956980000,1018.6],[1787957280000,1018.6],[1787957580000,1018.7],[1787957880000,1018.7],[1787958180000,1018.5],[1787958480000,1018.4],[1787958780000,1018.3],[1787959080000,1018.2],[1787959380000,1018.1],[1787959680000,1018],[1787959980000,1018],[1787960280000,1018],[1787960580000,1018],[1787960880000,1018.1],[1787961180000,1018.2],[1787961480000,1018.1],[1787961780000,1018],[1787962080000,1017.9],[1787962380000,1017.8],[1787962680000,1017.7],[1787962980000,1017.6],[1787963280000,1017.6],[1787963580000,1017.5],[1787963880000,1017.3],[1787964180000,1017.2],[1787964480000,1017.2],[1787964780000,1017],[1787965080000,1016.9],[1787965380000,1017],[1787965680000,1017.1],[1787965980000,1017.1],[1787966280000,1017.1],[1787966580000,1017.1],[1787966880000,1017],[1787967180000,1016.9],[1787967480000,1016.9],[1787967780000,1016.8],[1787968080000,1016.7],[1787968380000,1016.6],[1787968680000,1016.3],[1787968980000,1016.3],[1787969280000,1016.3],[1787969580000,1016.1],[1787969880000,1016.1],[1787970180000,1016.2],[1787970480000,1016.1],[1787970780000,1015.8],[1787971080000,1015.7],[1787971380000,1015.5],[1787971680000,1015.6],[1787971980000,1015.5],[1787972280000,1015.4],[1787972580000,1015.5],[1787972880000,1015.6],[1787973180000,1015.6],[1787973480000,1015.6],[1787973780000,1015.6],[1787974080000,1015.5],[1787974380000,1015.4],[1787974680000,1015.3],[1787974980000,1015.3],[1787975280000,1015.3],[1787975580000,1015.4],[1787975880000,1015.5],[1787976180000,1015.6],[1787976480000,1015.9],[1787976780000,1016],[1787977080000,1015.9],[1787977380000,1016.2],[1787977680000,1016.1],[1787977980000,1016.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,2.639999988],[1787954580000,3.24],[1787954880000,1.8],[1787955180000,2.592],[1787955480000,1.8],[1787955780000,1.44],[1787956080000,1.656],[1787956380000,1.656],[1787956680000,1.872],[1787956980000,2.376],[1787957280000,2.088],[1787957580000,1.296],[1787957880000,1.224],[1787958180000,2.088],[1787958480000,1.728],[1787958780000,2.016],[1787959080000,0.864],[1787959380000,1.368],[1787959680000,0.936],[1787959980000,0.432],[1787960280000,2.592],[1787960580000,2.592],[1787960880000,2.16],[1787961180000,3.168],[1787961480000,2.016],[1787961780000,0.792],[1787962080000,1.224],[1787962380000,1.152],[1787962680000,1.152],[1787962980000,1.584],[1787963280000,2.016],[1787963580000,1.44],[1787963880000,0.576],[1787964180000,1.872],[1787964480000,2.376],[1787964780000,2.736],[1787965080000,1.584],[1787965380000,1.152],[1787965680000,3.168],[1787965980000,1.8],[1787966280000,2.016],[1787966580000,3.096],[1787966880000,3.744],[1787967180000,2.376],[1787967480000,2.52],[1787967780000,4.824],[1787968080000,2.232],[1787968380000,3.024],[1787968680000,6.264],[1787968980000,3.456],[1787969280000,2.88],[1787969580000,4.104],[1787969880000,2.52],[1787970180000,3.384],[1787970480000,4.464],[1787970780000,4.248],[1787971080000,5.328],[1787971380000,2.952],[1787971680000,2.304],[1787971980000,2.952],[1787972280000,4.464],[1787972580000,4.824],[1787972880000,2.88],[1787973180000,2.016],[1787973480000,3.024],[1787973780000,3.6],[1787974080000,3.312],[1787974380000,2.16],[1787974680000,2.376],[1787974980000,2.952],[1787975280000,4.032],[1787975580000,5.112],[1787975880000,5.328],[1787976180000,4.896],[1787976480000,3.168],[1787976780000,5.184],[1787977080000,5.832],[1787977380000,4.248],[1787977680000,5.976],[1787977980000,2.760000012],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,3.480000012],[1787954580000,4.032],[1787954880000,2.448],[1787955180000,3.024],[1787955480000,2.736],[1787955780000,1.8],[1787956080000,2.304],[1787956380000,2.304],[1787956680000,2.592],[1787956980000,3.096],[1787957280000,2.808],[1787957580000,1.728],[1787957880000,1.584],[1787958180000,2.736],[1787958480000,2.304],[1787958780000,2.52],[1787959080000,1.584],[1787959380000,1.872],[1787959680000,1.368],[1787959980000,0.864],[1787960280000,3.24],[1787960580000,3.456],[1787960880000,2.952],[1787961180000,3.96],[1787961480000,2.664],[1787961780000,1.152],[1787962080000,1.512],[1787962380000,1.728],[1787962680000,1.728],[1787962980000,2.376],[1787963280000,2.808],[1787963580000,1.872],[1787963880000,0.864],[1787964180000,3.096],[1787964480000,3.168],[1787964780000,3.384],[1787965080000,2.088],[1787965380000,1.728],[1787965680000,3.816],[1787965980000,2.304],[1787966280000,2.664],[1787966580000,4.032],[1787966880000,4.968],[1787967180000,3.744],[1787967480000,3.24],[1787967780000,5.832],[1787968080000,2.88],[1787968380000,3.816],[1787968680000,7.992],[1787968980000,4.608],[1787969280000,3.6],[1787969580000,4.752],[1787969880000,3.888],[1787970180000,4.32],[1787970480000,7.056],[1787970780000,6.336],[1787971080000,6.624],[1787971380000,4.104],[1787971680000,3.168],[1787971980000,3.744],[1787972280000,5.256],[1787972580000,6.408],[1787972880000,4.248],[1787973180000,2.952],[1787973480000,4.68],[1787973780000,4.536],[1787974080000,4.536],[1787974380000,3.096],[1787974680000,3.096],[1787974980000,3.96],[1787975280000,5.616],[1787975580000,7.848],[1787975880000,8.64],[1787976180000,8.568],[1787976480000,5.832],[1787976780000,6.768],[1787977080000,7.344],[1787977380000,5.832],[1787977680000,7.632],[1787977980000,4.439999988],], 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,25.86666667],[1787954580000,20.10000000],[1787954880000,48.78000000],[1787955180000,225.34000000],[1787955480000,313.60000000],[1787955780000,197.72000000],[1787956080000,256.36000000],[1787956380000,76.54000000],[1787956680000,48.42000000],[1787956980000,207.32000000],[1787957280000,333.78000000],[1787957580000,254.52000000],[1787957880000,30.70000000],[1787958180000,31.68000000],[1787958480000,48.84000000],[1787958780000,21.80000000],[1787959080000,157.32000000],[1787959380000,64.40000000],[1787959680000,29.80000000],[1787959980000,249.16000000],[1787960280000,311.78000000],[1787960580000,284.80000000],[1787960880000,201.96000000],[1787961180000,162.80000000],[1787961480000,144.92000000],[1787961780000,26.92000000],[1787962080000,39.92000000],[1787962380000,84.88000000],[1787962680000,95.18000000],[1787962980000,299.18000000],[1787963280000,309.06000000],[1787963580000,260.02000000],[1787963880000,119.92000000],[1787964180000,185.24000000],[1787964480000,213.36000000],[1787964780000,129.96000000],[1787965080000,173.36000000],[1787965380000,202.36000000],[1787965680000,296.12000000],[1787965980000,292.46000000],[1787966280000,241.80000000],[1787966580000,273.72000000],[1787966880000,148.80000000],[1787967180000,148.86000000],[1787967480000,299.78000000],[1787967780000,327.26000000],[1787968080000,41.72000000],[1787968380000,45.60000000],[1787968680000,18.96000000],[1787968980000,55.50000000],[1787969280000,63.44000000],[1787969580000,33.86000000],[1787969880000,192.96000000],[1787970180000,315.78000000],[1787970480000,337.16000000],[1787970780000,131.46000000],[1787971080000,144.34000000],[1787971380000,183.40000000],[1787971680000,263.60000000],[1787971980000,125.90000000],[1787972280000,99.20000000],[1787972580000,41.06000000],[1787972880000,23.14000000],[1787973180000,241.20000000],[1787973480000,157.02000000],[1787973780000,213.38000000],[1787974080000,136.20000000],[1787974380000,169.76000000],[1787974680000,212.72000000],[1787974980000,59.88000000],[1787975280000,97.42000000],[1787975580000,328.60000000],[1787975880000,231.90000000],[1787976180000,249.04000000],[1787976480000,243.98000000],[1787976780000,98.96000000],[1787977080000,67.74000000],[1787977380000,96.60000000],[1787977680000,35.90000000],[1787977980000,82.90000000],], 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; }