var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,21.60000000],[1787954580000,21.52000000],[1787954880000,21.50000000],[1787955180000,21.48000000],[1787955480000,21.60000000],[1787955780000,21.52000000],[1787956080000,21.32000000],[1787956380000,21.20000000],[1787956680000,21.10000000],[1787956980000,21.06000000],[1787957280000,21.00000000],[1787957580000,20.94000000],[1787957880000,21.00000000],[1787958180000,21.02000000],[1787958480000,21.10000000],[1787958780000,21.10000000],[1787959080000,21.04000000],[1787959380000,20.98000000],[1787959680000,20.90000000],[1787959980000,20.82000000],[1787960280000,20.78000000],[1787960580000,20.60000000],[1787960880000,20.74000000],[1787961180000,20.68000000],[1787961480000,20.52000000],[1787961780000,20.50000000],[1787962080000,20.46000000],[1787962380000,20.30000000],[1787962680000,20.08000000],[1787962980000,19.80000000],[1787963280000,19.40000000],[1787963580000,19.02000000],[1787963880000,18.82000000],[1787964180000,18.76000000],[1787964480000,18.64000000],[1787964780000,18.30000000],[1787965080000,17.90000000],[1787965380000,17.46000000],[1787965680000,17.18000000],[1787965980000,17.00000000],[1787966280000,16.72000000],[1787966580000,16.52000000],[1787966880000,16.14000000],[1787967180000,15.84000000],[1787967480000,15.58000000],[1787967780000,15.34000000],[1787968080000,15.14000000],[1787968380000,14.96000000],[1787968680000,14.82000000],[1787968980000,14.76000000],[1787969280000,14.70000000],[1787969580000,14.70000000],[1787969880000,14.70000000],[1787970180000,14.68000000],[1787970480000,14.70000000],[1787970780000,14.70000000],[1787971080000,14.70000000],[1787971380000,14.70000000],[1787971680000,14.70000000],[1787971980000,14.70000000],[1787972280000,14.70000000],[1787972580000,14.70000000],[1787972880000,14.70000000],[1787973180000,14.70000000],[1787973480000,14.74000000],[1787973780000,14.80000000],[1787974080000,14.82000000],[1787974380000,14.90000000],[1787974680000,14.86000000],[1787974980000,14.72000000],[1787975280000,14.70000000],[1787975580000,14.70000000],[1787975880000,14.68000000],[1787976180000,14.56000000],[1787976480000,14.50000000],[1787976780000,14.60000000],[1787977080000,14.60000000],[1787977380000,14.56000000],[1787977680000,14.50000000],[1787977980000,14.48000000],[1787978280000,14.40000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,7.3],[1787954580000,7.2],[1787954880000,7.2],[1787955180000,6.9],[1787955480000,6.9],[1787955780000,6.9],[1787956080000,6.9],[1787956380000,6.8],[1787956680000,6.7],[1787956980000,6.7],[1787957280000,6.6],[1787957580000,6.5],[1787957880000,6.4],[1787958180000,6.4],[1787958480000,6.3],[1787958780000,6.3],[1787959080000,6.2],[1787959380000,6.2],[1787959680000,6.1],[1787959980000,6.1],[1787960280000,6.1],[1787960580000,6.5],[1787960880000,6.5],[1787961180000,6.6],[1787961480000,6.7],[1787961780000,6.9],[1787962080000,10.4],[1787962380000,13.2],[1787962680000,14],[1787962980000,14.6],[1787963280000,15.5],[1787963580000,16.2],[1787963880000,16.4],[1787964180000,16.6],[1787964480000,16.7],[1787964780000,17],[1787965080000,17.4],[1787965380000,17.4],[1787965680000,17.2],[1787965980000,17],[1787966280000,16.7],[1787966580000,16.5],[1787966880000,16.1],[1787967180000,15.4],[1787967480000,14.9],[1787967780000,14.7],[1787968080000,14.7],[1787968380000,14.7],[1787968680000,14.4],[1787968980000,14.4],[1787969280000,14.5],[1787969580000,14.5],[1787969880000,14.5],[1787970180000,14.5],[1787970480000,14.5],[1787970780000,14.6],[1787971080000,14.6],[1787971380000,14.6],[1787971680000,14.5],[1787971980000,14.5],[1787972280000,14.4],[1787972580000,14.6],[1787972880000,14.6],[1787973180000,14.6],[1787973480000,14.5],[1787973780000,14.4],[1787974080000,14.4],[1787974380000,14.3],[1787974680000,14.3],[1787974980000,14.4],[1787975280000,14.5],[1787975580000,14.5],[1787975880000,14.5],[1787976180000,14.6],[1787976480000,14.5],[1787976780000,14.6],[1787977080000,14.6],[1787977380000,14.6],[1787977680000,14.5],[1787977980000,14.5],[1787978280000,14.4],], 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,20.16666667],[1787954580000,20.02000000],[1787954880000,19.98000000],[1787955180000,20.04000000],[1787955480000,20.12000000],[1787955780000,20.08000000],[1787956080000,19.82000000],[1787956380000,19.78000000],[1787956680000,19.60000000],[1787956980000,19.44000000],[1787957280000,19.40000000],[1787957580000,19.46000000],[1787957880000,19.50000000],[1787958180000,19.82000000],[1787958480000,19.98000000],[1787958780000,19.72000000],[1787959080000,19.72000000],[1787959380000,19.54000000],[1787959680000,19.36000000],[1787959980000,19.36000000],[1787960280000,19.26000000],[1787960580000,19.46000000],[1787960880000,19.58000000],[1787961180000,19.16000000],[1787961480000,19.10000000],[1787961780000,19.34000000],[1787962080000,19.66000000],[1787962380000,19.86000000],[1787962680000,19.68000000],[1787962980000,19.28000000],[1787963280000,19.22000000],[1787963580000,18.96000000],[1787963880000,18.82000000],[1787964180000,18.80000000],[1787964480000,18.66000000],[1787964780000,18.08000000],[1787965080000,17.50000000],[1787965380000,17.20000000],[1787965680000,17.04000000],[1787965980000,16.86000000],[1787966280000,16.58000000],[1787966580000,16.34000000],[1787966880000,15.86000000],[1787967180000,15.36000000],[1787967480000,14.98000000],[1787967780000,14.78000000],[1787968080000,14.64000000],[1787968380000,14.60000000],[1787968680000,14.40000000],[1787968980000,14.30000000],[1787969280000,14.30000000],[1787969580000,14.30000000],[1787969880000,14.32000000],[1787970180000,14.30000000],[1787970480000,14.30000000],[1787970780000,14.30000000],[1787971080000,14.30000000],[1787971380000,14.24000000],[1787971680000,14.20000000],[1787971980000,14.20000000],[1787972280000,14.20000000],[1787972580000,14.20000000],[1787972880000,14.20000000],[1787973180000,14.20000000],[1787973480000,14.20000000],[1787973780000,14.24000000],[1787974080000,14.30000000],[1787974380000,14.26000000],[1787974680000,14.20000000],[1787974980000,14.20000000],[1787975280000,14.20000000],[1787975580000,14.20000000],[1787975880000,14.20000000],[1787976180000,14.36000000],[1787976480000,14.46000000],[1787976780000,14.58000000],[1787977080000,14.60000000],[1787977380000,14.52000000],[1787977680000,14.50000000],[1787977980000,14.44000000],[1787978280000,14.40000000],], 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,39.70000000],[1787954580000,39.76000000],[1787954880000,39.70000000],[1787955180000,38.90000000],[1787955480000,38.70000000],[1787955780000,38.92000000],[1787956080000,39.44000000],[1787956380000,39.50000000],[1787956680000,39.40000000],[1787956980000,39.56000000],[1787957280000,39.42000000],[1787957580000,39.36000000],[1787957880000,38.92000000],[1787958180000,38.78000000],[1787958480000,38.38000000],[1787958780000,38.20000000],[1787959080000,38.30000000],[1787959380000,38.22000000],[1787959680000,38.36000000],[1787959980000,38.38000000],[1787960280000,38.50000000],[1787960580000,39.96000000],[1787960880000,39.62000000],[1787961180000,40.20000000],[1787961480000,40.78000000],[1787961780000,41.56000000],[1787962080000,52.56000000],[1787962380000,63.84000000],[1787962680000,68.24000000],[1787962980000,72.08000000],[1787963280000,78.40000000],[1787963580000,83.64000000],[1787963880000,86.04000000],[1787964180000,87.14000000],[1787964480000,88.76000000],[1787964780000,92.24000000],[1787965080000,96.62000000],[1787965380000,99.66000000],[1787965680000,100.00000000],[1787965980000,100.00000000],[1787966280000,100.00000000],[1787966580000,100.00000000],[1787966880000,99.84000000],[1787967180000,96.98000000],[1787967480000,95.98000000],[1787967780000,95.76000000],[1787968080000,97.04000000],[1787968380000,98.24000000],[1787968680000,97.42000000],[1787968980000,97.62000000],[1787969280000,98.52000000],[1787969580000,98.76000000],[1787969880000,98.96000000],[1787970180000,99.06000000],[1787970480000,99.00000000],[1787970780000,99.22000000],[1787971080000,99.14000000],[1787971380000,99.16000000],[1787971680000,98.90000000],[1787971980000,98.54000000],[1787972280000,98.38000000],[1787972580000,99.14000000],[1787972880000,99.20000000],[1787973180000,99.10000000],[1787973480000,98.28000000],[1787973780000,97.64000000],[1787974080000,97.24000000],[1787974380000,96.24000000],[1787974680000,96.58000000],[1787974980000,98.18000000],[1787975280000,98.44000000],[1787975580000,98.56000000],[1787975880000,98.84000000],[1787976180000,100.00000000],[1787976480000,100.00000000],[1787976780000,100.00000000],[1787977080000,100.00000000],[1787977380000,100.00000000],[1787977680000,100.00000000],[1787977980000,100.00000000],[1787978280000,100.00000000],], 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,1011.8],[1787954580000,1012.2],[1787954880000,1012.3],[1787955180000,1012],[1787955480000,1011.8],[1787955780000,1011.9],[1787956080000,1011.8],[1787956380000,1011.8],[1787956680000,1012],[1787956980000,1011.9],[1787957280000,1011.9],[1787957580000,1012.1],[1787957880000,1012.3],[1787958180000,1012.4],[1787958480000,1012.2],[1787958780000,1012.1],[1787959080000,1012],[1787959380000,1011.9],[1787959680000,1011.8],[1787959980000,1012.1],[1787960280000,1012.6],[1787960580000,1012.9],[1787960880000,1012.9],[1787961180000,1013],[1787961480000,1013.2],[1787961780000,1013.2],[1787962080000,1013.3],[1787962380000,1013.2],[1787962680000,1013.1],[1787962980000,1013],[1787963280000,1013.3],[1787963580000,1013.3],[1787963880000,1013.3],[1787964180000,1013.3],[1787964480000,1013.4],[1787964780000,1013.4],[1787965080000,1013.6],[1787965380000,1013.9],[1787965680000,1014.2],[1787965980000,1014.4],[1787966280000,1014],[1787966580000,1014.1],[1787966880000,1014.3],[1787967180000,1014.3],[1787967480000,1014.6],[1787967780000,1014.6],[1787968080000,1014.7],[1787968380000,1014.5],[1787968680000,1014],[1787968980000,1013.9],[1787969280000,1013.9],[1787969580000,1014],[1787969880000,1014.2],[1787970180000,1014.2],[1787970480000,1014.4],[1787970780000,1014.6],[1787971080000,1014.5],[1787971380000,1014.3],[1787971680000,1014.3],[1787971980000,1014.5],[1787972280000,1014.6],[1787972580000,1014.8],[1787972880000,1014.8],[1787973180000,1015],[1787973480000,1015.1],[1787973780000,1015.2],[1787974080000,1014.9],[1787974380000,1014.9],[1787974680000,1015.1],[1787974980000,1015.3],[1787975280000,1015.4],[1787975580000,1015.4],[1787975880000,1015.4],[1787976180000,1015.5],[1787976480000,1015.5],[1787976780000,1015.6],[1787977080000,1015.8],[1787977380000,1015.8],[1787977680000,1015.9],[1787977980000,1016],[1787978280000,1016],], 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,23.640000012],[1787954580000,21.312],[1787954880000,24.84],[1787955180000,28.08],[1787955480000,26.136],[1787955780000,22.824],[1787956080000,26.064],[1787956380000,24.84],[1787956680000,21.096],[1787956980000,22.392],[1787957280000,24.12],[1787957580000,22.032],[1787957880000,22.248],[1787958180000,23.976],[1787958480000,23.688],[1787958780000,23.112],[1787959080000,21.888],[1787959380000,21.528],[1787959680000,20.016],[1787959980000,18.648],[1787960280000,10.296],[1787960580000,19.152],[1787960880000,11.376],[1787961180000,15.048],[1787961480000,15.336],[1787961780000,18.648],[1787962080000,23.976],[1787962380000,20.592],[1787962680000,23.112],[1787962980000,30.096],[1787963280000,32.328],[1787963580000,32.616],[1787963880000,29.88],[1787964180000,29.088],[1787964480000,39.816],[1787964780000,46.8],[1787965080000,45.072],[1787965380000,43.992],[1787965680000,50.544],[1787965980000,47.952],[1787966280000,57.096],[1787966580000,61.2],[1787966880000,59.688],[1787967180000,67.824],[1787967480000,62.424],[1787967780000,57.456],[1787968080000,59.256],[1787968380000,61.272],[1787968680000,66.456],[1787968980000,68.616],[1787969280000,68.328],[1787969580000,63.864],[1787969880000,60.408],[1787970180000,59.76],[1787970480000,61.632],[1787970780000,54.504],[1787971080000,54.792],[1787971380000,59.832],[1787971680000,59.472],[1787971980000,56.736],[1787972280000,51.264],[1787972580000,45.432],[1787972880000,48.816],[1787973180000,44.208],[1787973480000,47.808],[1787973780000,43.56],[1787974080000,48.6],[1787974380000,45.576],[1787974680000,42.048],[1787974980000,42.264],[1787975280000,42.408],[1787975580000,44.784],[1787975880000,39.888],[1787976180000,40.896],[1787976480000,36.504],[1787976780000,38.16],[1787977080000,36.864],[1787977380000,36.648],[1787977680000,40.536],[1787977980000,39.384],[1787978280000,38.52],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,29.16],[1787954580000,26.28],[1787954880000,28.872],[1787955180000,33.48],[1787955480000,31.104],[1787955780000,29.808],[1787956080000,32.112],[1787956380000,29.52],[1787956680000,25.2],[1787956980000,27.648],[1787957280000,28.872],[1787957580000,26.568],[1787957880000,26.712],[1787958180000,28.368],[1787958480000,28.44],[1787958780000,28.44],[1787959080000,25.92],[1787959380000,26.064],[1787959680000,25.632],[1787959980000,21.888],[1787960280000,14.472],[1787960580000,23.76],[1787960880000,15.552],[1787961180000,17.568],[1787961480000,17.064],[1787961780000,22.464],[1787962080000,29.016],[1787962380000,27.072],[1787962680000,27.072],[1787962980000,37.08],[1787963280000,43.272],[1787963580000,43.2],[1787963880000,40.608],[1787964180000,39.384],[1787964480000,50.616],[1787964780000,58.752],[1787965080000,58.68],[1787965380000,58.536],[1787965680000,66.024],[1787965980000,62.208],[1787966280000,71.928],[1787966580000,80.856],[1787966880000,76.392],[1787967180000,87.48],[1787967480000,78.048],[1787967780000,73.008],[1787968080000,72.648],[1787968380000,72.144],[1787968680000,86.328],[1787968980000,86.184],[1787969280000,87.048],[1787969580000,79.056],[1787969880000,74.952],[1787970180000,76.68],[1787970480000,71.64],[1787970780000,69.048],[1787971080000,65.016],[1787971380000,70.416],[1787971680000,72.648],[1787971980000,67.536],[1787972280000,65.088],[1787972580000,57.816],[1787972880000,59.256],[1787973180000,56.448],[1787973480000,58.032],[1787973780000,54.072],[1787974080000,61.56],[1787974380000,53.928],[1787974680000,50.832],[1787974980000,51.552],[1787975280000,51.48],[1787975580000,53.424],[1787975880000,47.88],[1787976180000,51.12],[1787976480000,47.232],[1787976780000,47.448],[1787977080000,49.248],[1787977380000,48.528],[1787977680000,48.744],[1787977980000,48.168],[1787978280000,44.28],], 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,65.40000000],[1787954580000,85.34000000],[1787954880000,77.84000000],[1787955180000,72.24000000],[1787955480000,62.34000000],[1787955780000,63.64000000],[1787956080000,60.34000000],[1787956380000,61.82000000],[1787956680000,59.70000000],[1787956980000,60.08000000],[1787957280000,63.66000000],[1787957580000,64.20000000],[1787957880000,72.00000000],[1787958180000,80.26000000],[1787958480000,72.74000000],[1787958780000,69.86000000],[1787959080000,71.94000000],[1787959380000,69.40000000],[1787959680000,63.00000000],[1787959980000,62.40000000],[1787960280000,200.48000000],[1787960580000,255.90000000],[1787960880000,249.18000000],[1787961180000,275.96000000],[1787961480000,283.72000000],[1787961780000,278.18000000],[1787962080000,286.48000000],[1787962380000,295.66000000],[1787962680000,288.54000000],[1787962980000,297.86000000],[1787963280000,284.00000000],[1787963580000,292.14000000],[1787963880000,294.52000000],[1787964180000,293.24000000],[1787964480000,285.88000000],[1787964780000,284.46000000],[1787965080000,281.56000000],[1787965380000,284.86000000],[1787965680000,279.76000000],[1787965980000,280.84000000],[1787966280000,292.30000000],[1787966580000,287.52000000],[1787966880000,290.92000000],[1787967180000,296.54000000],[1787967480000,297.28000000],[1787967780000,300.80000000],[1787968080000,301.82000000],[1787968380000,301.94000000],[1787968680000,308.62000000],[1787968980000,308.50000000],[1787969280000,307.68000000],[1787969580000,306.64000000],[1787969880000,308.90000000],[1787970180000,310.54000000],[1787970480000,308.34000000],[1787970780000,310.66000000],[1787971080000,311.48000000],[1787971380000,312.62000000],[1787971680000,314.42000000],[1787971980000,313.60000000],[1787972280000,313.22000000],[1787972580000,311.30000000],[1787972880000,310.80000000],[1787973180000,311.12000000],[1787973480000,312.48000000],[1787973780000,314.66000000],[1787974080000,316.56000000],[1787974380000,319.92000000],[1787974680000,307.82000000],[1787974980000,310.50000000],[1787975280000,306.28000000],[1787975580000,304.08000000],[1787975880000,302.20000000],[1787976180000,299.38000000],[1787976480000,298.40000000],[1787976780000,295.76000000],[1787977080000,296.40000000],[1787977380000,296.32000000],[1787977680000,297.24000000],[1787977980000,298.64000000],[1787978280000,297.50000000],], 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.018],[1787965680000,0.086],[1787965980000,0.124],[1787966280000,0.124],[1787966580000,0.124],[1787966880000,0.124],[1787967180000,0.124],[1787967480000,0.124],[1787967780000,0.124],[1787968080000,0.124],[1787968380000,0.124],[1787968680000,0.124],[1787968980000,0.124],[1787969280000,0.334],[1787969580000,0.4],[1787969880000,0.4],[1787970180000,0.4],[1787970480000,0.4],[1787970780000,0.4],[1787971080000,0.4],[1787971380000,0.4],[1787971680000,0.4],[1787971980000,0.4],[1787972280000,0.4],[1787972580000,0.4],[1787972880000,0.4],[1787973180000,0.4],[1787973480000,0.4],[1787973780000,0.4],[1787974080000,0.4],[1787974380000,0.4],[1787974680000,0.4],[1787974980000,0.4],[1787975280000,0.4],[1787975580000,0.4],[1787975880000,0.4],[1787976180000,0.4],[1787976480000,0.4],[1787976780000,0.4],[1787977080000,0.4],[1787977380000,0.4],[1787977680000,0.4],[1787977980000,0.4],[1787978280000,0.4],], 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; }