var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1773442850000,7.00000000],[1773442978000,6.92000000],[1773443298000,7.05000000],[1773443554000,7.46000000],[1773443874000,7.26000000],[1773444194000,7.57500000],[1773444450000,7.90000000],[1773444770000,7.76000000],[1773445090000,7.70000000],[1773445410000,7.72500000],[1773445666000,7.64000000],[1773445986000,7.14000000],[1773446306000,6.65000000],[1773446562000,6.64000000],[1773446882000,6.98000000],[1773447202000,6.90000000],[1773447458000,6.92000000],[1773447779000,6.68000000],[1773448099000,6.50000000],[1773448355000,6.26000000],[1773448675000,5.92000000],[1773448995000,6.10000000],[1773449251000,5.72000000],[1773449571000,6.86000000],[1773449891000,6.86666667],[1773450169000,6.10000000],[1773450548000,6.13333333],[1773450761000,6.42500000],[1773451106000,6.56666667],[1773451355000,7.04000000],[1773451763000,6.66666667],[1773451955000,6.20000000],[1773452307000,6.06666667],[1773452595000,6.60000000],[1773452867000,6.73333333],[1773453187000,6.33333333],[1773453513000,6.70000000],[1773453779000,6.54000000],[1773454099000,6.22500000],[1773454355000,6.44000000],[1773454675000,6.32000000],[1773454995000,6.47500000],[1773455253000,6.72000000],[1773455571000,6.82000000],[1773455892000,6.92000000],[1773456211000,7.12500000],[1773456467000,6.96000000],[1773456787000,7.02000000],[1773457107000,6.72500000],[1773457363000,6.56000000],[1773457683000,6.54000000],[1773458005000,6.45000000],[1773458259000,6.18000000],[1773458579000,6.20000000],[1773458899000,6.27500000],[1773459155000,6.38000000],[1773459475000,6.06000000],[1773459795000,6.10000000],[1773460051000,6.16000000],[1773460371000,6.14000000],[1773460691000,6.00000000],[1773461011000,5.82500000],[1773461267000,5.84000000],[1773461587000,5.75000000],[1773461858000,5.70000000],[1773462178000,5.78000000],[1773462498000,5.65000000],[1773462754000,5.76000000],[1773463074000,5.76000000],[1773463394000,5.65000000],[1773463650000,5.60000000],[1773463970000,5.48000000],[1773464290000,5.38000000],[1773464610000,5.35000000],[1773464866000,5.30000000],[1773465186000,5.56000000],[1773465506000,5.75000000],[1773465762000,5.74000000],[1773466082000,5.80000000],[1773466402000,5.82500000],[1773466658000,5.96000000],[1773466994000,6.10000000],[1773467250000,6.30000000],[1773467570000,6.68000000],[1773467890000,7.16000000],[1773468210000,7.57500000],[1773468466000,7.84000000],[1773468786000,7.94000000],[1773469106000,8.10000000],[1773469362000,8.26000000],[1773469682000,8.46000000],[1773470002000,8.70000000],[1773470258000,8.80000000],[1773470578000,9.02000000],[1773470898000,9.30000000],[1773471154000,9.58000000],[1773471474000,9.64000000],[1773471794000,9.77500000],[1773472050000,9.96000000],[1773472370000,9.88000000],[1773472690000,9.92000000],[1773473010000,10.05000000],[1773473266000,10.34000000],[1773473586000,10.48000000],[1773473906000,10.45000000],[1773474162000,10.68000000],[1773474482000,10.78000000],[1773474802000,10.77500000],[1773475058000,11.00000000],[1773475378000,11.14000000],[1773475698000,11.25000000],[1773475954000,11.18000000],[1773476274000,11.36000000],[1773476596000,11.55000000],[1773476850000,11.80000000],[1773477170000,11.88000000],[1773477490000,11.90000000],[1773477810000,12.00000000],[1773478066000,12.20000000],[1773478386000,12.28000000],[1773478706000,12.25000000],[1773478962000,12.34000000],[1773479282000,12.40000000],[1773479602000,12.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1773442850000,4.2],[1773442978000,4.1],[1773443298000,4],[1773443554000,4.2],[1773443874000,4],[1773444194000,4],[1773444450000,4.2],[1773444770000,4.1],[1773445090000,3.9],[1773445410000,3.9],[1773445666000,3.8],[1773445986000,3.6],[1773446306000,3.4],[1773446562000,3.3],[1773446882000,3.4],[1773447202000,3.4],[1773447458000,3.3],[1773447779000,3.2],[1773448099000,3.2],[1773448355000,3],[1773448675000,2.7],[1773448995000,2.9],[1773449251000,2.5],[1773449571000,3.1],[1773449891000,3.1],[1773450169000,2.8],[1773450548000,2.8],[1773450761000,3],[1773451106000,2.9],[1773451355000,3.1],[1773451763000,2.9],[1773451955000,2.7],[1773452307000,2.7],[1773452595000,2.6],[1773452867000,2.9],[1773453187000,2.6],[1773453513000,2.7],[1773453779000,2.6],[1773454099000,2.4],[1773454355000,2.5],[1773454675000,2.4],[1773454995000,2.3],[1773455253000,2.4],[1773455571000,2.4],[1773455892000,2.2],[1773456211000,2.5],[1773456467000,2.3],[1773456787000,2.3],[1773457107000,2.1],[1773457363000,2],[1773457683000,2],[1773458005000,2],[1773458259000,1.8],[1773458579000,1.7],[1773458899000,1.7],[1773459155000,1.7],[1773459475000,1.5],[1773459795000,1.6],[1773460051000,1.5],[1773460371000,1.6],[1773460691000,1.5],[1773461011000,1.4],[1773461267000,1.3],[1773461587000,1.3],[1773461858000,1.3],[1773462178000,1.3],[1773462498000,1.1],[1773462754000,1],[1773463074000,1.1],[1773463394000,1.1],[1773463650000,1],[1773463970000,1],[1773464290000,0.9],[1773464610000,0.8],[1773464866000,0.8],[1773465186000,0.7],[1773465506000,0.8],[1773465762000,0.8],[1773466082000,0.7],[1773466402000,0.7],[1773466658000,0.7],[1773466994000,0.8],[1773467250000,0.8],[1773467570000,1],[1773467890000,1.2],[1773468210000,1.2],[1773468466000,1.6],[1773468786000,1.7],[1773469106000,1.7],[1773469362000,1.7],[1773469682000,1.7],[1773470002000,1.8],[1773470258000,1.8],[1773470578000,1.9],[1773470898000,1.9],[1773471154000,2.1],[1773471474000,2.2],[1773471794000,2.2],[1773472050000,2.4],[1773472370000,2.4],[1773472690000,2.3],[1773473010000,2.5],[1773473266000,2.6],[1773473586000,2.6],[1773473906000,2.6],[1773474162000,2.7],[1773474482000,2.8],[1773474802000,2.8],[1773475058000,3],[1773475378000,3.1],[1773475698000,3.2],[1773475954000,3.1],[1773476274000,3.3],[1773476596000,3.4],[1773476850000,3.5],[1773477170000,3.8],[1773477490000,3.6],[1773477810000,3.6],[1773478066000,4],[1773478386000,3.8],[1773478706000,3.8],[1773478962000,3.8],[1773479282000,3.7],[1773479602000,3.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() { dataset = [ { label: 'Vlhkosť (%)', data: [[1773442850000,82.50000000],[1773442978000,82.60000000],[1773443298000,81.25000000],[1773443554000,80.00000000],[1773443874000,80.20000000],[1773444194000,78.25000000],[1773444450000,77.80000000],[1773444770000,78.00000000],[1773445090000,77.00000000],[1773445410000,76.75000000],[1773445666000,77.00000000],[1773445986000,78.60000000],[1773446306000,79.75000000],[1773446562000,79.40000000],[1773446882000,78.00000000],[1773447202000,78.75000000],[1773447458000,78.00000000],[1773447779000,78.80000000],[1773448099000,79.75000000],[1773448355000,79.60000000],[1773448675000,80.20000000],[1773448995000,80.00000000],[1773449251000,80.20000000],[1773449571000,77.20000000],[1773449891000,77.00000000],[1773450169000,79.60000000],[1773450548000,79.66666667],[1773450761000,78.75000000],[1773451106000,77.66666667],[1773451355000,76.20000000],[1773451763000,77.33333333],[1773451955000,78.50000000],[1773452307000,79.00000000],[1773452595000,76.00000000],[1773452867000,77.00000000],[1773453187000,77.33333333],[1773453513000,76.00000000],[1773453779000,76.40000000],[1773454099000,77.00000000],[1773454355000,76.00000000],[1773454675000,76.00000000],[1773454995000,74.75000000],[1773455253000,74.40000000],[1773455571000,73.60000000],[1773455892000,72.40000000],[1773456211000,72.50000000],[1773456467000,72.60000000],[1773456787000,72.00000000],[1773457107000,72.75000000],[1773457363000,72.80000000],[1773457683000,73.00000000],[1773458005000,73.50000000],[1773458259000,73.60000000],[1773458579000,73.20000000],[1773458899000,72.75000000],[1773459155000,72.40000000],[1773459475000,73.00000000],[1773459795000,73.00000000],[1773460051000,72.20000000],[1773460371000,72.80000000],[1773460691000,73.00000000],[1773461011000,73.25000000],[1773461267000,73.00000000],[1773461587000,73.50000000],[1773461858000,73.40000000],[1773462178000,73.20000000],[1773462498000,73.00000000],[1773462754000,72.00000000],[1773463074000,72.20000000],[1773463394000,72.75000000],[1773463650000,72.80000000],[1773463970000,73.00000000],[1773464290000,73.00000000],[1773464610000,73.00000000],[1773464866000,72.80000000],[1773465186000,71.20000000],[1773465506000,70.75000000],[1773465762000,71.00000000],[1773466082000,70.20000000],[1773466402000,70.00000000],[1773466658000,69.20000000],[1773466994000,69.00000000],[1773467250000,68.20000000],[1773467570000,67.20000000],[1773467890000,66.00000000],[1773468210000,64.50000000],[1773468466000,64.80000000],[1773468786000,65.00000000],[1773469106000,64.50000000],[1773469362000,63.60000000],[1773469682000,62.80000000],[1773470002000,62.25000000],[1773470258000,62.00000000],[1773470578000,61.20000000],[1773470898000,60.25000000],[1773471154000,60.00000000],[1773471474000,60.00000000],[1773471794000,59.75000000],[1773472050000,59.60000000],[1773472370000,60.20000000],[1773472690000,59.60000000],[1773473010000,59.75000000],[1773473266000,59.00000000],[1773473586000,58.60000000],[1773473906000,58.50000000],[1773474162000,58.00000000],[1773474482000,58.00000000],[1773474802000,58.00000000],[1773475058000,58.20000000],[1773475378000,57.80000000],[1773475698000,58.00000000],[1773475954000,57.80000000],[1773476274000,57.80000000],[1773476596000,57.50000000],[1773476850000,57.20000000],[1773477170000,57.80000000],[1773477490000,57.00000000],[1773477810000,56.75000000],[1773478066000,57.40000000],[1773478386000,56.60000000],[1773478706000,56.50000000],[1773478962000,56.20000000],[1773479282000,55.60000000],[1773479602000,56.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: [[1773442850000,1015.6],[1773442978000,1015.6],[1773443298000,1015.5],[1773443554000,1015.3],[1773443874000,1015.4],[1773444194000,1015.3],[1773444450000,1015.2],[1773444770000,1015.2],[1773445090000,1015.2],[1773445410000,1015.1],[1773445666000,1015],[1773445986000,1015.2],[1773446306000,1015.1],[1773446562000,1015.1],[1773446882000,1015],[1773447202000,1015.1],[1773447458000,1015],[1773447779000,1015],[1773448099000,1015.1],[1773448355000,1015],[1773448675000,1015],[1773448995000,1014.9],[1773449251000,1014.8],[1773449571000,1014.7],[1773449891000,1014.8],[1773450169000,1014.6],[1773450548000,1014.6],[1773450761000,1014.4],[1773451106000,1014.4],[1773451355000,1014.3],[1773451763000,1014.4],[1773451955000,1014.3],[1773452307000,1014.3],[1773452595000,1014.1],[1773452867000,1013.9],[1773453187000,1014],[1773453513000,1013.9],[1773453779000,1013.9],[1773454099000,1013.9],[1773454355000,1013.8],[1773454675000,1013.7],[1773454995000,1013.8],[1773455253000,1013.7],[1773455571000,1013.6],[1773455892000,1013.5],[1773456211000,1013.6],[1773456467000,1013.5],[1773456787000,1013.5],[1773457107000,1013.5],[1773457363000,1013.5],[1773457683000,1013.4],[1773458005000,1013.5],[1773458259000,1013.5],[1773458579000,1013.4],[1773458899000,1013.4],[1773459155000,1013.4],[1773459475000,1013.3],[1773459795000,1013.3],[1773460051000,1013.3],[1773460371000,1013.1],[1773460691000,1013.1],[1773461011000,1013.1],[1773461267000,1013.2],[1773461587000,1013.2],[1773461858000,1013.1],[1773462178000,1013],[1773462498000,1012.9],[1773462754000,1012.8],[1773463074000,1012.8],[1773463394000,1012.9],[1773463650000,1012.9],[1773463970000,1012.8],[1773464290000,1012.8],[1773464610000,1012.8],[1773464866000,1012.8],[1773465186000,1012.7],[1773465506000,1012.7],[1773465762000,1012.8],[1773466082000,1012.7],[1773466402000,1012.6],[1773466658000,1012.5],[1773466994000,1012.5],[1773467250000,1012.5],[1773467570000,1012.5],[1773467890000,1012.5],[1773468210000,1012.5],[1773468466000,1012.5],[1773468786000,1012.4],[1773469106000,1012.4],[1773469362000,1012.4],[1773469682000,1012.2],[1773470002000,1012.1],[1773470258000,1012.2],[1773470578000,1012.2],[1773470898000,1012.2],[1773471154000,1012.1],[1773471474000,1012.1],[1773471794000,1012.1],[1773472050000,1012],[1773472370000,1012.1],[1773472690000,1012],[1773473010000,1012],[1773473266000,1012.1],[1773473586000,1012],[1773473906000,1012],[1773474162000,1011.9],[1773474482000,1011.9],[1773474802000,1011.9],[1773475058000,1011.9],[1773475378000,1011.8],[1773475698000,1011.8],[1773475954000,1011.7],[1773476274000,1011.7],[1773476596000,1011.5],[1773476850000,1011.5],[1773477170000,1011.4],[1773477490000,1011.4],[1773477810000,1011.2],[1773478066000,1011.4],[1773478386000,1011.3],[1773478706000,1011.2],[1773478962000,1011.3],[1773479282000,1011.2],[1773479602000,1011.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: [[1773442850000,0.9],[1773442978000,0.864],[1773443298000,2.61],[1773443554000,1.8],[1773443874000,2.016],[1773444194000,2.97],[1773444450000,3.24],[1773444770000,4.248],[1773445090000,1.728],[1773445410000,0.54],[1773445666000,0],[1773445986000,0.72],[1773446306000,0.72],[1773446562000,2.376],[1773446882000,3.744],[1773447202000,2.43],[1773447458000,0.144],[1773447779000,0],[1773448099000,0],[1773448355000,1.224],[1773448675000,1.368],[1773448995000,0.72],[1773449251000,1.944],[1773449571000,3.384],[1773449891000,1.559999988],[1773450169000,1.368],[1773450548000,3.24],[1773450761000,5.49],[1773451106000,3.840000012],[1773451355000,5.256],[1773451763000,2.400000012],[1773451955000,0.72],[1773452307000,2.760000012],[1773452595000,7.65],[1773452867000,5.4],[1773453187000,3.719999988],[1773453513000,5.04],[1773453779000,4.752],[1773454099000,4.5],[1773454355000,4.752],[1773454675000,2.808],[1773454995000,5.58],[1773455253000,5.544],[1773455571000,4.968],[1773455892000,7.488],[1773456211000,8.19],[1773456467000,7.848],[1773456787000,6.264],[1773457107000,4.86],[1773457363000,5.904],[1773457683000,10.008],[1773458005000,8.01],[1773458259000,6.84],[1773458579000,8.064],[1773458899000,10.71],[1773459155000,8.208],[1773459475000,8.28],[1773459795000,8.28],[1773460051000,10.368],[1773460371000,8.28],[1773460691000,7.416],[1773461011000,6.39],[1773461267000,7.488],[1773461587000,7.38],[1773461858000,8.856],[1773462178000,6.552],[1773462498000,8.19],[1773462754000,8.136],[1773463074000,6.264],[1773463394000,6.21],[1773463650000,6.048],[1773463970000,5.112],[1773464290000,6.624],[1773464610000,5.58],[1773464866000,5.76],[1773465186000,6.264],[1773465506000,7.92],[1773465762000,5.832],[1773466082000,7.704],[1773466402000,7.47],[1773466658000,4.968],[1773466994000,7.11],[1773467250000,5.76],[1773467570000,5.328],[1773467890000,5.616],[1773468210000,4.95],[1773468466000,6.84],[1773468786000,5.688],[1773469106000,7.47],[1773469362000,6.624],[1773469682000,7.632],[1773470002000,6.3],[1773470258000,6.552],[1773470578000,7.848],[1773470898000,3.96],[1773471154000,7.56],[1773471474000,8.568],[1773471794000,6.75],[1773472050000,8.712],[1773472370000,11.664],[1773472690000,10.584],[1773473010000,7.83],[1773473266000,6.912],[1773473586000,10.512],[1773473906000,9.99],[1773474162000,8.352],[1773474482000,9.072],[1773474802000,8.55],[1773475058000,7.848],[1773475378000,7.848],[1773475698000,11.25],[1773475954000,9.864],[1773476274000,11.664],[1773476596000,9.99],[1773476850000,8.64],[1773477170000,7.992],[1773477490000,10.728],[1773477810000,10.53],[1773478066000,7.416],[1773478386000,8.496],[1773478706000,10.89],[1773478962000,12.528],[1773479282000,9.936],[1773479602000,11.52],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1773442850000,2.52],[1773442978000,2.016],[1773443298000,5.04],[1773443554000,2.52],[1773443874000,3.528],[1773444194000,4.41],[1773444450000,4.536],[1773444770000,7.056],[1773445090000,3.024],[1773445410000,1.26],[1773445666000,0],[1773445986000,1.008],[1773446306000,1.89],[1773446562000,4.032],[1773446882000,5.04],[1773447202000,3.15],[1773447458000,1.008],[1773447779000,0],[1773448099000,0],[1773448355000,2.016],[1773448675000,1.512],[1773448995000,1.26],[1773449251000,2.52],[1773449571000,5.544],[1773449891000,3.359999988],[1773450169000,2.52],[1773450548000,4.200000012],[1773450761000,7.56],[1773451106000,5.879999988],[1773451355000,7.056],[1773451763000,3.359999988],[1773451955000,1.26],[1773452307000,4.200000012],[1773452595000,9.54],[1773452867000,7.56],[1773453187000,5.879999988],[1773453513000,7.56],[1773453779000,6.048],[1773454099000,6.3],[1773454355000,7.056],[1773454675000,5.04],[1773454995000,7.56],[1773455253000,8.136],[1773455571000,7.056],[1773455892000,10.152],[1773456211000,10.89],[1773456467000,11.232],[1773456787000,9.648],[1773457107000,6.93],[1773457363000,7.56],[1773457683000,12.312],[1773458005000,12.78],[1773458259000,8.568],[1773458579000,10.224],[1773458899000,14.22],[1773459155000,12.312],[1773459475000,11.232],[1773459795000,11.52],[1773460051000,14.976],[1773460371000,11.808],[1773460691000,11.808],[1773461011000,8.82],[1773461267000,10.152],[1773461587000,10.8],[1773461858000,12.888],[1773462178000,9.144],[1773462498000,9.45],[1773462754000,11.232],[1773463074000,9.576],[1773463394000,9.54],[1773463650000,8.568],[1773463970000,8.136],[1773464290000,9.72],[1773464610000,8.19],[1773464866000,7.56],[1773465186000,9.648],[1773465506000,12.78],[1773465762000,7.56],[1773466082000,10.728],[1773466402000,9.45],[1773466658000,7.056],[1773466994000,10.17],[1773467250000,8.136],[1773467570000,8.568],[1773467890000,8.064],[1773468210000,8.28],[1773468466000,11.304],[1773468786000,9.144],[1773469106000,12.15],[1773469362000,9.144],[1773469682000,11.304],[1773470002000,10.17],[1773470258000,11.304],[1773470578000,11.232],[1773470898000,6.3],[1773471154000,11.232],[1773471474000,11.808],[1773471794000,10.17],[1773472050000,11.736],[1773472370000,18.504],[1773472690000,14.976],[1773473010000,10.89],[1773473266000,9.648],[1773473586000,13.824],[1773473906000,16.56],[1773474162000,12.24],[1773474482000,11.736],[1773474802000,13.5],[1773475058000,11.808],[1773475378000,12.816],[1773475698000,15.39],[1773475954000,15.84],[1773476274000,17.424],[1773476596000,17.37],[1773476850000,10.08],[1773477170000,12.744],[1773477490000,14.904],[1773477810000,15.39],[1773478066000,10.656],[1773478386000,14.904],[1773478706000,16.11],[1773478962000,16.488],[1773479282000,14.832],[1773479602000,20.52],], 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: [[1773442850000,34.00000000],[1773442978000,37.20000000],[1773443298000,61.25000000],[1773443554000,36.80000000],[1773443874000,55.40000000],[1773444194000,54.00000000],[1773444450000,70.00000000],[1773444770000,54.80000000],[1773445090000,71.20000000],[1773445410000,41.25000000],[1773445666000,148.00000000],[1773445986000,201.40000000],[1773446306000,89.50000000],[1773446562000,64.80000000],[1773446882000,63.80000000],[1773447202000,51.00000000],[1773447458000,28.40000000],[1773447779000,339.40000000],[1773448099000,252.50000000],[1773448355000,164.40000000],[1773448675000,50.60000000],[1773448995000,50.00000000],[1773449251000,63.00000000],[1773449571000,69.00000000],[1773449891000,31.66666667],[1773450169000,22.20000000],[1773450548000,30.33333333],[1773450761000,60.25000000],[1773451106000,46.66666667],[1773451355000,56.80000000],[1773451763000,55.00000000],[1773451955000,34.75000000],[1773452307000,56.33333333],[1773452595000,74.25000000],[1773452867000,52.00000000],[1773453187000,61.66666667],[1773453513000,62.00000000],[1773453779000,59.80000000],[1773454099000,63.00000000],[1773454355000,68.20000000],[1773454675000,67.20000000],[1773454995000,49.75000000],[1773455253000,92.80000000],[1773455571000,92.80000000],[1773455892000,96.20000000],[1773456211000,73.50000000],[1773456467000,87.00000000],[1773456787000,77.40000000],[1773457107000,141.50000000],[1773457363000,74.40000000],[1773457683000,48.80000000],[1773458005000,56.75000000],[1773458259000,63.00000000],[1773458579000,65.60000000],[1773458899000,81.25000000],[1773459155000,55.40000000],[1773459475000,58.80000000],[1773459795000,73.25000000],[1773460051000,75.60000000],[1773460371000,75.00000000],[1773460691000,53.00000000],[1773461011000,63.50000000],[1773461267000,77.40000000],[1773461587000,78.25000000],[1773461858000,72.80000000],[1773462178000,79.20000000],[1773462498000,64.50000000],[1773462754000,49.40000000],[1773463074000,49.00000000],[1773463394000,55.75000000],[1773463650000,49.40000000],[1773463970000,44.40000000],[1773464290000,63.60000000],[1773464610000,50.00000000],[1773464866000,41.80000000],[1773465186000,45.60000000],[1773465506000,48.50000000],[1773465762000,41.40000000],[1773466082000,41.60000000],[1773466402000,24.75000000],[1773466658000,44.60000000],[1773466994000,54.50000000],[1773467250000,103.80000000],[1773467570000,169.60000000],[1773467890000,41.80000000],[1773468210000,63.25000000],[1773468466000,33.80000000],[1773468786000,32.00000000],[1773469106000,218.00000000],[1773469362000,121.00000000],[1773469682000,44.60000000],[1773470002000,45.75000000],[1773470258000,80.00000000],[1773470578000,102.40000000],[1773470898000,39.25000000],[1773471154000,116.20000000],[1773471474000,128.60000000],[1773471794000,90.25000000],[1773472050000,94.20000000],[1773472370000,140.60000000],[1773472690000,96.80000000],[1773473010000,76.75000000],[1773473266000,84.40000000],[1773473586000,77.60000000],[1773473906000,85.25000000],[1773474162000,132.40000000],[1773474482000,104.60000000],[1773474802000,120.25000000],[1773475058000,96.00000000],[1773475378000,114.20000000],[1773475698000,152.50000000],[1773475954000,120.60000000],[1773476274000,129.60000000],[1773476596000,138.25000000],[1773476850000,84.00000000],[1773477170000,96.80000000],[1773477490000,80.80000000],[1773477810000,123.75000000],[1773478066000,90.80000000],[1773478386000,146.80000000],[1773478706000,196.00000000],[1773478962000,119.60000000],[1773479282000,103.80000000],[1773479602000,310.00000000],], 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: 'Slnečné žiarenie (W/m2)', data: [[1773442850000,0.00000000],[1773442978000,0.00000000],[1773443298000,0.00000000],[1773443554000,0.00000000],[1773443874000,0.00000000],[1773444194000,0.00000000],[1773444450000,0.00000000],[1773444770000,0.00000000],[1773445090000,0.00000000],[1773445410000,0.00000000],[1773445666000,0.00000000],[1773445986000,0.00000000],[1773446306000,0.00000000],[1773446562000,0.00000000],[1773446882000,0.00000000],[1773447202000,0.00000000],[1773447458000,0.00000000],[1773447779000,0.00000000],[1773448099000,0.00000000],[1773448355000,0.00000000],[1773448675000,0.00000000],[1773448995000,0.00000000],[1773449251000,0.00000000],[1773449571000,0.00000000],[1773449891000,0.00000000],[1773450169000,0.00000000],[1773450548000,0.00000000],[1773450761000,0.00000000],[1773451106000,0.00000000],[1773451355000,0.00000000],[1773451763000,0.00000000],[1773451955000,0.00000000],[1773452307000,0.00000000],[1773452595000,0.00000000],[1773452867000,0.00000000],[1773453187000,0.00000000],[1773453513000,0.00000000],[1773453779000,0.00000000],[1773454099000,0.00000000],[1773454355000,0.00000000],[1773454675000,0.00000000],[1773454995000,0.00000000],[1773455253000,0.00000000],[1773455571000,0.00000000],[1773455892000,0.00000000],[1773456211000,0.00000000],[1773456467000,0.00000000],[1773456787000,0.00000000],[1773457107000,0.00000000],[1773457363000,0.00000000],[1773457683000,0.00000000],[1773458005000,0.00000000],[1773458259000,0.00000000],[1773458579000,0.00000000],[1773458899000,0.00000000],[1773459155000,0.00000000],[1773459475000,0.00000000],[1773459795000,0.00000000],[1773460051000,0.00000000],[1773460371000,0.00000000],[1773460691000,0.00000000],[1773461011000,0.00000000],[1773461267000,0.00000000],[1773461587000,0.00000000],[1773461858000,0.00000000],[1773462178000,0.00000000],[1773462498000,0.00000000],[1773462754000,0.00000000],[1773463074000,0.00000000],[1773463394000,0.00000000],[1773463650000,0.00000000],[1773463970000,0.20000000],[1773464290000,1.40000000],[1773464610000,3.00000000],[1773464866000,5.40000000],[1773465186000,8.00000000],[1773465506000,11.00000000],[1773465762000,13.40000000],[1773466082000,16.20000000],[1773466402000,19.25000000],[1773466658000,21.60000000],[1773466994000,24.00000000],[1773467250000,26.80000000],[1773467570000,32.00000000],[1773467890000,34.00000000],[1773468210000,39.50000000],[1773468466000,41.60000000],[1773468786000,51.60000000],[1773469106000,49.25000000],[1773469362000,56.80000000],[1773469682000,65.20000000],[1773470002000,74.50000000],[1773470258000,80.80000000],[1773470578000,92.20000000],[1773470898000,114.75000000],[1773471154000,130.00000000],[1773471474000,125.80000000],[1773471794000,110.50000000],[1773472050000,136.00000000],[1773472370000,160.00000000],[1773472690000,161.40000000],[1773473010000,198.00000000],[1773473266000,178.40000000],[1773473586000,202.60000000],[1773473906000,181.25000000],[1773474162000,203.60000000],[1773474482000,209.00000000],[1773474802000,230.50000000],[1773475058000,182.80000000],[1773475378000,229.00000000],[1773475698000,236.50000000],[1773475954000,264.60000000],[1773476274000,332.40000000],[1773476596000,273.75000000],[1773476850000,242.20000000],[1773477170000,335.60000000],[1773477490000,349.40000000],[1773477810000,347.75000000],[1773478066000,343.80000000],[1773478386000,369.20000000],[1773478706000,400.00000000],[1773478962000,410.60000000],[1773479282000,412.40000000],[1773479602000,420.00000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], 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.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'UV žiarenie', data: [[1773442850000,0.00000000],[1773442978000,0.00000000],[1773443298000,0.00000000],[1773443554000,0.00000000],[1773443874000,0.00000000],[1773444194000,0.00000000],[1773444450000,0.00000000],[1773444770000,0.00000000],[1773445090000,0.00000000],[1773445410000,0.00000000],[1773445666000,0.00000000],[1773445986000,0.00000000],[1773446306000,0.00000000],[1773446562000,0.00000000],[1773446882000,0.00000000],[1773447202000,0.00000000],[1773447458000,0.00000000],[1773447779000,0.00000000],[1773448099000,0.00000000],[1773448355000,0.00000000],[1773448675000,0.00000000],[1773448995000,0.00000000],[1773449251000,0.00000000],[1773449571000,0.00000000],[1773449891000,0.00000000],[1773450169000,0.00000000],[1773450548000,0.00000000],[1773450761000,0.00000000],[1773451106000,0.00000000],[1773451355000,0.00000000],[1773451763000,0.00000000],[1773451955000,0.00000000],[1773452307000,0.00000000],[1773452595000,0.00000000],[1773452867000,0.00000000],[1773453187000,0.00000000],[1773453513000,0.00000000],[1773453779000,0.00000000],[1773454099000,0.00000000],[1773454355000,0.00000000],[1773454675000,0.00000000],[1773454995000,0.00000000],[1773455253000,0.00000000],[1773455571000,0.00000000],[1773455892000,0.00000000],[1773456211000,0.00000000],[1773456467000,0.00000000],[1773456787000,0.00000000],[1773457107000,0.00000000],[1773457363000,0.00000000],[1773457683000,0.00000000],[1773458005000,0.00000000],[1773458259000,0.00000000],[1773458579000,0.00000000],[1773458899000,0.00000000],[1773459155000,0.00000000],[1773459475000,0.00000000],[1773459795000,0.00000000],[1773460051000,0.00000000],[1773460371000,0.00000000],[1773460691000,0.00000000],[1773461011000,0.00000000],[1773461267000,0.00000000],[1773461587000,0.00000000],[1773461858000,0.00000000],[1773462178000,0.00000000],[1773462498000,0.00000000],[1773462754000,0.00000000],[1773463074000,0.00000000],[1773463394000,0.00000000],[1773463650000,0.00000000],[1773463970000,0.00000000],[1773464290000,0.00000000],[1773464610000,0.00000000],[1773464866000,0.00000000],[1773465186000,0.00000000],[1773465506000,0.00000000],[1773465762000,0.00000000],[1773466082000,0.00000000],[1773466402000,0.00000000],[1773466658000,0.00000000],[1773466994000,0.00000000],[1773467250000,0.00000000],[1773467570000,0.00000000],[1773467890000,0.00000000],[1773468210000,0.00000000],[1773468466000,0.00000000],[1773468786000,0.00000000],[1773469106000,0.00000000],[1773469362000,0.00000000],[1773469682000,0.00000000],[1773470002000,0.00000000],[1773470258000,0.00000000],[1773470578000,0.60000000],[1773470898000,1.00000000],[1773471154000,1.00000000],[1773471474000,1.00000000],[1773471794000,0.75000000],[1773472050000,1.00000000],[1773472370000,1.00000000],[1773472690000,0.80000000],[1773473010000,1.00000000],[1773473266000,1.20000000],[1773473586000,1.60000000],[1773473906000,1.50000000],[1773474162000,1.60000000],[1773474482000,1.60000000],[1773474802000,1.75000000],[1773475058000,1.20000000],[1773475378000,1.60000000],[1773475698000,1.50000000],[1773475954000,2.20000000],[1773476274000,3.00000000],[1773476596000,2.25000000],[1773476850000,2.00000000],[1773477170000,3.00000000],[1773477490000,3.00000000],[1773477810000,3.00000000],[1773478066000,3.00000000],[1773478386000,3.00000000],[1773478706000,3.25000000],[1773478962000,3.60000000],[1773479282000,4.00000000],[1773479602000,4.00000000],], color: '#802674' } ]; var options = { xaxes: [{ axisLabel: 'uv', }], 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.0' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-uv-legend' } }; graphs['#chart-uv'] = $.plot('#chart-uv', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1773442850000,0.00000000],[1773442978000,0.00000000],[1773443298000,0.00000000],[1773443554000,0.00000000],[1773443874000,0.00000000],[1773444194000,0.00000000],[1773444450000,0.00000000],[1773444770000,0.00000000],[1773445090000,0.00000000],[1773445410000,0.00000000],[1773445666000,0.00000000],[1773445986000,0.00000000],[1773446306000,0.00000000],[1773446562000,0.00000000],[1773446882000,0.00000000],[1773447202000,0.00000000],[1773447458000,0.00000000],[1773447779000,0.00000000],[1773448099000,0.00000000],[1773448355000,0.00000000],[1773448675000,0.00000000],[1773448995000,0.00000000],[1773449251000,0.00000000],[1773449571000,0.00000000],[1773449891000,0.00000000],[1773450169000,0.00000000],[1773450548000,0.00000000],[1773450761000,0.00000000],[1773451106000,0.00000000],[1773451355000,0.00000000],[1773451763000,0.00000000],[1773451955000,0.00000000],[1773452307000,0.00000000],[1773452595000,0.00000000],[1773452867000,0.00000000],[1773453187000,0.00000000],[1773453513000,0.00000000],[1773453779000,0.00000000],[1773454099000,0.00000000],[1773454355000,0.00000000],[1773454675000,0.00000000],[1773454995000,0.00000000],[1773455253000,0.00000000],[1773455571000,0.00000000],[1773455892000,0.00000000],[1773456211000,0.00000000],[1773456467000,0.00000000],[1773456787000,0.00000000],[1773457107000,0.00000000],[1773457363000,0.00000000],[1773457683000,0.00000000],[1773458005000,0.00000000],[1773458259000,0.00000000],[1773458579000,0.00000000],[1773458899000,0.00000000],[1773459155000,0.00000000],[1773459475000,0.00000000],[1773459795000,0.00000000],[1773460051000,0.00000000],[1773460371000,0.00000000],[1773460691000,0.00000000],[1773461011000,0.00000000],[1773461267000,0.00000000],[1773461587000,0.00000000],[1773461858000,0.00000000],[1773462178000,0.00000000],[1773462498000,0.00000000],[1773462754000,0.00000000],[1773463074000,0.00000000],[1773463394000,0.00000000],[1773463650000,0.00000000],[1773463970000,0.00000000],[1773464290000,0.00000000],[1773464610000,0.00000000],[1773464866000,0.00000000],[1773465186000,0.00000000],[1773465506000,0.00000000],[1773465762000,0.00000000],[1773466082000,0.00000000],[1773466402000,0.00000000],[1773466658000,0.00000000],[1773466994000,0.00000000],[1773467250000,0.00000000],[1773467570000,0.00000000],[1773467890000,0.00000000],[1773468210000,0.00000000],[1773468466000,0.00000000],[1773468786000,0.00000000],[1773469106000,0.00000000],[1773469362000,0.00000000],[1773469682000,0.00000000],[1773470002000,0.00000000],[1773470258000,0.00000000],[1773470578000,0.00000000],[1773470898000,0.00000000],[1773471154000,0.00000000],[1773471474000,0.00000000],[1773471794000,0.00000000],[1773472050000,0.00000000],[1773472370000,0.00000000],[1773472690000,0.00000000],[1773473010000,0.00000000],[1773473266000,0.00000000],[1773473586000,0.00000000],[1773473906000,0.00000000],[1773474162000,0.00000000],[1773474482000,0.00000000],[1773474802000,0.00000000],[1773475058000,0.00000000],[1773475378000,0.00000000],[1773475698000,0.00000000],[1773475954000,0.00000000],[1773476274000,0.00000000],[1773476596000,0.00000000],[1773476850000,0.00000000],[1773477170000,0.00000000],[1773477490000,0.00000000],[1773477810000,0.00000000],[1773478066000,0.00000000],[1773478386000,0.00000000],[1773478706000,0.00000000],[1773478962000,0.00000000],[1773479282000,0.00000000],[1773479602000,0.00000000],], 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; }