var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,12.46666667],[1787954580000,12.68000000],[1787954880000,12.80000000],[1787955180000,12.88000000],[1787955480000,12.96000000],[1787955780000,12.80000000],[1787956080000,12.88000000],[1787956380000,12.98000000],[1787956680000,13.02000000],[1787956980000,13.24000000],[1787957280000,13.42000000],[1787957580000,13.56000000],[1787957880000,13.62000000],[1787958180000,13.62000000],[1787958480000,13.42000000],[1787958780000,13.32000000],[1787959080000,13.26000000],[1787959380000,13.06000000],[1787959680000,12.90000000],[1787959980000,12.86000000],[1787960280000,13.04000000],[1787960580000,13.10000000],[1787960880000,13.12000000],[1787961180000,13.24000000],[1787961480000,13.30000000],[1787961780000,13.24000000],[1787962080000,13.20000000],[1787962380000,13.30000000],[1787962680000,14.26000000],[1787962980000,14.78000000],[1787963280000,14.60000000],[1787963580000,14.24000000],[1787963880000,14.04000000],[1787964180000,13.78000000],[1787964480000,13.72000000],[1787964780000,13.68000000],[1787965080000,13.56000000],[1787965380000,13.50000000],[1787965680000,13.56000000],[1787965980000,13.62000000],[1787966280000,13.80000000],[1787966580000,13.80000000],[1787966880000,14.04000000],[1787967180000,14.36000000],[1787967480000,14.44000000],[1787967780000,14.44000000],[1787968080000,14.30000000],[1787968380000,14.34000000],[1787968680000,14.32000000],[1787968980000,14.76000000],[1787969280000,15.32000000],[1787969580000,15.90000000],[1787969880000,17.54000000],[1787970180000,18.04000000],[1787970480000,18.68000000],[1787970780000,19.28000000],[1787971080000,19.60000000],[1787971380000,19.88000000],[1787971680000,19.86000000],[1787971980000,19.64000000],[1787972280000,19.06000000],[1787972580000,17.92000000],[1787972880000,17.26000000],[1787973180000,18.38000000],[1787973480000,19.32000000],[1787973780000,19.70000000],[1787974080000,20.06000000],[1787974380000,18.88000000],[1787974680000,18.22000000],[1787974980000,18.86000000],[1787975280000,18.28000000],[1787975580000,17.52000000],[1787975880000,16.94000000],[1787976180000,16.32000000],[1787976480000,15.82000000],[1787976780000,15.42000000],[1787977080000,15.08000000],[1787977380000,14.94000000],[1787977680000,14.78000000],[1787977980000,14.66000000],[1787978280000,14.56666667],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,8.4],[1787954580000,8.5],[1787954880000,8.6],[1787955180000,8.6],[1787955480000,8.7],[1787955780000,8.6],[1787956080000,8.7],[1787956380000,8.7],[1787956680000,8.9],[1787956980000,8.8],[1787957280000,8.9],[1787957580000,8.9],[1787957880000,9],[1787958180000,9.1],[1787958480000,9],[1787958780000,9],[1787959080000,9],[1787959380000,9],[1787959680000,8.9],[1787959980000,8.9],[1787960280000,8.9],[1787960580000,9.1],[1787960880000,9.3],[1787961180000,9.3],[1787961480000,9.4],[1787961780000,9.5],[1787962080000,9.5],[1787962380000,9.4],[1787962680000,9.7],[1787962980000,10.1],[1787963280000,10],[1787963580000,9.8],[1787963880000,9.8],[1787964180000,9.7],[1787964480000,9.7],[1787964780000,9.7],[1787965080000,9.8],[1787965380000,9.9],[1787965680000,10],[1787965980000,10],[1787966280000,10.2],[1787966580000,10.3],[1787966880000,10.3],[1787967180000,10.5],[1787967480000,10.6],[1787967780000,10.6],[1787968080000,10.7],[1787968380000,10.7],[1787968680000,10.6],[1787968980000,10.4],[1787969280000,10.7],[1787969580000,10.5],[1787969880000,10.9],[1787970180000,11.1],[1787970480000,11.4],[1787970780000,11.6],[1787971080000,11.6],[1787971380000,11.7],[1787971680000,11.9],[1787971980000,11.8],[1787972280000,10.2],[1787972580000,9],[1787972880000,10.4],[1787973180000,11.4],[1787973480000,11.7],[1787973780000,11.8],[1787974080000,11.4],[1787974380000,9.2],[1787974680000,9.9],[1787974980000,10.1],[1787975280000,9.1],[1787975580000,8.4],[1787975880000,8],[1787976180000,8.3],[1787976480000,8.8],[1787976780000,8.7],[1787977080000,9],[1787977380000,9.3],[1787977680000,9.7],[1787977980000,9.7],[1787978280000,9.7],], 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.73333333],[1787954580000,11.28000000],[1787954880000,11.34000000],[1787955180000,11.86000000],[1787955480000,11.96000000],[1787955780000,11.56000000],[1787956080000,11.78000000],[1787956380000,11.78000000],[1787956680000,12.18000000],[1787956980000,12.42000000],[1787957280000,12.16000000],[1787957580000,12.40000000],[1787957880000,12.52000000],[1787958180000,12.28000000],[1787958480000,11.80000000],[1787958780000,11.52000000],[1787959080000,11.36000000],[1787959380000,11.32000000],[1787959680000,11.40000000],[1787959980000,11.50000000],[1787960280000,11.88000000],[1787960580000,11.72000000],[1787960880000,11.54000000],[1787961180000,11.74000000],[1787961480000,11.62000000],[1787961780000,11.74000000],[1787962080000,11.76000000],[1787962380000,12.36000000],[1787962680000,13.44000000],[1787962980000,13.72000000],[1787963280000,13.08000000],[1787963580000,12.76000000],[1787963880000,12.44000000],[1787964180000,12.28000000],[1787964480000,12.12000000],[1787964780000,12.34000000],[1787965080000,12.42000000],[1787965380000,12.52000000],[1787965680000,12.84000000],[1787965980000,12.86000000],[1787966280000,12.88000000],[1787966580000,12.92000000],[1787966880000,13.56000000],[1787967180000,13.92000000],[1787967480000,13.92000000],[1787967780000,13.78000000],[1787968080000,13.62000000],[1787968380000,13.70000000],[1787968680000,13.84000000],[1787968980000,14.70000000],[1787969280000,14.58000000],[1787969580000,15.46000000],[1787969880000,17.04000000],[1787970180000,16.70000000],[1787970480000,17.66000000],[1787970780000,18.10000000],[1787971080000,18.32000000],[1787971380000,18.38000000],[1787971680000,17.64000000],[1787971980000,17.20000000],[1787972280000,16.68000000],[1787972580000,15.50000000],[1787972880000,15.36000000],[1787973180000,17.88000000],[1787973480000,18.36000000],[1787973780000,18.54000000],[1787974080000,18.50000000],[1787974380000,16.68000000],[1787974680000,16.80000000],[1787974980000,18.06000000],[1787975280000,16.92000000],[1787975580000,16.12000000],[1787975880000,15.66000000],[1787976180000,14.90000000],[1787976480000,14.42000000],[1787976780000,14.12000000],[1787977080000,13.92000000],[1787977380000,13.90000000],[1787977680000,13.84000000],[1787977980000,13.78000000],[1787978280000,13.80000000],], 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,76.33333333],[1787954580000,75.86000000],[1787954880000,75.74000000],[1787955180000,75.64000000],[1787955480000,75.48000000],[1787955780000,75.62000000],[1787956080000,75.78000000],[1787956380000,75.44000000],[1787956680000,76.10000000],[1787956980000,74.90000000],[1787957280000,74.08000000],[1787957580000,73.68000000],[1787957880000,73.82000000],[1787958180000,74.34000000],[1787958480000,74.88000000],[1787958780000,75.26000000],[1787959080000,75.74000000],[1787959380000,76.40000000],[1787959680000,77.06000000],[1787959980000,77.20000000],[1787960280000,76.36000000],[1787960580000,77.04000000],[1787960880000,77.58000000],[1787961180000,77.12000000],[1787961480000,77.64000000],[1787961780000,78.06000000],[1787962080000,78.42000000],[1787962380000,77.62000000],[1787962680000,74.18000000],[1787962980000,73.62000000],[1787963280000,74.28000000],[1787963580000,74.76000000],[1787963880000,75.88000000],[1787964180000,76.54000000],[1787964480000,77.06000000],[1787964780000,76.98000000],[1787965080000,78.20000000],[1787965380000,79.08000000],[1787965680000,79.50000000],[1787965980000,79.04000000],[1787966280000,79.02000000],[1787966580000,79.40000000],[1787966880000,78.52000000],[1787967180000,77.90000000],[1787967480000,77.92000000],[1787967780000,77.90000000],[1787968080000,79.02000000],[1787968380000,79.04000000],[1787968680000,78.48000000],[1787968980000,75.12000000],[1787969280000,74.34000000],[1787969580000,70.56000000],[1787969880000,65.42000000],[1787970180000,63.88000000],[1787970480000,62.70000000],[1787970780000,61.16000000],[1787971080000,60.22000000],[1787971380000,59.52000000],[1787971680000,60.28000000],[1787971980000,60.72000000],[1787972280000,56.50000000],[1787972580000,56.06000000],[1787972880000,64.44000000],[1787973180000,64.08000000],[1787973480000,61.68000000],[1787973780000,60.32000000],[1787974080000,57.72000000],[1787974380000,53.56000000],[1787974680000,58.50000000],[1787974980000,56.86000000],[1787975280000,55.40000000],[1787975580000,55.20000000],[1787975880000,55.88000000],[1787976180000,59.10000000],[1787976480000,63.32000000],[1787976780000,64.50000000],[1787977080000,67.44000000],[1787977380000,69.42000000],[1787977680000,71.80000000],[1787977980000,72.56000000],[1787978280000,72.96666667],], 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,1016.4],[1787954580000,1016.3],[1787954880000,1016.2],[1787955180000,1016.2],[1787955480000,1016.3],[1787955780000,1016.2],[1787956080000,1016.1],[1787956380000,1015.9],[1787956680000,1015.9],[1787956980000,1015.8],[1787957280000,1015.7],[1787957580000,1015.5],[1787957880000,1015.3],[1787958180000,1015.1],[1787958480000,1015.1],[1787958780000,1015],[1787959080000,1014.9],[1787959380000,1015],[1787959680000,1015.1],[1787959980000,1015.2],[1787960280000,1015],[1787960580000,1015],[1787960880000,1014.8],[1787961180000,1014.6],[1787961480000,1014.6],[1787961780000,1014.5],[1787962080000,1014.4],[1787962380000,1014.3],[1787962680000,1013.6],[1787962980000,1013.3],[1787963280000,1013.2],[1787963580000,1013.3],[1787963880000,1013.2],[1787964180000,1013.2],[1787964480000,1013.5],[1787964780000,1013.6],[1787965080000,1013.7],[1787965380000,1013.7],[1787965680000,1013.6],[1787965980000,1013.5],[1787966280000,1013.5],[1787966580000,1013.3],[1787966880000,1013],[1787967180000,1012.7],[1787967480000,1012.6],[1787967780000,1012.5],[1787968080000,1012.6],[1787968380000,1012.5],[1787968680000,1012.6],[1787968980000,1012.4],[1787969280000,1011.8],[1787969580000,1011.6],[1787969880000,1010.8],[1787970180000,1010.4],[1787970480000,1010],[1787970780000,1009.7],[1787971080000,1009.6],[1787971380000,1009.5],[1787971680000,1009.6],[1787971980000,1009.9],[1787972280000,1010.2],[1787972580000,1010.4],[1787972880000,1010.4],[1787973180000,1009.8],[1787973480000,1009.5],[1787973780000,1009.6],[1787974080000,1009.8],[1787974380000,1010.6],[1787974680000,1011.1],[1787974980000,1011.3],[1787975280000,1011.9],[1787975580000,1012.5],[1787975880000,1012.9],[1787976180000,1013.1],[1787976480000,1013.4],[1787976780000,1013.7],[1787977080000,1013.8],[1787977380000,1014],[1787977680000,1014],[1787977980000,1014.1],[1787978280000,1014.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,4.920000012],[1787954580000,5.112],[1787954880000,3.96],[1787955180000,6.192],[1787955480000,4.68],[1787955780000,3.456],[1787956080000,3.744],[1787956380000,4.536],[1787956680000,4.68],[1787956980000,5.328],[1787957280000,4.032],[1787957580000,6.12],[1787957880000,5.184],[1787958180000,4.176],[1787958480000,3.456],[1787958780000,2.88],[1787959080000,4.32],[1787959380000,1.944],[1787959680000,2.664],[1787959980000,3.6],[1787960280000,3.96],[1787960580000,3.888],[1787960880000,3.24],[1787961180000,2.808],[1787961480000,2.448],[1787961780000,2.16],[1787962080000,3.168],[1787962380000,5.544],[1787962680000,4.608],[1787962980000,3.96],[1787963280000,4.248],[1787963580000,3.816],[1787963880000,3.456],[1787964180000,3.744],[1787964480000,2.52],[1787964780000,1.872],[1787965080000,2.736],[1787965380000,2.664],[1787965680000,2.448],[1787965980000,3.384],[1787966280000,2.88],[1787966580000,3.744],[1787966880000,5.256],[1787967180000,4.824],[1787967480000,4.176],[1787967780000,4.536],[1787968080000,3.312],[1787968380000,3.24],[1787968680000,4.32],[1787968980000,7.056],[1787969280000,3.744],[1787969580000,8.352],[1787969880000,7.056],[1787970180000,5.976],[1787970480000,8.28],[1787970780000,6.84],[1787971080000,9.504],[1787971380000,5.4],[1787971680000,4.392],[1787971980000,4.608],[1787972280000,4.32],[1787972580000,4.536],[1787972880000,7.776],[1787973180000,12.744],[1787973480000,8.784],[1787973780000,12.96],[1787974080000,5.328],[1787974380000,6.552],[1787974680000,5.256],[1787974980000,9.72],[1787975280000,11.088],[1787975580000,7.992],[1787975880000,8.424],[1787976180000,6.048],[1787976480000,5.76],[1787976780000,5.616],[1787977080000,3.528],[1787977380000,2.304],[1787977680000,1.944],[1787977980000,2.304],[1787978280000,3.120000012],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,8.039999988],[1787954580000,7.632],[1787954880000,6.264],[1787955180000,9.36],[1787955480000,6.984],[1787955780000,4.896],[1787956080000,6.552],[1787956380000,8.064],[1787956680000,6.84],[1787956980000,8.208],[1787957280000,6.552],[1787957580000,10.008],[1787957880000,8.568],[1787958180000,6.84],[1787958480000,5.112],[1787958780000,4.68],[1787959080000,6.912],[1787959380000,3.528],[1787959680000,4.32],[1787959980000,6.048],[1787960280000,5.688],[1787960580000,6.048],[1787960880000,7.344],[1787961180000,5.184],[1787961480000,3.672],[1787961780000,3.744],[1787962080000,4.824],[1787962380000,9.432],[1787962680000,7.848],[1787962980000,6.624],[1787963280000,5.976],[1787963580000,5.76],[1787963880000,5.256],[1787964180000,5.328],[1787964480000,4.104],[1787964780000,2.52],[1787965080000,4.248],[1787965380000,4.104],[1787965680000,4.536],[1787965980000,5.256],[1787966280000,4.176],[1787966580000,6.552],[1787966880000,7.992],[1787967180000,8.496],[1787967480000,7.272],[1787967780000,6.192],[1787968080000,5.328],[1787968380000,5.184],[1787968680000,6.48],[1787968980000,9.864],[1787969280000,5.4],[1787969580000,13.104],[1787969880000,11.736],[1787970180000,10.656],[1787970480000,13.824],[1787970780000,11.808],[1787971080000,16.056],[1787971380000,9.504],[1787971680000,7.272],[1787971980000,7.632],[1787972280000,6.408],[1787972580000,6.552],[1787972880000,13.464],[1787973180000,21.744],[1787973480000,17.568],[1787973780000,20.52],[1787974080000,9.432],[1787974380000,10.584],[1787974680000,9.72],[1787974980000,17.424],[1787975280000,20.304],[1787975580000,13.392],[1787975880000,15.192],[1787976180000,8.208],[1787976480000,8.496],[1787976780000,7.344],[1787977080000,4.752],[1787977380000,3.096],[1787977680000,2.736],[1787977980000,3.168],[1787978280000,4.32],], 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,174.53333333],[1787954580000,183.56000000],[1787954880000,167.94000000],[1787955180000,187.38000000],[1787955480000,147.84000000],[1787955780000,176.66000000],[1787956080000,170.88000000],[1787956380000,171.10000000],[1787956680000,176.88000000],[1787956980000,176.08000000],[1787957280000,166.50000000],[1787957580000,184.54000000],[1787957880000,172.96000000],[1787958180000,168.18000000],[1787958480000,172.02000000],[1787958780000,173.96000000],[1787959080000,139.52000000],[1787959380000,134.04000000],[1787959680000,143.30000000],[1787959980000,230.44000000],[1787960280000,148.80000000],[1787960580000,180.84000000],[1787960880000,175.56000000],[1787961180000,173.26000000],[1787961480000,160.08000000],[1787961780000,131.22000000],[1787962080000,231.74000000],[1787962380000,183.60000000],[1787962680000,173.76000000],[1787962980000,238.56000000],[1787963280000,282.34000000],[1787963580000,267.24000000],[1787963880000,107.04000000],[1787964180000,167.14000000],[1787964480000,163.14000000],[1787964780000,138.46000000],[1787965080000,172.42000000],[1787965380000,183.78000000],[1787965680000,216.84000000],[1787965980000,144.98000000],[1787966280000,278.00000000],[1787966580000,206.84000000],[1787966880000,159.72000000],[1787967180000,161.42000000],[1787967480000,145.88000000],[1787967780000,86.02000000],[1787968080000,222.74000000],[1787968380000,191.74000000],[1787968680000,114.68000000],[1787968980000,71.94000000],[1787969280000,232.74000000],[1787969580000,276.32000000],[1787969880000,223.08000000],[1787970180000,162.96000000],[1787970480000,186.00000000],[1787970780000,179.92000000],[1787971080000,150.60000000],[1787971380000,195.60000000],[1787971680000,188.40000000],[1787971980000,236.60000000],[1787972280000,27.70000000],[1787972580000,151.58000000],[1787972880000,171.26000000],[1787973180000,185.42000000],[1787973480000,181.76000000],[1787973780000,192.44000000],[1787974080000,199.22000000],[1787974380000,257.54000000],[1787974680000,252.56000000],[1787974980000,256.58000000],[1787975280000,313.84000000],[1787975580000,94.56000000],[1787975880000,148.20000000],[1787976180000,142.46000000],[1787976480000,13.16000000],[1787976780000,250.38000000],[1787977080000,295.14000000],[1787977380000,172.46000000],[1787977680000,156.10000000],[1787977980000,152.68000000],[1787978280000,147.76666667],], 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],[1787960040000,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],[1787972040000,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; }