var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,17.76666667],[1787954580000,17.82000000],[1787954880000,17.72000000],[1787955180000,17.84000000],[1787955480000,18.02000000],[1787955780000,17.98000000],[1787956080000,18.08000000],[1787956380000,18.18000000],[1787956680000,18.08000000],[1787956980000,18.28000000],[1787957280000,18.10000000],[1787957580000,18.10000000],[1787957880000,18.02000000],[1787958180000,17.72000000],[1787958480000,17.44000000],[1787958780000,17.66000000],[1787959080000,17.74000000],[1787959380000,17.32000000],[1787959680000,17.30000000],[1787959980000,17.42000000],[1787960280000,17.40000000],[1787960580000,17.30000000],[1787960880000,17.00000000],[1787961180000,16.94000000],[1787961480000,16.80000000],[1787961780000,16.94000000],[1787962080000,17.04000000],[1787962380000,17.00000000],[1787962680000,16.90000000],[1787962980000,16.98000000],[1787963280000,16.88000000],[1787963580000,17.26000000],[1787963880000,17.50000000],[1787964180000,17.24000000],[1787964480000,16.82000000],[1787964780000,17.00000000],[1787965080000,17.00000000],[1787965380000,17.08000000],[1787965680000,17.02000000],[1787965980000,16.92000000],[1787966280000,17.12000000],[1787966580000,16.94000000],[1787966880000,16.78000000],[1787967180000,16.70000000],[1787967480000,16.68000000],[1787967780000,16.54000000],[1787968080000,16.60000000],[1787968380000,16.46000000],[1787968680000,16.58000000],[1787968980000,17.08000000],[1787969280000,16.94000000],[1787969580000,16.76000000],[1787969880000,16.68000000],[1787970180000,16.56000000],[1787970480000,16.64000000],[1787970780000,16.52000000],[1787971080000,16.70000000],[1787971380000,16.68000000],[1787971680000,16.54000000],[1787971980000,16.92000000],[1787972280000,17.36000000],[1787972580000,17.32000000],[1787972880000,17.38000000],[1787973180000,17.56000000],[1787973480000,17.72000000],[1787973780000,17.48000000],[1787974080000,17.06000000],[1787974380000,17.22000000],[1787974680000,17.38000000],[1787974980000,17.48000000],[1787975280000,17.46000000],[1787975580000,17.50000000],[1787975880000,17.44000000],[1787976180000,17.50000000],[1787976480000,17.36000000],[1787976780000,17.20000000],[1787977080000,17.10000000],[1787977380000,16.92000000],[1787977680000,16.70000000],[1787977980000,16.72000000],[1787978280000,16.80000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.1],[1787954580000,6],[1787954880000,6.1],[1787955180000,6.1],[1787955480000,6],[1787955780000,6.1],[1787956080000,6.2],[1787956380000,6.3],[1787956680000,6.4],[1787956980000,6.4],[1787957280000,6.5],[1787957580000,6.5],[1787957880000,6.6],[1787958180000,6.7],[1787958480000,6.8],[1787958780000,6.6],[1787959080000,6.7],[1787959380000,6.9],[1787959680000,6.7],[1787959980000,6.8],[1787960280000,6.8],[1787960580000,6.9],[1787960880000,7],[1787961180000,7],[1787961480000,7.1],[1787961780000,7],[1787962080000,7],[1787962380000,7],[1787962680000,7.2],[1787962980000,7.3],[1787963280000,7.3],[1787963580000,7.1],[1787963880000,7],[1787964180000,7.2],[1787964480000,7.3],[1787964780000,7.3],[1787965080000,7.4],[1787965380000,7.5],[1787965680000,7.5],[1787965980000,7.5],[1787966280000,7.4],[1787966580000,7.6],[1787966880000,7.6],[1787967180000,7.6],[1787967480000,7.7],[1787967780000,7.7],[1787968080000,7.8],[1787968380000,7.9],[1787968680000,7.9],[1787968980000,7.9],[1787969280000,7.8],[1787969580000,7.9],[1787969880000,7.9],[1787970180000,7.9],[1787970480000,8],[1787970780000,8.1],[1787971080000,8.1],[1787971380000,8.2],[1787971680000,8.1],[1787971980000,8],[1787972280000,7.9],[1787972580000,7.9],[1787972880000,8],[1787973180000,7.9],[1787973480000,8],[1787973780000,8.1],[1787974080000,8.1],[1787974380000,8.1],[1787974680000,8.2],[1787974980000,8.2],[1787975280000,8.3],[1787975580000,8.3],[1787975880000,8.4],[1787976180000,8.5],[1787976480000,8.6],[1787976780000,8.8],[1787977080000,9],[1787977380000,9.2],[1787977680000,8.9],[1787977980000,8.9],[1787978280000,9.1],], 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,16.30000000],[1787954580000,16.70000000],[1787954880000,16.70000000],[1787955180000,16.96000000],[1787955480000,17.14000000],[1787955780000,16.92000000],[1787956080000,16.88000000],[1787956380000,16.92000000],[1787956680000,16.68000000],[1787956980000,16.92000000],[1787957280000,16.86000000],[1787957580000,17.02000000],[1787957880000,17.08000000],[1787958180000,16.60000000],[1787958480000,16.04000000],[1787958780000,16.22000000],[1787959080000,16.40000000],[1787959380000,16.12000000],[1787959680000,15.98000000],[1787959980000,16.14000000],[1787960280000,16.16000000],[1787960580000,16.16000000],[1787960880000,15.90000000],[1787961180000,16.02000000],[1787961480000,15.90000000],[1787961780000,15.94000000],[1787962080000,16.10000000],[1787962380000,16.06000000],[1787962680000,15.74000000],[1787962980000,15.88000000],[1787963280000,16.08000000],[1787963580000,16.32000000],[1787963880000,16.36000000],[1787964180000,16.10000000],[1787964480000,15.72000000],[1787964780000,15.64000000],[1787965080000,15.44000000],[1787965380000,15.60000000],[1787965680000,15.86000000],[1787965980000,15.90000000],[1787966280000,15.98000000],[1787966580000,15.96000000],[1787966880000,15.86000000],[1787967180000,15.78000000],[1787967480000,15.74000000],[1787967780000,15.70000000],[1787968080000,15.66000000],[1787968380000,15.56000000],[1787968680000,15.46000000],[1787968980000,15.88000000],[1787969280000,15.88000000],[1787969580000,15.90000000],[1787969880000,15.90000000],[1787970180000,15.86000000],[1787970480000,16.06000000],[1787970780000,16.10000000],[1787971080000,16.14000000],[1787971380000,15.96000000],[1787971680000,15.84000000],[1787971980000,15.84000000],[1787972280000,16.14000000],[1787972580000,16.40000000],[1787972880000,16.50000000],[1787973180000,16.66000000],[1787973480000,16.72000000],[1787973780000,16.42000000],[1787974080000,16.06000000],[1787974380000,16.20000000],[1787974680000,16.22000000],[1787974980000,16.38000000],[1787975280000,16.58000000],[1787975580000,16.72000000],[1787975880000,16.62000000],[1787976180000,16.64000000],[1787976480000,16.80000000],[1787976780000,16.94000000],[1787977080000,17.04000000],[1787977380000,17.06000000],[1787977680000,16.96000000],[1787977980000,17.12000000],[1787978280000,17.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,46.53333333],[1787954580000,46.18000000],[1787954880000,46.64000000],[1787955180000,46.46000000],[1787955480000,45.52000000],[1787955780000,46.00000000],[1787956080000,46.00000000],[1787956380000,46.00000000],[1787956680000,46.48000000],[1787956980000,46.14000000],[1787957280000,47.00000000],[1787957580000,47.00000000],[1787957880000,47.40000000],[1787958180000,48.58000000],[1787958480000,49.78000000],[1787958780000,48.52000000],[1787959080000,48.64000000],[1787959380000,50.42000000],[1787959680000,50.04000000],[1787959980000,49.92000000],[1787960280000,50.00000000],[1787960580000,50.70000000],[1787960880000,52.00000000],[1787961180000,52.02000000],[1787961480000,53.00000000],[1787961780000,52.30000000],[1787962080000,51.82000000],[1787962380000,52.08000000],[1787962680000,52.92000000],[1787962980000,53.02000000],[1787963280000,53.38000000],[1787963580000,51.42000000],[1787963880000,50.36000000],[1787964180000,51.96000000],[1787964480000,53.56000000],[1787964780000,53.00000000],[1787965080000,53.54000000],[1787965380000,53.40000000],[1787965680000,53.86000000],[1787965980000,53.88000000],[1787966280000,53.00000000],[1787966580000,54.34000000],[1787966880000,55.00000000],[1787967180000,55.00000000],[1787967480000,55.48000000],[1787967780000,56.00000000],[1787968080000,56.22000000],[1787968380000,57.00000000],[1787968680000,56.56000000],[1787968980000,54.96000000],[1787969280000,55.20000000],[1787969580000,56.06000000],[1787969880000,56.48000000],[1787970180000,57.00000000],[1787970480000,57.00000000],[1787970780000,57.62000000],[1787971080000,56.98000000],[1787971380000,57.44000000],[1787971680000,57.56000000],[1787971980000,56.02000000],[1787972280000,54.12000000],[1787972580000,54.10000000],[1787972880000,54.18000000],[1787973180000,53.48000000],[1787973480000,53.16000000],[1787973780000,54.24000000],[1787974080000,55.92000000],[1787974380000,55.36000000],[1787974680000,55.00000000],[1787974980000,54.68000000],[1787975280000,55.00000000],[1787975580000,55.00000000],[1787975880000,55.74000000],[1787976180000,55.62000000],[1787976480000,56.52000000],[1787976780000,57.82000000],[1787977080000,59.28000000],[1787977380000,60.68000000],[1787977680000,60.30000000],[1787977980000,60.28000000],[1787978280000,60.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,987.2],[1787954580000,987.3],[1787954880000,987.2],[1787955180000,987.3],[1787955480000,987.3],[1787955780000,987.2],[1787956080000,987.3],[1787956380000,987.3],[1787956680000,987.4],[1787956980000,987.4],[1787957280000,987.3],[1787957580000,987.4],[1787957880000,987.4],[1787958180000,987.4],[1787958480000,987.2],[1787958780000,987.3],[1787959080000,987.4],[1787959380000,987.2],[1787959680000,987.2],[1787959980000,987],[1787960280000,986.9],[1787960580000,986.8],[1787960880000,986.8],[1787961180000,986.8],[1787961480000,986.8],[1787961780000,986.8],[1787962080000,986.8],[1787962380000,986.7],[1787962680000,986.7],[1787962980000,986.8],[1787963280000,986.8],[1787963580000,986.7],[1787963880000,986.6],[1787964180000,986.4],[1787964480000,986.3],[1787964780000,986.2],[1787965080000,986.1],[1787965380000,986.1],[1787965680000,986.1],[1787965980000,986.1],[1787966280000,986.1],[1787966580000,986.1],[1787966880000,986.2],[1787967180000,986.2],[1787967480000,986.2],[1787967780000,986.1],[1787968080000,986.2],[1787968380000,986.2],[1787968680000,986.2],[1787968980000,986.2],[1787969280000,986.1],[1787969580000,986.1],[1787969880000,986.2],[1787970180000,986.4],[1787970480000,986.3],[1787970780000,986.2],[1787971080000,986],[1787971380000,985.7],[1787971680000,985.6],[1787971980000,985.6],[1787972280000,985.6],[1787972580000,985.6],[1787972880000,985.4],[1787973180000,985.3],[1787973480000,985.4],[1787973780000,985.3],[1787974080000,985.4],[1787974380000,985.5],[1787974680000,985.6],[1787974980000,985.5],[1787975280000,985.6],[1787975580000,985.8],[1787975880000,985.9],[1787976180000,985.9],[1787976480000,986],[1787976780000,986],[1787977080000,986],[1787977380000,986.1],[1787977680000,986.2],[1787977980000,986.2],[1787978280000,986.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,10.320000012],[1787954580000,7.992],[1787954880000,8.856],[1787955180000,9.216],[1787955480000,9.576],[1787955780000,4.824],[1787956080000,7.56],[1787956380000,4.104],[1787956680000,7.344],[1787956980000,7.488],[1787957280000,6.552],[1787957580000,7.2],[1787957880000,6.48],[1787958180000,5.112],[1787958480000,3.888],[1787958780000,4.752],[1787959080000,5.904],[1787959380000,5.04],[1787959680000,4.968],[1787959980000,5.832],[1787960280000,6.048],[1787960580000,6.408],[1787960880000,5.544],[1787961180000,7.2],[1787961480000,6.39],[1787961780000,6.624],[1787962080000,6.048],[1787962380000,4.68],[1787962680000,3.96],[1787962980000,7.488],[1787963280000,8.352],[1787963580000,6.984],[1787963880000,5.04],[1787964180000,4.392],[1787964480000,3.096],[1787964780000,3.672],[1787965080000,4.536],[1787965380000,6.048],[1787965680000,5.832],[1787965980000,6.12],[1787966280000,5.544],[1787966580000,4.968],[1787966880000,5.328],[1787967180000,5.616],[1787967480000,5.616],[1787967780000,5.616],[1787968080000,4.032],[1787968380000,3.96],[1787968680000,4.752],[1787968980000,5.616],[1787969280000,5.328],[1787969580000,5.472],[1787969880000,5.76],[1787970180000,6.264],[1787970480000,6.192],[1787970780000,6.048],[1787971080000,5.472],[1787971380000,5.04],[1787971680000,4.032],[1787971980000,4.464],[1787972280000,6.336],[1787972580000,6.336],[1787972880000,5.832],[1787973180000,5.4],[1787973480000,4.464],[1787973780000,3.744],[1787974080000,5.256],[1787974380000,5.328],[1787974680000,5.688],[1787974980000,5.472],[1787975280000,5.472],[1787975580000,3.528],[1787975880000,3.168],[1787976180000,2.376],[1787976480000,1.152],[1787976780000,1.296],[1787977080000,1.584],[1787977380000,3.24],[1787977680000,3.024],[1787977980000,3.384],[1787978280000,2.88],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,13.439999988],[1787954580000,10.008],[1787954880000,10.728],[1787955180000,11.376],[1787955480000,11.52],[1787955780000,7.488],[1787956080000,9.864],[1787956380000,6.912],[1787956680000,9.72],[1787956980000,9.648],[1787957280000,8.568],[1787957580000,8.208],[1787957880000,8.352],[1787958180000,7.488],[1787958480000,6.192],[1787958780000,6.552],[1787959080000,7.704],[1787959380000,6.984],[1787959680000,6.84],[1787959980000,7.704],[1787960280000,8.28],[1787960580000,7.92],[1787960880000,6.84],[1787961180000,7.992],[1787961480000,7.56],[1787961780000,8.136],[1787962080000,7.488],[1787962380000,6.696],[1787962680000,5.472],[1787962980000,8.712],[1787963280000,10.224],[1787963580000,9.288],[1787963880000,6.624],[1787964180000,6.12],[1787964480000,4.464],[1787964780000,5.04],[1787965080000,5.904],[1787965380000,7.056],[1787965680000,6.984],[1787965980000,7.56],[1787966280000,6.912],[1787966580000,6.048],[1787966880000,6.552],[1787967180000,6.408],[1787967480000,6.48],[1787967780000,7.272],[1787968080000,5.544],[1787968380000,5.112],[1787968680000,5.976],[1787968980000,6.624],[1787969280000,6.264],[1787969580000,6.912],[1787969880000,6.912],[1787970180000,7.056],[1787970480000,7.272],[1787970780000,6.912],[1787971080000,6.336],[1787971380000,6.12],[1787971680000,5.04],[1787971980000,5.976],[1787972280000,8.136],[1787972580000,8.352],[1787972880000,7.488],[1787973180000,8.064],[1787973480000,6.48],[1787973780000,5.04],[1787974080000,6.84],[1787974380000,6.984],[1787974680000,6.912],[1787974980000,7.632],[1787975280000,6.912],[1787975580000,4.68],[1787975880000,4.464],[1787976180000,3.312],[1787976480000,1.944],[1787976780000,2.088],[1787977080000,2.304],[1787977380000,4.392],[1787977680000,4.536],[1787977980000,4.68],[1787978280000,4.68],], 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,245.86666667],[1787954580000,256.82000000],[1787954880000,265.50000000],[1787955180000,264.48000000],[1787955480000,261.08000000],[1787955780000,228.60000000],[1787956080000,250.14000000],[1787956380000,229.68000000],[1787956680000,246.32000000],[1787956980000,247.96000000],[1787957280000,250.28000000],[1787957580000,256.76000000],[1787957880000,250.44000000],[1787958180000,260.22000000],[1787958480000,265.48000000],[1787958780000,247.76000000],[1787959080000,254.02000000],[1787959380000,270.90000000],[1787959680000,257.20000000],[1787959980000,259.44000000],[1787960280000,254.12000000],[1787960580000,255.72000000],[1787960880000,254.66000000],[1787961180000,247.96000000],[1787961480000,257.95000000],[1787961780000,261.06000000],[1787962080000,260.20000000],[1787962380000,252.36000000],[1787962680000,237.24000000],[1787962980000,247.40000000],[1787963280000,266.82000000],[1787963580000,268.02000000],[1787963880000,253.14000000],[1787964180000,265.80000000],[1787964480000,268.28000000],[1787964780000,249.38000000],[1787965080000,249.02000000],[1787965380000,245.08000000],[1787965680000,252.78000000],[1787965980000,249.76000000],[1787966280000,242.12000000],[1787966580000,253.80000000],[1787966880000,256.50000000],[1787967180000,247.20000000],[1787967480000,246.80000000],[1787967780000,263.38000000],[1787968080000,256.82000000],[1787968380000,260.84000000],[1787968680000,257.32000000],[1787968980000,243.80000000],[1787969280000,254.10000000],[1787969580000,257.78000000],[1787969880000,243.96000000],[1787970180000,247.38000000],[1787970480000,246.52000000],[1787970780000,255.36000000],[1787971080000,244.52000000],[1787971380000,253.64000000],[1787971680000,241.16000000],[1787971980000,211.12000000],[1787972280000,233.22000000],[1787972580000,236.22000000],[1787972880000,234.42000000],[1787973180000,220.76000000],[1787973480000,233.00000000],[1787973780000,257.74000000],[1787974080000,253.84000000],[1787974380000,231.08000000],[1787974680000,244.36000000],[1787974980000,240.12000000],[1787975280000,246.68000000],[1787975580000,220.96000000],[1787975880000,217.78000000],[1787976180000,190.34000000],[1787976480000,154.12000000],[1787976780000,163.44000000],[1787977080000,210.04000000],[1787977380000,103.70000000],[1787977680000,132.00000000],[1787977980000,131.12000000],[1787978280000,132.20000000],], 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; }