var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954400000,13.66666667],[1787954580000,13.60000000],[1787954880000,13.66000000],[1787955180000,13.68000000],[1787955480000,13.66000000],[1787955780000,13.60000000],[1787956080000,13.62000000],[1787956380000,13.54000000],[1787956680000,13.46000000],[1787956980000,13.42000000],[1787957280000,13.22000000],[1787957580000,13.14000000],[1787957880000,13.16000000],[1787958180000,13.12000000],[1787958480000,13.16000000],[1787958780000,13.16000000],[1787959080000,13.16000000],[1787959380000,13.20000000],[1787959680000,13.26000000],[1787959980000,13.32000000],[1787960280000,13.44000000],[1787960580000,13.70000000],[1787960880000,13.94000000],[1787961180000,14.10000000],[1787961480000,14.10000000],[1787961780000,14.12000000],[1787962080000,14.10000000],[1787962380000,14.04000000],[1787962680000,14.06000000],[1787962980000,14.02000000],[1787963280000,13.92000000],[1787963580000,13.70000000],[1787963880000,13.60000000],[1787964180000,13.58000000],[1787964480000,13.48000000],[1787964780000,13.40000000],[1787965080000,13.46000000],[1787965380000,13.56000000],[1787965680000,13.82000000],[1787965980000,14.06000000],[1787966280000,14.10000000],[1787966580000,14.24000000],[1787966880000,14.40000000],[1787967180000,15.08000000],[1787967480000,15.46000000],[1787967780000,15.30000000],[1787968080000,15.20000000],[1787968380000,15.30000000],[1787968680000,15.24000000],[1787968980000,15.16000000],[1787969280000,15.10000000],[1787969580000,15.10000000],[1787969880000,15.08000000],[1787970180000,15.00000000],[1787970480000,15.06000000],[1787970780000,15.06000000],[1787971080000,15.12000000],[1787971380000,15.06000000],[1787971680000,15.00000000],[1787971980000,14.90000000],[1787972280000,14.86000000],[1787972580000,14.90000000],[1787972880000,14.98000000],[1787973180000,14.90000000],[1787973480000,14.90000000],[1787973780000,14.78000000],[1787974080000,14.70000000],[1787974380000,14.66000000],[1787974680000,14.70000000],[1787974980000,14.62000000],[1787975280000,14.50000000],[1787975580000,14.52000000],[1787975880000,14.62000000],[1787976180000,14.70000000],[1787976480000,14.72000000],[1787976780000,14.70000000],[1787977080000,14.82000000],[1787977380000,14.90000000],[1787977680000,14.90000000],[1787977980000,14.90000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954400000,7.3],[1787954580000,7.2],[1787954880000,7.2],[1787955180000,7],[1787955480000,7],[1787955780000,7.1],[1787956080000,7.2],[1787956380000,7.5],[1787956680000,7.6],[1787956980000,7.8],[1787957280000,7.6],[1787957580000,7.4],[1787957880000,7.3],[1787958180000,7.2],[1787958480000,7.6],[1787958780000,7.2],[1787959080000,7.4],[1787959380000,7.5],[1787959680000,7.3],[1787959980000,7.5],[1787960280000,7.4],[1787960580000,7.3],[1787960880000,7.2],[1787961180000,7.6],[1787961480000,7.4],[1787961780000,7.5],[1787962080000,7.8],[1787962380000,7.8],[1787962680000,7.9],[1787962980000,7.7],[1787963280000,8.2],[1787963580000,8.4],[1787963880000,7.9],[1787964180000,8.1],[1787964480000,8.5],[1787964780000,8.3],[1787965080000,7.7],[1787965380000,7.8],[1787965680000,7.7],[1787965980000,7.7],[1787966280000,7.9],[1787966580000,8.3],[1787966880000,8],[1787967180000,7.6],[1787967480000,8],[1787967780000,7.8],[1787968080000,7.8],[1787968380000,8.1],[1787968680000,8.4],[1787968980000,8.8],[1787969280000,8.8],[1787969580000,8.6],[1787969880000,8.5],[1787970180000,9],[1787970480000,8.1],[1787970780000,8.2],[1787971080000,7.8],[1787971380000,8.3],[1787971680000,8.8],[1787971980000,8.5],[1787972280000,8.3],[1787972580000,8.1],[1787972880000,8.4],[1787973180000,8.6],[1787973480000,8.8],[1787973780000,8.9],[1787974080000,9.1],[1787974380000,9],[1787974680000,9.4],[1787974980000,9.8],[1787975280000,9.8],[1787975580000,9.6],[1787975880000,8.7],[1787976180000,9.1],[1787976480000,8.7],[1787976780000,9.1],[1787977080000,8.6],[1787977380000,8.6],[1787977680000,8.5],[1787977980000,9],], 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,9.10000000],[1787954580000,9.34000000],[1787954880000,9.48000000],[1787955180000,9.58000000],[1787955480000,9.66000000],[1787955780000,9.78000000],[1787956080000,10.04000000],[1787956380000,10.28000000],[1787956680000,10.40000000],[1787956980000,10.32000000],[1787957280000,10.14000000],[1787957580000,10.06000000],[1787957880000,9.88000000],[1787958180000,9.82000000],[1787958480000,9.90000000],[1787958780000,10.02000000],[1787959080000,10.10000000],[1787959380000,10.28000000],[1787959680000,10.64000000],[1787959980000,11.12000000],[1787960280000,11.70000000],[1787960580000,12.02000000],[1787960880000,12.12000000],[1787961180000,11.84000000],[1787961480000,11.70000000],[1787961780000,11.68000000],[1787962080000,11.64000000],[1787962380000,11.82000000],[1787962680000,12.00000000],[1787962980000,11.74000000],[1787963280000,11.32000000],[1787963580000,11.08000000],[1787963880000,11.10000000],[1787964180000,10.96000000],[1787964480000,11.06000000],[1787964780000,11.32000000],[1787965080000,11.74000000],[1787965380000,12.06000000],[1787965680000,12.36000000],[1787965980000,12.48000000],[1787966280000,12.62000000],[1787966580000,12.88000000],[1787966880000,13.18000000],[1787967180000,13.78000000],[1787967480000,13.88000000],[1787967780000,13.80000000],[1787968080000,13.80000000],[1787968380000,13.84000000],[1787968680000,13.76000000],[1787968980000,13.74000000],[1787969280000,13.80000000],[1787969580000,13.80000000],[1787969880000,13.80000000],[1787970180000,13.80000000],[1787970480000,13.76000000],[1787970780000,13.68000000],[1787971080000,13.76000000],[1787971380000,13.70000000],[1787971680000,13.70000000],[1787971980000,13.70000000],[1787972280000,13.70000000],[1787972580000,13.70000000],[1787972880000,13.68000000],[1787973180000,13.60000000],[1787973480000,13.60000000],[1787973780000,13.54000000],[1787974080000,13.60000000],[1787974380000,13.64000000],[1787974680000,13.68000000],[1787974980000,13.60000000],[1787975280000,13.60000000],[1787975580000,13.60000000],[1787975880000,13.60000000],[1787976180000,13.52000000],[1787976480000,13.58000000],[1787976780000,13.60000000],[1787977080000,13.60000000],[1787977380000,13.60000000],[1787977680000,13.60000000],[1787977980000,13.62000000],], 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,65.63333333],[1787954580000,65.68000000],[1787954880000,65.14000000],[1787955180000,64.12000000],[1787955480000,64.46000000],[1787955780000,64.92000000],[1787956080000,65.46000000],[1787956380000,67.32000000],[1787956680000,68.00000000],[1787956980000,68.88000000],[1787957280000,68.84000000],[1787957580000,68.22000000],[1787957880000,67.72000000],[1787958180000,67.40000000],[1787958480000,69.20000000],[1787958780000,67.24000000],[1787959080000,68.32000000],[1787959380000,68.46000000],[1787959680000,67.60000000],[1787959980000,67.96000000],[1787960280000,67.22000000],[1787960580000,65.70000000],[1787960880000,64.22000000],[1787961180000,65.06000000],[1787961480000,64.30000000],[1787961780000,64.76000000],[1787962080000,65.92000000],[1787962380000,66.10000000],[1787962680000,66.64000000],[1787962980000,65.96000000],[1787963280000,68.42000000],[1787963580000,70.56000000],[1787963880000,68.72000000],[1787964180000,69.60000000],[1787964480000,71.88000000],[1787964780000,71.50000000],[1787965080000,68.58000000],[1787965380000,68.56000000],[1787965680000,66.72000000],[1787965980000,65.80000000],[1787966280000,66.42000000],[1787966580000,67.84000000],[1787966880000,65.88000000],[1787967180000,61.24000000],[1787967480000,61.42000000],[1787967780000,61.10000000],[1787968080000,61.58000000],[1787968380000,62.60000000],[1787968680000,64.00000000],[1787968980000,65.92000000],[1787969280000,66.24000000],[1787969580000,65.40000000],[1787969880000,64.88000000],[1787970180000,67.78000000],[1787970480000,63.26000000],[1787970780000,63.76000000],[1787971080000,61.90000000],[1787971380000,64.30000000],[1787971680000,66.56000000],[1787971980000,65.96000000],[1787972280000,65.14000000],[1787972580000,63.90000000],[1787972880000,64.78000000],[1787973180000,66.14000000],[1787973480000,67.24000000],[1787973780000,67.90000000],[1787974080000,69.24000000],[1787974380000,69.04000000],[1787974680000,70.74000000],[1787974980000,73.08000000],[1787975280000,73.38000000],[1787975580000,72.48000000],[1787975880000,68.02000000],[1787976180000,69.44000000],[1787976480000,67.42000000],[1787976780000,69.30000000],[1787977080000,66.46000000],[1787977380000,66.14000000],[1787977680000,65.78000000],[1787977980000,67.82000000],], 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,1017.2],[1787954580000,1017.3],[1787954880000,1017.2],[1787955180000,1017.3],[1787955480000,1017.4],[1787955780000,1017.3],[1787956080000,1017.2],[1787956380000,1017.1],[1787956680000,1017.2],[1787956980000,1017.2],[1787957280000,1017.2],[1787957580000,1017.2],[1787957880000,1017.2],[1787958180000,1017],[1787958480000,1017],[1787958780000,1016.8],[1787959080000,1016.8],[1787959380000,1016.8],[1787959680000,1016.7],[1787959980000,1016.8],[1787960280000,1016.8],[1787960580000,1016.7],[1787960880000,1016.6],[1787961180000,1016.4],[1787961480000,1016.4],[1787961780000,1016.2],[1787962080000,1016.2],[1787962380000,1016.2],[1787962680000,1016.1],[1787962980000,1016],[1787963280000,1015.8],[1787963580000,1015.9],[1787963880000,1015.8],[1787964180000,1015.7],[1787964480000,1015.7],[1787964780000,1015.8],[1787965080000,1015.7],[1787965380000,1015.6],[1787965680000,1015.4],[1787965980000,1015.4],[1787966280000,1015.3],[1787966580000,1015.1],[1787966880000,1015],[1787967180000,1014.7],[1787967480000,1014.5],[1787967780000,1014.5],[1787968080000,1014.5],[1787968380000,1014.4],[1787968680000,1014.3],[1787968980000,1014.3],[1787969280000,1014.3],[1787969580000,1014.3],[1787969880000,1014.3],[1787970180000,1014.4],[1787970480000,1014.3],[1787970780000,1014.3],[1787971080000,1014.2],[1787971380000,1014.2],[1787971680000,1014.1],[1787971980000,1014.1],[1787972280000,1014.1],[1787972580000,1014],[1787972880000,1014.1],[1787973180000,1014.2],[1787973480000,1014.3],[1787973780000,1014.3],[1787974080000,1014.3],[1787974380000,1014.5],[1787974680000,1014.4],[1787974980000,1014.6],[1787975280000,1014.7],[1787975580000,1015],[1787975880000,1015],[1787976180000,1015],[1787976480000,1014.8],[1787976780000,1014.8],[1787977080000,1014.7],[1787977380000,1014.7],[1787977680000,1014.8],[1787977980000,1014.9],], 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,3.24],[1787954580000,3.312],[1787954880000,3.888],[1787955180000,3.24],[1787955480000,2.664],[1787955780000,2.376],[1787956080000,2.448],[1787956380000,2.52],[1787956680000,3.456],[1787956980000,2.304],[1787957280000,2.736],[1787957580000,2.664],[1787957880000,2.808],[1787958180000,3.528],[1787958480000,2.304],[1787958780000,3.384],[1787959080000,2.304],[1787959380000,2.808],[1787959680000,3.24],[1787959980000,2.664],[1787960280000,2.448],[1787960580000,3.096],[1787960880000,4.32],[1787961180000,3.456],[1787961480000,2.448],[1787961780000,2.016],[1787962080000,2.736],[1787962380000,2.016],[1787962680000,3.456],[1787962980000,2.592],[1787963280000,2.232],[1787963580000,2.736],[1787963880000,2.736],[1787964180000,3.312],[1787964480000,3.312],[1787964780000,4.248],[1787965080000,3.672],[1787965380000,3.456],[1787965680000,3.888],[1787965980000,3.384],[1787966280000,3.6],[1787966580000,4.176],[1787966880000,5.256],[1787967180000,5.472],[1787967480000,4.248],[1787967780000,4.032],[1787968080000,3.96],[1787968380000,3.456],[1787968680000,2.664],[1787968980000,2.592],[1787969280000,2.52],[1787969580000,4.104],[1787969880000,3.384],[1787970180000,1.944],[1787970480000,2.664],[1787970780000,3.24],[1787971080000,4.464],[1787971380000,3.456],[1787971680000,2.808],[1787971980000,2.952],[1787972280000,1.8],[1787972580000,2.52],[1787972880000,2.952],[1787973180000,3.024],[1787973480000,2.16],[1787973780000,1.872],[1787974080000,1.872],[1787974380000,3.384],[1787974680000,2.592],[1787974980000,2.232],[1787975280000,2.592],[1787975580000,3.672],[1787975880000,2.448],[1787976180000,3.384],[1787976480000,2.448],[1787976780000,3.384],[1787977080000,3.744],[1787977380000,2.088],[1787977680000,2.52],[1787977980000,2.448],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954400000,7.080000012],[1787954580000,7.2],[1787954880000,7.56],[1787955180000,6.624],[1787955480000,5.184],[1787955780000,5.184],[1787956080000,4.032],[1787956380000,4.392],[1787956680000,5.04],[1787956980000,3.384],[1787957280000,4.464],[1787957580000,5.112],[1787957880000,5.544],[1787958180000,6.984],[1787958480000,4.536],[1787958780000,7.272],[1787959080000,4.536],[1787959380000,5.328],[1787959680000,5.472],[1787959980000,4.752],[1787960280000,4.176],[1787960580000,6.264],[1787960880000,8.424],[1787961180000,6.912],[1787961480000,5.256],[1787961780000,3.384],[1787962080000,4.536],[1787962380000,3.6],[1787962680000,5.472],[1787962980000,4.896],[1787963280000,3.672],[1787963580000,4.104],[1787963880000,5.184],[1787964180000,6.048],[1787964480000,5.688],[1787964780000,6.984],[1787965080000,6.984],[1787965380000,7.056],[1787965680000,7.632],[1787965980000,7.056],[1787966280000,6.768],[1787966580000,6.984],[1787966880000,10.224],[1787967180000,9.144],[1787967480000,8.208],[1787967780000,7.2],[1787968080000,5.832],[1787968380000,5.328],[1787968680000,3.888],[1787968980000,4.464],[1787969280000,4.896],[1787969580000,6.12],[1787969880000,5.4],[1787970180000,3.024],[1787970480000,4.104],[1787970780000,4.968],[1787971080000,6.048],[1787971380000,5.112],[1787971680000,4.032],[1787971980000,4.104],[1787972280000,2.808],[1787972580000,4.032],[1787972880000,4.104],[1787973180000,4.392],[1787973480000,2.808],[1787973780000,3.168],[1787974080000,2.952],[1787974380000,5.184],[1787974680000,3.456],[1787974980000,3.744],[1787975280000,4.896],[1787975580000,6.912],[1787975880000,4.104],[1787976180000,5.616],[1787976480000,4.248],[1787976780000,7.128],[1787977080000,6.984],[1787977380000,3.24],[1787977680000,4.032],[1787977980000,4.104],], 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,223.86666667],[1787954580000,225.20000000],[1787954880000,226.32000000],[1787955180000,229.40000000],[1787955480000,234.62000000],[1787955780000,241.64000000],[1787956080000,240.98000000],[1787956380000,241.98000000],[1787956680000,273.84000000],[1787956980000,295.90000000],[1787957280000,282.74000000],[1787957580000,263.18000000],[1787957880000,253.18000000],[1787958180000,223.78000000],[1787958480000,243.66000000],[1787958780000,221.46000000],[1787959080000,245.92000000],[1787959380000,249.54000000],[1787959680000,257.92000000],[1787959980000,268.62000000],[1787960280000,247.68000000],[1787960580000,263.16000000],[1787960880000,221.66000000],[1787961180000,224.16000000],[1787961480000,231.18000000],[1787961780000,264.76000000],[1787962080000,266.16000000],[1787962380000,261.04000000],[1787962680000,274.44000000],[1787962980000,268.32000000],[1787963280000,214.80000000],[1787963580000,202.52000000],[1787963880000,241.70000000],[1787964180000,203.64000000],[1787964480000,204.30000000],[1787964780000,211.66000000],[1787965080000,212.38000000],[1787965380000,212.68000000],[1787965680000,215.62000000],[1787965980000,237.28000000],[1787966280000,213.14000000],[1787966580000,193.92000000],[1787966880000,198.96000000],[1787967180000,173.50000000],[1787967480000,172.16000000],[1787967780000,168.06000000],[1787968080000,161.50000000],[1787968380000,174.34000000],[1787968680000,252.66000000],[1787968980000,247.70000000],[1787969280000,200.64000000],[1787969580000,169.60000000],[1787969880000,228.34000000],[1787970180000,268.32000000],[1787970480000,258.80000000],[1787970780000,260.94000000],[1787971080000,273.82000000],[1787971380000,279.76000000],[1787971680000,274.38000000],[1787971980000,273.32000000],[1787972280000,262.38000000],[1787972580000,255.78000000],[1787972880000,270.78000000],[1787973180000,274.82000000],[1787973480000,290.46000000],[1787973780000,252.62000000],[1787974080000,253.68000000],[1787974380000,228.88000000],[1787974680000,271.02000000],[1787974980000,254.54000000],[1787975280000,230.52000000],[1787975580000,261.82000000],[1787975880000,242.40000000],[1787976180000,209.78000000],[1787976480000,186.26000000],[1787976780000,201.04000000],[1787977080000,183.94000000],[1787977380000,223.28000000],[1787977680000,263.66000000],[1787977980000,272.46000000],], 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; }