var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,23.80000000],[1787954580000,23.68000000],[1787954880000,23.60000000],[1787955180000,23.60000000],[1787955480000,23.52000000],[1787955780000,23.50000000],[1787956080000,23.42000000],[1787956380000,23.30000000],[1787956680000,23.32000000],[1787956980000,23.16000000],[1787957280000,23.10000000],[1787957580000,23.14000000],[1787957880000,23.10000000],[1787958180000,23.02000000],[1787958480000,22.92000000],[1787958780000,22.90000000],[1787959080000,22.82000000],[1787959380000,22.80000000],[1787959680000,22.76000000],[1787959980000,22.68000000],[1787960280000,22.54000000],[1787960580000,22.60000000],[1787960880000,22.54000000],[1787961180000,22.48000000],[1787961480000,22.40000000],[1787961780000,22.36000000],[1787962080000,22.24000000],[1787962380000,22.20000000],[1787962680000,22.18000000],[1787962980000,22.24000000],[1787963280000,22.26000000],[1787963580000,22.46000000],[1787963880000,22.60000000],[1787964180000,22.66000000],[1787964480000,22.86000000],[1787964780000,22.78000000],[1787965080000,22.26000000],[1787965380000,22.00000000],[1787965680000,21.86000000],[1787965980000,21.70000000],[1787966280000,21.66000000],[1787966580000,21.74000000],[1787966880000,21.84000000],[1787967180000,21.82000000],[1787967480000,22.00000000],[1787967780000,22.00000000],[1787968080000,21.96000000],[1787968380000,21.86000000],[1787968680000,21.74000000],[1787968980000,21.70000000],[1787969280000,21.72000000],[1787969580000,21.72000000],[1787969880000,21.64000000],[1787970180000,21.62000000],[1787970480000,21.56000000],[1787970780000,21.34000000],[1787971080000,21.30000000],[1787971380000,21.42000000],[1787971680000,21.62000000],[1787971980000,21.36000000],[1787972280000,21.08000000],[1787972580000,20.90000000],[1787972880000,20.78000000],[1787973180000,20.62000000],[1787973480000,20.64000000],[1787973780000,20.50000000],[1787974080000,20.30000000],[1787974380000,20.20000000],[1787974680000,20.06000000],[1787974980000,19.98000000],[1787975280000,19.90000000],[1787975580000,19.80000000],[1787975880000,19.72000000],[1787976180000,19.74000000],[1787976480000,19.68000000],[1787976780000,19.58000000],[1787977080000,19.50000000],[1787977380000,19.40000000],[1787977680000,19.30000000],[1787977980000,19.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,6.3],[1787954580000,6.3],[1787954880000,6.3],[1787955180000,6.3],[1787955480000,6.3],[1787955780000,6.3],[1787956080000,6.3],[1787956380000,6.3],[1787956680000,6.4],[1787956980000,6.4],[1787957280000,6.4],[1787957580000,6.4],[1787957880000,6.4],[1787958180000,6.4],[1787958480000,6.4],[1787958780000,6.4],[1787959080000,6.4],[1787959380000,6.4],[1787959680000,6.4],[1787959980000,6.4],[1787960280000,6.4],[1787960580000,6.4],[1787960880000,6.4],[1787961180000,6.4],[1787961480000,6.4],[1787961780000,6.5],[1787962080000,6.5],[1787962380000,6.5],[1787962680000,6.6],[1787962980000,6.6],[1787963280000,6.7],[1787963580000,6.8],[1787963880000,7],[1787964180000,7.3],[1787964480000,7.4],[1787964780000,7.2],[1787965080000,6.8],[1787965380000,6.7],[1787965680000,6.8],[1787965980000,6.8],[1787966280000,6.9],[1787966580000,7.1],[1787966880000,7.2],[1787967180000,7.4],[1787967480000,7.6],[1787967780000,7.7],[1787968080000,7.8],[1787968380000,8],[1787968680000,8],[1787968980000,8],[1787969280000,7.8],[1787969580000,7.8],[1787969880000,7.8],[1787970180000,7.8],[1787970480000,7.8],[1787970780000,7.8],[1787971080000,7.8],[1787971380000,8.6],[1787971680000,12.4],[1787971980000,15.5],[1787972280000,15.6],[1787972580000,15.7],[1787972880000,15.8],[1787973180000,15.7],[1787973480000,15.6],[1787973780000,15.1],[1787974080000,15],[1787974380000,14.9],[1787974680000,14.8],[1787974980000,14.9],[1787975280000,14.8],[1787975580000,14.7],[1787975880000,14.7],[1787976180000,14.6],[1787976480000,14.5],[1787976780000,14.5],[1787977080000,14.5],[1787977380000,14.5],[1787977680000,14.5],[1787977980000,14.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,23.03333333],[1787954580000,22.96000000],[1787954880000,22.90000000],[1787955180000,22.90000000],[1787955480000,22.70000000],[1787955780000,22.70000000],[1787956080000,22.66000000],[1787956380000,22.58000000],[1787956680000,22.60000000],[1787956980000,22.44000000],[1787957280000,22.38000000],[1787957580000,22.42000000],[1787957880000,22.48000000],[1787958180000,22.32000000],[1787958480000,22.20000000],[1787958780000,22.06000000],[1787959080000,22.10000000],[1787959380000,22.10000000],[1787959680000,22.08000000],[1787959980000,21.94000000],[1787960280000,21.84000000],[1787960580000,21.78000000],[1787960880000,21.86000000],[1787961180000,21.72000000],[1787961480000,21.74000000],[1787961780000,21.72000000],[1787962080000,21.46000000],[1787962380000,21.38000000],[1787962680000,21.38000000],[1787962980000,21.56000000],[1787963280000,21.58000000],[1787963580000,21.76000000],[1787963880000,21.92000000],[1787964180000,22.04000000],[1787964480000,22.06000000],[1787964780000,22.18000000],[1787965080000,21.50000000],[1787965380000,21.22000000],[1787965680000,21.16000000],[1787965980000,20.92000000],[1787966280000,20.94000000],[1787966580000,21.00000000],[1787966880000,21.24000000],[1787967180000,21.10000000],[1787967480000,21.32000000],[1787967780000,21.22000000],[1787968080000,21.12000000],[1787968380000,20.98000000],[1787968680000,20.64000000],[1787968980000,20.40000000],[1787969280000,20.38000000],[1787969580000,20.60000000],[1787969880000,20.42000000],[1787970180000,20.68000000],[1787970480000,20.46000000],[1787970780000,20.14000000],[1787971080000,20.30000000],[1787971380000,20.34000000],[1787971680000,20.90000000],[1787971980000,20.92000000],[1787972280000,20.60000000],[1787972580000,20.42000000],[1787972880000,20.42000000],[1787973180000,20.40000000],[1787973480000,20.38000000],[1787973780000,20.12000000],[1787974080000,19.88000000],[1787974380000,19.70000000],[1787974680000,19.56000000],[1787974980000,19.46000000],[1787975280000,19.40000000],[1787975580000,19.26000000],[1787975880000,19.20000000],[1787976180000,19.26000000],[1787976480000,19.32000000],[1787976780000,19.24000000],[1787977080000,19.20000000],[1787977380000,19.04000000],[1787977680000,18.98000000],[1787977980000,18.90000000],], 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,32.56666667],[1787954580000,32.82000000],[1787954880000,32.94000000],[1787955180000,32.94000000],[1787955480000,33.08000000],[1787955780000,33.12000000],[1787956080000,33.30000000],[1787956380000,33.58000000],[1787956680000,33.60000000],[1787956980000,33.98000000],[1787957280000,34.10000000],[1787957580000,34.02000000],[1787957880000,34.14000000],[1787958180000,34.32000000],[1787958480000,34.58000000],[1787958780000,34.56000000],[1787959080000,34.68000000],[1787959380000,34.72000000],[1787959680000,34.92000000],[1787959980000,35.10000000],[1787960280000,35.42000000],[1787960580000,35.28000000],[1787960880000,35.40000000],[1787961180000,35.52000000],[1787961480000,35.66000000],[1787961780000,35.84000000],[1787962080000,36.22000000],[1787962380000,36.42000000],[1787962680000,36.50000000],[1787962980000,36.42000000],[1787963280000,36.62000000],[1787963580000,36.50000000],[1787963880000,36.70000000],[1787964180000,37.28000000],[1787964480000,37.08000000],[1787964780000,36.82000000],[1787965080000,36.84000000],[1787965380000,37.34000000],[1787965680000,37.72000000],[1787965980000,38.20000000],[1787966280000,38.46000000],[1787966580000,38.98000000],[1787966880000,38.98000000],[1787967180000,39.56000000],[1787967480000,39.68000000],[1787967780000,39.92000000],[1787968080000,40.32000000],[1787968380000,40.98000000],[1787968680000,41.42000000],[1787968980000,41.40000000],[1787969280000,41.00000000],[1787969580000,40.82000000],[1787969880000,40.96000000],[1787970180000,41.00000000],[1787970480000,41.24000000],[1787970780000,41.78000000],[1787971080000,41.82000000],[1787971380000,43.88000000],[1787971680000,56.06000000],[1787971980000,69.48000000],[1787972280000,71.10000000],[1787972580000,72.32000000],[1787972880000,73.06000000],[1787973180000,73.62000000],[1787973480000,73.18000000],[1787973780000,71.36000000],[1787974080000,71.68000000],[1787974380000,71.86000000],[1787974680000,72.08000000],[1787974980000,72.50000000],[1787975280000,72.62000000],[1787975580000,72.80000000],[1787975880000,72.76000000],[1787976180000,72.32000000],[1787976480000,72.08000000],[1787976780000,72.50000000],[1787977080000,73.02000000],[1787977380000,73.48000000],[1787977680000,74.00000000],[1787977980000,74.40000000],], 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.7],[1787954580000,1011.6],[1787954880000,1011.5],[1787955180000,1011.3],[1787955480000,1011.3],[1787955780000,1011.1],[1787956080000,1011.1],[1787956380000,1011],[1787956680000,1011.1],[1787956980000,1011],[1787957280000,1011],[1787957580000,1011.2],[1787957880000,1011.3],[1787958180000,1011.2],[1787958480000,1011.1],[1787958780000,1011],[1787959080000,1010.9],[1787959380000,1011.1],[1787959680000,1011.1],[1787959980000,1011],[1787960280000,1011.1],[1787960580000,1011.1],[1787960880000,1011.1],[1787961180000,1011.1],[1787961480000,1011],[1787961780000,1011.1],[1787962080000,1011],[1787962380000,1011],[1787962680000,1010.9],[1787962980000,1010.8],[1787963280000,1010.6],[1787963580000,1010.6],[1787963880000,1010.4],[1787964180000,1010.1],[1787964480000,1010.1],[1787964780000,1010],[1787965080000,1009.9],[1787965380000,1010],[1787965680000,1010.2],[1787965980000,1010.4],[1787966280000,1010.9],[1787966580000,1011.1],[1787966880000,1011.1],[1787967180000,1011],[1787967480000,1011.2],[1787967780000,1011.3],[1787968080000,1011.4],[1787968380000,1012],[1787968680000,1012.4],[1787968980000,1012.7],[1787969280000,1012.8],[1787969580000,1012.9],[1787969880000,1013],[1787970180000,1013.1],[1787970480000,1013],[1787970780000,1013.1],[1787971080000,1013.3],[1787971380000,1013.3],[1787971680000,1013.1],[1787971980000,1013.1],[1787972280000,1013.2],[1787972580000,1013.4],[1787972880000,1013.6],[1787973180000,1013.6],[1787973480000,1013.7],[1787973780000,1013.9],[1787974080000,1013.9],[1787974380000,1013.9],[1787974680000,1013.9],[1787974980000,1013.7],[1787975280000,1013.7],[1787975580000,1013.7],[1787975880000,1013.7],[1787976180000,1013.6],[1787976480000,1013.8],[1787976780000,1013.8],[1787977080000,1013.9],[1787977380000,1014.2],[1787977680000,1014.2],[1787977980000,1014.3],], 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,14.280000012],[1787954580000,11.88],[1787954880000,11.88],[1787955180000,13.248],[1787955480000,11.736],[1787955780000,14.256],[1787956080000,12.6],[1787956380000,12.456],[1787956680000,12.888],[1787956980000,11.304],[1787957280000,12.096],[1787957580000,11.592],[1787957880000,12.6],[1787958180000,12.24],[1787958480000,11.16],[1787958780000,11.376],[1787959080000,11.376],[1787959380000,11.736],[1787959680000,11.592],[1787959980000,10.728],[1787960280000,9.864],[1787960580000,11.016],[1787960880000,12.384],[1787961180000,10.656],[1787961480000,10.728],[1787961780000,9.288],[1787962080000,9.432],[1787962380000,9.792],[1787962680000,10.872],[1787962980000,10.368],[1787963280000,11.016],[1787963580000,12.96],[1787963880000,11.952],[1787964180000,11.808],[1787964480000,12.312],[1787964780000,12.24],[1787965080000,8.928],[1787965380000,9.936],[1787965680000,9.72],[1787965980000,8.352],[1787966280000,8.64],[1787966580000,6.192],[1787966880000,6.984],[1787967180000,6.624],[1787967480000,7.632],[1787967780000,6.624],[1787968080000,6.48],[1787968380000,6.552],[1787968680000,4.968],[1787968980000,8.424],[1787969280000,7.056],[1787969580000,6.48],[1787969880000,6.264],[1787970180000,8.568],[1787970480000,8.784],[1787970780000,7.992],[1787971080000,10.584],[1787971380000,12.456],[1787971680000,21.528],[1787971980000,19.512],[1787972280000,16.344],[1787972580000,19.944],[1787972880000,19.008],[1787973180000,20.016],[1787973480000,19.008],[1787973780000,20.232],[1787974080000,18.864],[1787974380000,21.816],[1787974680000,14.472],[1787974980000,18],[1787975280000,16.848],[1787975580000,17.352],[1787975880000,15.264],[1787976180000,16.056],[1787976480000,20.52],[1787976780000,17.352],[1787977080000,19.296],[1787977380000,13.752],[1787977680000,13.248],[1787977980000,13.968],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,27.479999988],[1787954580000,22.536],[1787954880000,21.888],[1787955180000,22.896],[1787955480000,21.888],[1787955780000,23.184],[1787956080000,24.264],[1787956380000,21.384],[1787956680000,22.392],[1787956980000,22.176],[1787957280000,21.168],[1787957580000,22.968],[1787957880000,21.744],[1787958180000,22.824],[1787958480000,20.016],[1787958780000,19.8],[1787959080000,18.864],[1787959380000,21.744],[1787959680000,19.08],[1787959980000,18.216],[1787960280000,15.552],[1787960580000,18.36],[1787960880000,19.872],[1787961180000,20.88],[1787961480000,18.432],[1787961780000,13.896],[1787962080000,18],[1787962380000,15.12],[1787962680000,18.936],[1787962980000,17.496],[1787963280000,19.368],[1787963580000,21.384],[1787963880000,20.304],[1787964180000,20.088],[1787964480000,19.296],[1787964780000,21.96],[1787965080000,15.624],[1787965380000,17.64],[1787965680000,18.432],[1787965980000,14.544],[1787966280000,15.192],[1787966580000,11.376],[1787966880000,12.6],[1787967180000,11.88],[1787967480000,13.248],[1787967780000,11.376],[1787968080000,9.72],[1787968380000,10.8],[1787968680000,8.064],[1787968980000,12.744],[1787969280000,11.088],[1787969580000,9.576],[1787969880000,9],[1787970180000,12.384],[1787970480000,12.816],[1787970780000,13.248],[1787971080000,15.912],[1787971380000,21.024],[1787971680000,36.432],[1787971980000,34.056],[1787972280000,25.56],[1787972580000,31.536],[1787972880000,31.176],[1787973180000,30.024],[1787973480000,32.76],[1787973780000,31.032],[1787974080000,30.528],[1787974380000,35.928],[1787974680000,25.056],[1787974980000,29.52],[1787975280000,30.24],[1787975580000,28.8],[1787975880000,25.776],[1787976180000,27.36],[1787976480000,32.616],[1787976780000,26.352],[1787977080000,30.456],[1787977380000,25.344],[1787977680000,22.824],[1787977980000,24.408],], 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,74.50000000],[1787954580000,72.70000000],[1787954880000,80.42000000],[1787955180000,76.92000000],[1787955480000,74.98000000],[1787955780000,74.42000000],[1787956080000,80.70000000],[1787956380000,78.84000000],[1787956680000,66.94000000],[1787956980000,71.60000000],[1787957280000,82.68000000],[1787957580000,73.08000000],[1787957880000,69.64000000],[1787958180000,71.04000000],[1787958480000,71.48000000],[1787958780000,72.64000000],[1787959080000,72.96000000],[1787959380000,74.78000000],[1787959680000,78.18000000],[1787959980000,78.72000000],[1787960280000,67.96000000],[1787960580000,80.86000000],[1787960880000,80.76000000],[1787961180000,82.80000000],[1787961480000,80.48000000],[1787961780000,86.02000000],[1787962080000,90.20000000],[1787962380000,87.34000000],[1787962680000,85.98000000],[1787962980000,83.64000000],[1787963280000,83.24000000],[1787963580000,88.02000000],[1787963880000,84.72000000],[1787964180000,84.92000000],[1787964480000,80.46000000],[1787964780000,76.54000000],[1787965080000,74.64000000],[1787965380000,83.66000000],[1787965680000,81.82000000],[1787965980000,80.94000000],[1787966280000,91.58000000],[1787966580000,94.10000000],[1787966880000,87.26000000],[1787967180000,79.74000000],[1787967480000,83.24000000],[1787967780000,76.50000000],[1787968080000,92.04000000],[1787968380000,224.66000000],[1787968680000,264.54000000],[1787968980000,246.30000000],[1787969280000,269.88000000],[1787969580000,290.12000000],[1787969880000,284.38000000],[1787970180000,295.28000000],[1787970480000,305.08000000],[1787970780000,296.70000000],[1787971080000,283.54000000],[1787971380000,292.72000000],[1787971680000,297.18000000],[1787971980000,297.78000000],[1787972280000,297.34000000],[1787972580000,302.62000000],[1787972880000,302.42000000],[1787973180000,304.48000000],[1787973480000,304.38000000],[1787973780000,317.70000000],[1787974080000,309.18000000],[1787974380000,310.08000000],[1787974680000,312.46000000],[1787974980000,306.94000000],[1787975280000,314.58000000],[1787975580000,308.06000000],[1787975880000,314.76000000],[1787976180000,308.32000000],[1787976480000,303.42000000],[1787976780000,312.78000000],[1787977080000,309.52000000],[1787977380000,311.80000000],[1787977680000,314.62000000],[1787977980000,315.22000000],], 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; }