var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,14.66666667],[1787954580000,14.54000000],[1787954880000,14.42000000],[1787955180000,14.50000000],[1787955480000,14.48000000],[1787955780000,14.40000000],[1787956080000,14.36000000],[1787956380000,14.24000000],[1787956680000,14.20000000],[1787956980000,14.16000000],[1787957280000,14.06000000],[1787957580000,13.90000000],[1787957880000,13.96000000],[1787958180000,13.92000000],[1787958480000,13.68000000],[1787958780000,13.72000000],[1787959080000,13.74000000],[1787959380000,13.84000000],[1787959680000,13.94000000],[1787959980000,14.00000000],[1787960280000,13.94000000],[1787960580000,14.14000000],[1787960880000,14.34000000],[1787961180000,14.42000000],[1787961480000,14.46000000],[1787961780000,14.70000000],[1787962080000,14.84000000],[1787962380000,14.96000000],[1787962680000,15.10000000],[1787962980000,14.88000000],[1787963280000,14.30000000],[1787963580000,13.94000000],[1787963880000,13.54000000],[1787964180000,13.48000000],[1787964480000,13.60000000],[1787964780000,13.80000000],[1787965080000,13.84000000],[1787965380000,13.90000000],[1787965680000,13.96000000],[1787965980000,13.90000000],[1787966280000,13.82000000],[1787966580000,13.72000000],[1787966880000,13.64000000],[1787967180000,13.62000000],[1787967480000,13.60000000],[1787967780000,13.62000000],[1787968080000,13.60000000],[1787968380000,13.60000000],[1787968680000,13.60000000],[1787968980000,13.60000000],[1787969280000,13.54000000],[1787969580000,13.60000000],[1787969880000,13.52000000],[1787970180000,13.40000000],[1787970480000,13.34000000],[1787970780000,13.20000000],[1787971080000,13.20000000],[1787971380000,13.14000000],[1787971680000,13.20000000],[1787971980000,13.20000000],[1787972280000,13.18000000],[1787972580000,13.06000000],[1787972880000,13.00000000],[1787973180000,13.00000000],[1787973480000,12.98000000],[1787973780000,12.92000000],[1787974080000,12.82000000],[1787974380000,12.80000000],[1787974680000,12.80000000],[1787974980000,12.78000000],[1787975280000,12.70000000],[1787975580000,12.70000000],[1787975880000,12.74000000],[1787976180000,12.78000000],[1787976480000,12.86000000],[1787976780000,12.80000000],[1787977080000,12.80000000],[1787977380000,12.80000000],[1787977680000,12.80000000],[1787977980000,12.80000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,3.7],[1787954580000,3.8],[1787954880000,3.8],[1787955180000,3.9],[1787955480000,3.9],[1787955780000,3.9],[1787956080000,3.9],[1787956380000,3.9],[1787956680000,4],[1787956980000,4],[1787957280000,4.1],[1787957580000,4.1],[1787957880000,4.2],[1787958180000,4.2],[1787958480000,4.2],[1787958780000,4.3],[1787959080000,4.2],[1787959380000,4.2],[1787959680000,4.2],[1787959980000,4.2],[1787960280000,4.2],[1787960580000,4.2],[1787960880000,4.4],[1787961180000,4.4],[1787961480000,4.5],[1787961780000,4.6],[1787962080000,4.8],[1787962380000,4.9],[1787962680000,5],[1787962980000,4.8],[1787963280000,4.5],[1787963580000,4.5],[1787963880000,4.4],[1787964180000,4.6],[1787964480000,4.7],[1787964780000,4.9],[1787965080000,5.2],[1787965380000,5.3],[1787965680000,5.4],[1787965980000,5.3],[1787966280000,5.2],[1787966580000,5.3],[1787966880000,5.3],[1787967180000,5.5],[1787967480000,5.5],[1787967780000,5.7],[1787968080000,5.8],[1787968380000,5.8],[1787968680000,5.8],[1787968980000,5.8],[1787969280000,5.7],[1787969580000,5.7],[1787969880000,5.6],[1787970180000,5.6],[1787970480000,5.6],[1787970780000,5.6],[1787971080000,5.6],[1787971380000,5.7],[1787971680000,5.8],[1787971980000,6],[1787972280000,5.9],[1787972580000,5.8],[1787972880000,5.6],[1787973180000,5.5],[1787973480000,5.4],[1787973780000,5.3],[1787974080000,5.4],[1787974380000,5.4],[1787974680000,5.2],[1787974980000,5.3],[1787975280000,5.2],[1787975580000,5.2],[1787975880000,5.1],[1787976180000,5.1],[1787976480000,5.1],[1787976780000,5.2],[1787977080000,5.2],[1787977380000,5.3],[1787977680000,5.5],[1787977980000,5.6],], 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,14.03333333],[1787954580000,13.96000000],[1787954880000,13.84000000],[1787955180000,13.92000000],[1787955480000,13.86000000],[1787955780000,13.80000000],[1787956080000,13.70000000],[1787956380000,13.54000000],[1787956680000,13.64000000],[1787956980000,13.54000000],[1787957280000,13.48000000],[1787957580000,13.24000000],[1787957880000,13.44000000],[1787958180000,13.32000000],[1787958480000,13.04000000],[1787958780000,13.18000000],[1787959080000,13.30000000],[1787959380000,13.44000000],[1787959680000,13.50000000],[1787959980000,13.56000000],[1787960280000,13.50000000],[1787960580000,13.84000000],[1787960880000,14.04000000],[1787961180000,14.00000000],[1787961480000,14.14000000],[1787961780000,14.40000000],[1787962080000,14.52000000],[1787962380000,14.64000000],[1787962680000,14.78000000],[1787962980000,14.36000000],[1787963280000,13.86000000],[1787963580000,13.48000000],[1787963880000,13.12000000],[1787964180000,13.14000000],[1787964480000,13.38000000],[1787964780000,13.50000000],[1787965080000,13.58000000],[1787965380000,13.56000000],[1787965680000,13.64000000],[1787965980000,13.50000000],[1787966280000,13.46000000],[1787966580000,13.38000000],[1787966880000,13.28000000],[1787967180000,13.28000000],[1787967480000,13.22000000],[1787967780000,13.24000000],[1787968080000,13.24000000],[1787968380000,13.30000000],[1787968680000,13.30000000],[1787968980000,13.32000000],[1787969280000,13.26000000],[1787969580000,13.38000000],[1787969880000,13.28000000],[1787970180000,13.10000000],[1787970480000,13.04000000],[1787970780000,12.90000000],[1787971080000,12.92000000],[1787971380000,12.88000000],[1787971680000,12.96000000],[1787971980000,12.98000000],[1787972280000,12.96000000],[1787972580000,12.84000000],[1787972880000,12.76000000],[1787973180000,12.76000000],[1787973480000,12.74000000],[1787973780000,12.66000000],[1787974080000,12.58000000],[1787974380000,12.56000000],[1787974680000,12.64000000],[1787974980000,12.50000000],[1787975280000,12.48000000],[1787975580000,12.44000000],[1787975880000,12.52000000],[1787976180000,12.60000000],[1787976480000,12.74000000],[1787976780000,12.68000000],[1787977080000,12.76000000],[1787977380000,12.78000000],[1787977680000,12.80000000],[1787977980000,12.86000000],], 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,48.06666667],[1787954580000,48.70000000],[1787954880000,49.30000000],[1787955180000,49.14000000],[1787955480000,49.16000000],[1787955780000,49.42000000],[1787956080000,49.76000000],[1787956380000,50.24000000],[1787956680000,50.48000000],[1787956980000,50.72000000],[1787957280000,51.28000000],[1787957580000,51.96000000],[1787957880000,52.02000000],[1787958180000,52.16000000],[1787958480000,53.14000000],[1787958780000,53.08000000],[1787959080000,52.94000000],[1787959380000,52.48000000],[1787959680000,52.12000000],[1787959980000,51.98000000],[1787960280000,52.10000000],[1787960580000,51.62000000],[1787960880000,51.36000000],[1787961180000,51.30000000],[1787961480000,51.46000000],[1787961780000,51.08000000],[1787962080000,51.16000000],[1787962380000,51.12000000],[1787962680000,51.24000000],[1787962980000,51.04000000],[1787963280000,52.16000000],[1787963580000,53.12000000],[1787963880000,54.36000000],[1787964180000,55.12000000],[1787964480000,55.28000000],[1787964780000,55.34000000],[1787965080000,56.12000000],[1787965380000,56.36000000],[1787965680000,56.54000000],[1787965980000,56.40000000],[1787966280000,56.48000000],[1787966580000,57.04000000],[1787966880000,57.38000000],[1787967180000,58.08000000],[1787967480000,58.44000000],[1787967780000,59.12000000],[1787968080000,59.40000000],[1787968380000,59.46000000],[1787968680000,59.34000000],[1787968980000,59.46000000],[1787969280000,59.30000000],[1787969580000,59.16000000],[1787969880000,58.84000000],[1787970180000,59.50000000],[1787970480000,59.90000000],[1787970780000,60.20000000],[1787971080000,60.34000000],[1787971380000,60.80000000],[1787971680000,61.12000000],[1787971980000,61.74000000],[1787972280000,61.74000000],[1787972580000,61.66000000],[1787972880000,61.06000000],[1787973180000,60.62000000],[1787973480000,60.46000000],[1787973780000,60.32000000],[1787974080000,60.80000000],[1787974380000,61.10000000],[1787974680000,60.34000000],[1787974980000,60.46000000],[1787975280000,60.38000000],[1787975580000,60.38000000],[1787975880000,60.10000000],[1787976180000,60.00000000],[1787976480000,59.70000000],[1787976780000,60.16000000],[1787977080000,60.36000000],[1787977380000,60.64000000],[1787977680000,61.32000000],[1787977980000,61.88000000],], 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],[1787954580000,1016.1],[1787954880000,1016.2],[1787955180000,1016.1],[1787955480000,1016.1],[1787955780000,1016],[1787956080000,1016.1],[1787956380000,1016.2],[1787956680000,1016.1],[1787956980000,1016.2],[1787957280000,1016.2],[1787957580000,1016.3],[1787957880000,1016.2],[1787958180000,1016.1],[1787958480000,1016.2],[1787958780000,1016.1],[1787959080000,1015.9],[1787959380000,1015.8],[1787959680000,1015.6],[1787959980000,1015.5],[1787960280000,1015.5],[1787960580000,1015.3],[1787960880000,1015.1],[1787961180000,1015],[1787961480000,1015],[1787961780000,1014.7],[1787962080000,1014.6],[1787962380000,1014.5],[1787962680000,1014.4],[1787962980000,1014.5],[1787963280000,1014.8],[1787963580000,1014.9],[1787963880000,1014.8],[1787964180000,1014.6],[1787964480000,1014.5],[1787964780000,1014.3],[1787965080000,1014.2],[1787965380000,1014.2],[1787965680000,1014.1],[1787965980000,1014.2],[1787966280000,1014.1],[1787966580000,1014.2],[1787966880000,1014.1],[1787967180000,1014],[1787967480000,1014],[1787967780000,1014.1],[1787968080000,1014.2],[1787968380000,1014.2],[1787968680000,1014.1],[1787968980000,1014.1],[1787969280000,1014.2],[1787969580000,1014.2],[1787969880000,1014.1],[1787970180000,1014.1],[1787970480000,1013.9],[1787970780000,1013.7],[1787971080000,1013.5],[1787971380000,1013.5],[1787971680000,1013.4],[1787971980000,1013.4],[1787972280000,1013.2],[1787972580000,1013.1],[1787972880000,1013.1],[1787973180000,1013],[1787973480000,1013.1],[1787973780000,1013.2],[1787974080000,1013.4],[1787974380000,1013.5],[1787974680000,1013.5],[1787974980000,1013.5],[1787975280000,1013.7],[1787975580000,1013.7],[1787975880000,1013.8],[1787976180000,1013.9],[1787976480000,1013.8],[1787976780000,1013.8],[1787977080000,1013.9],[1787977380000,1014],[1787977680000,1014],[1787977980000,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,17.160000012],[1787954580000,20.16],[1787954880000,21.672],[1787955180000,22.104],[1787955480000,22.248],[1787955780000,21.744],[1787956080000,20.808],[1787956380000,20.592],[1787956680000,23.256],[1787956980000,23.616],[1787957280000,24.12],[1787957580000,21.312],[1787957880000,22.32],[1787958180000,20.808],[1787958480000,22.032],[1787958780000,24.408],[1787959080000,26.856],[1787959380000,25.488],[1787959680000,27.072],[1787959980000,26.568],[1787960280000,24.696],[1787960580000,17.28],[1787960880000,15.912],[1787961180000,14.76],[1787961480000,12.96],[1787961780000,14.184],[1787962080000,12.744],[1787962380000,11.52],[1787962680000,12.384],[1787962980000,11.52],[1787963280000,14.328],[1787963580000,16.848],[1787963880000,14.616],[1787964180000,13.824],[1787964480000,15.84],[1787964780000,15.768],[1787965080000,14.832],[1787965380000,14.256],[1787965680000,13.032],[1787965980000,12.456],[1787966280000,11.88],[1787966580000,12.888],[1787966880000,14.976],[1787967180000,13.032],[1787967480000,13.752],[1787967780000,15.048],[1787968080000,13.68],[1787968380000,12.312],[1787968680000,11.664],[1787968980000,12.312],[1787969280000,12.096],[1787969580000,11.664],[1787969880000,11.592],[1787970180000,12.672],[1787970480000,13.176],[1787970780000,13.752],[1787971080000,14.256],[1787971380000,13.32],[1787971680000,14.472],[1787971980000,14.472],[1787972280000,17.784],[1787972580000,21.312],[1787972880000,19.296],[1787973180000,17.784],[1787973480000,19.368],[1787973780000,19.584],[1787974080000,17.352],[1787974380000,14.328],[1787974680000,15.768],[1787974980000,14.256],[1787975280000,13.968],[1787975580000,12.96],[1787975880000,14.112],[1787976180000,13.464],[1787976480000,13.536],[1787976780000,11.736],[1787977080000,13.824],[1787977380000,15.408],[1787977680000,19.008],[1787977980000,16.776],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,25.319999988],[1787954580000,30.168],[1787954880000,30.024],[1787955180000,30.312],[1787955480000,29.52],[1787955780000,29.16],[1787956080000,27.576],[1787956380000,28.008],[1787956680000,29.592],[1787956980000,31.248],[1787957280000,30.888],[1787957580000,29.16],[1787957880000,30.744],[1787958180000,28.152],[1787958480000,26.496],[1787958780000,29.448],[1787959080000,32.832],[1787959380000,30.528],[1787959680000,32.256],[1787959980000,31.608],[1787960280000,30.384],[1787960580000,25.56],[1787960880000,24.696],[1787961180000,24.336],[1787961480000,20.52],[1787961780000,24.912],[1787962080000,19.296],[1787962380000,17.424],[1787962680000,19.296],[1787962980000,18.432],[1787963280000,23.256],[1787963580000,26.856],[1787963880000,22.608],[1787964180000,21.456],[1787964480000,28.152],[1787964780000,23.76],[1787965080000,24.912],[1787965380000,22.752],[1787965680000,20.736],[1787965980000,19.872],[1787966280000,17.064],[1787966580000,18.504],[1787966880000,23.256],[1787967180000,18.936],[1787967480000,20.16],[1787967780000,27.792],[1787968080000,22.752],[1787968380000,19.152],[1787968680000,18.36],[1787968980000,19.08],[1787969280000,18.72],[1787969580000,17.64],[1787969880000,18.648],[1787970180000,20.952],[1787970480000,20.088],[1787970780000,21.24],[1787971080000,22.176],[1787971380000,19.872],[1787971680000,21.096],[1787971980000,21.096],[1787972280000,30.528],[1787972580000,37.944],[1787972880000,33.192],[1787973180000,31.32],[1787973480000,36.36],[1787973780000,35.136],[1787974080000,30.456],[1787974380000,25.92],[1787974680000,25.056],[1787974980000,25.416],[1787975280000,23.544],[1787975580000,19.152],[1787975880000,20.592],[1787976180000,21.168],[1787976480000,21.744],[1787976780000,21.024],[1787977080000,21.888],[1787977380000,24.624],[1787977680000,29.592],[1787977980000,28.008],], 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,169.70000000],[1787954580000,170.80000000],[1787954880000,173.28000000],[1787955180000,174.90000000],[1787955480000,178.30000000],[1787955780000,177.86000000],[1787956080000,177.00000000],[1787956380000,177.88000000],[1787956680000,178.10000000],[1787956980000,181.28000000],[1787957280000,180.40000000],[1787957580000,180.06000000],[1787957880000,181.44000000],[1787958180000,179.94000000],[1787958480000,179.20000000],[1787958780000,188.24000000],[1787959080000,188.66000000],[1787959380000,196.22000000],[1787959680000,188.98000000],[1787959980000,192.24000000],[1787960280000,196.18000000],[1787960580000,208.44000000],[1787960880000,213.56000000],[1787961180000,211.40000000],[1787961480000,219.40000000],[1787961780000,219.52000000],[1787962080000,215.86000000],[1787962380000,228.56000000],[1787962680000,232.10000000],[1787962980000,229.82000000],[1787963280000,213.86000000],[1787963580000,207.92000000],[1787963880000,211.90000000],[1787964180000,215.34000000],[1787964480000,213.86000000],[1787964780000,223.20000000],[1787965080000,226.84000000],[1787965380000,220.84000000],[1787965680000,224.20000000],[1787965980000,224.78000000],[1787966280000,229.08000000],[1787966580000,221.34000000],[1787966880000,207.68000000],[1787967180000,210.76000000],[1787967480000,204.66000000],[1787967780000,215.08000000],[1787968080000,213.34000000],[1787968380000,217.04000000],[1787968680000,221.80000000],[1787968980000,223.26000000],[1787969280000,224.54000000],[1787969580000,216.96000000],[1787969880000,220.04000000],[1787970180000,222.04000000],[1787970480000,220.90000000],[1787970780000,219.02000000],[1787971080000,230.94000000],[1787971380000,215.26000000],[1787971680000,223.32000000],[1787971980000,225.08000000],[1787972280000,221.60000000],[1787972580000,214.44000000],[1787972880000,214.56000000],[1787973180000,221.42000000],[1787973480000,210.16000000],[1787973780000,213.36000000],[1787974080000,222.64000000],[1787974380000,225.20000000],[1787974680000,227.36000000],[1787974980000,225.72000000],[1787975280000,232.90000000],[1787975580000,229.64000000],[1787975880000,219.74000000],[1787976180000,218.64000000],[1787976480000,218.94000000],[1787976780000,217.22000000],[1787977080000,217.82000000],[1787977380000,214.10000000],[1787977680000,215.10000000],[1787977980000,213.42000000],], 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; }