var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1764889202000,8.27500000],[1764889378000,8.20000000],[1764889650000,8.21250000],[1764889954000,8.27500000],[1764890274000,8.15555556],[1764890578000,8.15000000],[1764890850000,8.15000000],[1764891153000,8.20000000],[1764891474000,8.26666667],[1764891777000,8.13750000],[1764892050000,8.10000000],[1764892353000,8.15555556],[1764892674000,8.23750000],[1764892978000,8.20000000],[1764893435000,8.30000000],[1764893553000,8.30000000],[1764893874000,8.30000000],[1764894178000,8.30000000],[1764894450000,8.30000000],[1764894753000,8.22222222],[1764895074000,8.16250000],[1764895378000,8.05555556],[1764895682000,7.83750000],[1764895953000,7.78888889],[1764896306000,7.70000000],[1764896578000,7.78888889],[1764896881000,7.80000000],[1764897153000,7.82222222],[1764897506000,7.85000000],[1764897778000,7.66666667],[1764898081000,7.60000000],[1764898353000,7.58571429],[1764898674000,7.37777778],[1764898978000,7.30000000],[1764899250000,7.35000000],[1764899553000,7.33333333],[1764899874000,7.26666667],[1764900177000,7.26666667],[1764900497000,7.40000000],[1764900770000,7.30000000],[1764901105000,7.40000000],[1764901378000,7.40000000],[1764901729000,7.50000000],[1764901969000,7.57500000],[1764902305000,7.53333333],[1764902578000,7.50000000],[1764902850000,7.52500000],[1764903153000,7.54444444],[1764903505000,7.53750000],[1764903778000,7.60000000],[1764904050000,7.56250000],[1764904353000,7.60000000],[1764904705000,7.60000000],[1764904978000,7.60000000],[1764905281000,7.60000000],[1764905553000,7.55000000],[1764905874000,7.60000000],[1764906177000,7.67500000],[1764906450000,7.70000000],[1764906753000,7.70000000],[1764907073000,7.64444444],[1764907377000,7.68750000],[1764907682000,7.70000000],[1764907953000,7.63333333],[1764908305000,7.60000000],[1764908609000,7.60000000],[1764908850000,7.55000000],[1764909153000,7.60000000],[1764909473000,7.63333333],[1764909777000,7.70000000],[1764910081000,7.70000000],[1764910353000,7.70000000],[1764910673000,7.70000000],[1764911057000,7.60000000],[1764911282000,7.60000000],[1764911553000,7.60000000],[1764911889000,7.58571429],[1764912178000,7.56250000],[1764912481000,7.60000000],[1764912754000,7.60000000],[1764913089000,7.60000000],[1764913473000,7.55000000],[1764913650000,7.56000000],[1764913970000,7.60000000],[1764914449000,7.70000000],[1764914578000,7.62000000],[1764914897000,7.60000000],[1764915169000,7.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1764889202000,5.5],[1764889378000,5.5],[1764889650000,5.5],[1764889954000,5.6],[1764890274000,5.6],[1764890578000,5.6],[1764890850000,5.6],[1764891153000,5.6],[1764891474000,5.5],[1764891777000,5.6],[1764892050000,5.5],[1764892353000,5.5],[1764892674000,5.5],[1764892978000,5.6],[1764893435000,5.5],[1764893553000,5.5],[1764893874000,5.5],[1764894178000,5.5],[1764894450000,5.6],[1764894753000,5.7],[1764895074000,5.7],[1764895378000,5.8],[1764895682000,5.8],[1764895953000,5.8],[1764896306000,5.8],[1764896578000,5.8],[1764896881000,5.9],[1764897153000,5.8],[1764897506000,6],[1764897778000,6],[1764898081000,6.1],[1764898353000,6.1],[1764898674000,6.1],[1764898978000,6.1],[1764899250000,6],[1764899553000,6.1],[1764899874000,6.1],[1764900177000,6],[1764900497000,6.2],[1764900770000,6.1],[1764901105000,6],[1764901378000,6],[1764901729000,6],[1764901969000,6],[1764902305000,6],[1764902578000,5.9],[1764902850000,6],[1764903153000,6],[1764903505000,6],[1764903778000,6],[1764904050000,6],[1764904353000,6],[1764904705000,6],[1764904978000,6],[1764905281000,6.1],[1764905553000,6.1],[1764905874000,6.1],[1764906177000,6.1],[1764906450000,6.1],[1764906753000,6.1],[1764907073000,6.3],[1764907377000,6.2],[1764907682000,6.2],[1764907953000,6.2],[1764908305000,6.2],[1764908609000,6.2],[1764908850000,6.2],[1764909153000,6.2],[1764909473000,6.2],[1764909777000,6.1],[1764910081000,6.1],[1764910353000,6.2],[1764910673000,6.2],[1764911057000,6.2],[1764911282000,6.2],[1764911553000,6.2],[1764911889000,6.2],[1764912178000,6.2],[1764912481000,6.2],[1764912754000,6.2],[1764913089000,6.2],[1764913473000,6.2],[1764913650000,6.2],[1764913970000,6.2],[1764914449000,6.1],[1764914578000,6.1],[1764914897000,6],[1764915169000,5.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: [[1764889202000,83.00000000],[1764889378000,83.50000000],[1764889650000,83.00000000],[1764889954000,83.50000000],[1764890274000,84.00000000],[1764890578000,84.00000000],[1764890850000,83.87500000],[1764891153000,83.66666667],[1764891474000,83.11111111],[1764891777000,84.00000000],[1764892050000,84.00000000],[1764892353000,83.44444444],[1764892674000,83.12500000],[1764892978000,84.00000000],[1764893435000,83.00000000],[1764893553000,83.00000000],[1764893874000,82.77777778],[1764894178000,83.00000000],[1764894450000,83.22222222],[1764894753000,84.22222222],[1764895074000,84.75000000],[1764895378000,85.77777778],[1764895682000,87.00000000],[1764895953000,87.44444444],[1764896306000,87.87500000],[1764896578000,87.55555556],[1764896881000,88.00000000],[1764897153000,87.11111111],[1764897506000,88.12500000],[1764897778000,89.33333333],[1764898081000,90.12500000],[1764898353000,90.14285714],[1764898674000,91.77777778],[1764898978000,92.00000000],[1764899250000,91.37500000],[1764899553000,91.88888889],[1764899874000,92.50000000],[1764900177000,92.00000000],[1764900497000,92.00000000],[1764900770000,92.00000000],[1764901105000,91.00000000],[1764901378000,91.00000000],[1764901729000,90.50000000],[1764901969000,90.00000000],[1764902305000,90.00000000],[1764902578000,90.00000000],[1764902850000,90.25000000],[1764903153000,90.00000000],[1764903505000,90.00000000],[1764903778000,90.00000000],[1764904050000,90.00000000],[1764904353000,90.00000000],[1764904705000,90.00000000],[1764904978000,90.00000000],[1764905281000,90.50000000],[1764905553000,90.75000000],[1764905874000,90.44444444],[1764906177000,90.00000000],[1764906450000,90.00000000],[1764906753000,90.00000000],[1764907073000,91.00000000],[1764907377000,90.50000000],[1764907682000,90.12500000],[1764907953000,91.00000000],[1764908305000,91.00000000],[1764908609000,91.00000000],[1764908850000,91.00000000],[1764909153000,91.00000000],[1764909473000,90.66666667],[1764909777000,90.00000000],[1764910081000,90.00000000],[1764910353000,90.50000000],[1764910673000,90.20000000],[1764911057000,91.00000000],[1764911282000,91.00000000],[1764911553000,91.00000000],[1764911889000,91.00000000],[1764912178000,91.00000000],[1764912481000,91.00000000],[1764912754000,91.00000000],[1764913089000,91.00000000],[1764913473000,91.00000000],[1764913650000,91.00000000],[1764913970000,91.00000000],[1764914449000,90.00000000],[1764914578000,90.00000000],[1764914897000,90.00000000],[1764915169000,90.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: [[1764889202000,1010.8],[1764889378000,1010.9],[1764889650000,1011.1],[1764889954000,1011],[1764890274000,1011],[1764890578000,1011],[1764890850000,1011.1],[1764891153000,1010.9],[1764891474000,1010.9],[1764891777000,1010.9],[1764892050000,1011],[1764892353000,1010.8],[1764892674000,1010.9],[1764892978000,1010.8],[1764893435000,1010.5],[1764893553000,1010.6],[1764893874000,1010.6],[1764894178000,1010.7],[1764894450000,1010.9],[1764894753000,1011.1],[1764895074000,1011.1],[1764895378000,1011.1],[1764895682000,1011.1],[1764895953000,1011.1],[1764896306000,1011],[1764896578000,1011],[1764896881000,1011.1],[1764897153000,1011],[1764897506000,1010.8],[1764897778000,1010.8],[1764898081000,1011],[1764898353000,1011],[1764898674000,1010.8],[1764898978000,1010.9],[1764899250000,1010.9],[1764899553000,1010.9],[1764899874000,1010.9],[1764900177000,1010.8],[1764900497000,1010.6],[1764900770000,1010.7],[1764901105000,1010.6],[1764901378000,1010.7],[1764901729000,1010.8],[1764901969000,1010.6],[1764902305000,1010.7],[1764902578000,1010.8],[1764902850000,1010.6],[1764903153000,1010.6],[1764903505000,1010.6],[1764903778000,1010.6],[1764904050000,1010.6],[1764904353000,1010.5],[1764904705000,1010.7],[1764904978000,1010.8],[1764905281000,1010.8],[1764905553000,1010.7],[1764905874000,1010.8],[1764906177000,1010.7],[1764906450000,1010.5],[1764906753000,1010.5],[1764907073000,1010.6],[1764907377000,1010.6],[1764907682000,1010.6],[1764907953000,1010.8],[1764908305000,1010.7],[1764908609000,1010.7],[1764908850000,1010.8],[1764909153000,1010.8],[1764909473000,1010.8],[1764909777000,1010.8],[1764910081000,1010.8],[1764910353000,1010.9],[1764910673000,1010.8],[1764911057000,1010.7],[1764911282000,1010.8],[1764911553000,1010.9],[1764911889000,1010.9],[1764912178000,1010.9],[1764912481000,1011],[1764912754000,1011],[1764913089000,1011],[1764913473000,1011],[1764913650000,1011],[1764913970000,1010.8],[1764914449000,1011],[1764914578000,1011.1],[1764914897000,1011],[1764915169000,1011],], 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: [[1764889202000,6.3],[1764889378000,6.66],[1764889650000,8.055],[1764889954000,7.425],[1764890274000,5.879999988],[1764890578000,5.13],[1764890850000,6.255],[1764891153000,10.879999992],[1764891474000,6.760000008],[1764891777000,6.975],[1764892050000,6.760000008],[1764892353000,8.039999988],[1764892674000,6.255],[1764892978000,6.48],[1764893435000,12.120000012],[1764893553000,8.600000004],[1764893874000,9.560000016],[1764894178000,10.028571444],[1764894450000,9.200000016],[1764894753000,5.280000012],[1764895074000,4.68],[1764895378000,6.360000012],[1764895682000,5.445],[1764895953000,5.159999988],[1764896306000,8.955],[1764896578000,6.159999996],[1764896881000,6.75],[1764897153000,7.2],[1764897506000,6.885],[1764897778000,7.040000016],[1764898081000,8.91],[1764898353000,6.222857148],[1764898674000,6.919999992],[1764898978000,5.715],[1764899250000,10.98],[1764899553000,7.279999992],[1764899874000,6.84],[1764900177000,11.999999988],[1764900497000,7.38],[1764900770000,12.42],[1764901105000,11.115],[1764901378000,9.36],[1764901729000,7.29],[1764901969000,13.14],[1764902305000,4.799999988],[1764902578000,9.822857148],[1764902850000,9.675],[1764903153000,9.799999992],[1764903505000,10.53],[1764903778000,9.411428556],[1764904050000,8.235],[1764904353000,10.000000008],[1764904705000,6.795],[1764904978000,7.999999992],[1764905281000,6.21],[1764905553000,7.29],[1764905874000,6.159999996],[1764906177000,7.2],[1764906450000,9.09],[1764906753000,7.959999996],[1764907073000,8.240000004],[1764907377000,8.55],[1764907682000,6.705],[1764907953000,5.640000012],[1764908305000,6.377142852],[1764908609000,5.04],[1764908850000,7.29],[1764909153000,7.599999996],[1764909473000,9.240000012],[1764909777000,8.1],[1764910081000,8.01],[1764910353000,8.82],[1764910673000,9.216],[1764911057000,11.005714296],[1764911282000,7.47],[1764911553000,6.48],[1764911889000,5.657142852],[1764912178000,8.1],[1764912481000,10.26],[1764912754000,8.1],[1764913089000,9.504],[1764913473000,7.92],[1764913650000,8.496],[1764913970000,10.368],[1764914449000,5.22],[1764914578000,9.144],[1764914897000,6.624],[1764915169000,7.92],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1764889202000,10.26],[1764889378000,9.855],[1764889650000,10.89],[1764889954000,11.205],[1764890274000,9],[1764890578000,6.975],[1764890850000,8.865],[1764891153000,14.799999996],[1764891474000,9.320000004],[1764891777000,8.91],[1764892050000,8.719999992],[1764892353000,12.440000016],[1764892674000,8.55],[1764892978000,7.56],[1764893435000,15.360000012],[1764893553000,12.840000012],[1764893874000,14.000000004],[1764894178000,14.965714296],[1764894450000,13.920000012],[1764894753000,7.279999992],[1764895074000,6.3],[1764895378000,8.799999984],[1764895682000,7.245],[1764895953000,7.279999992],[1764896306000,11.835],[1764896578000,8.160000012],[1764896881000,8.82],[1764897153000,9],[1764897506000,8.865],[1764897778000,9.320000004],[1764898081000,12.465],[1764898353000,8.691428556],[1764898674000,9.960000012],[1764898978000,8.595],[1764899250000,14.445],[1764899553000,10.44],[1764899874000,8.82],[1764900177000,17.160000012],[1764900497000,8.82],[1764900770000,16.965],[1764901105000,17.64],[1764901378000,11.88],[1764901729000,10.17],[1764901969000,16.74],[1764902305000,7.2],[1764902578000,13.217142852],[1764902850000,14.76],[1764903153000,13.960000008],[1764903505000,14.085],[1764903778000,13.474285704],[1764904050000,11.79],[1764904353000,14.320000008],[1764904705000,9.225],[1764904978000,10.760000004],[1764905281000,9.585],[1764905553000,10.89],[1764905874000,9.039999996],[1764906177000,10.215],[1764906450000,12.465],[1764906753000,11.080000008],[1764907073000,11.080000008],[1764907377000,14.4],[1764907682000,10.17],[1764907953000,8.200000008],[1764908305000,9.102857148],[1764908609000,6.84],[1764908850000,11.205],[1764909153000,10.44],[1764909473000,12.24],[1764909777000,10.89],[1764910081000,12.15],[1764910353000,11.52],[1764910673000,12.816],[1764911057000,15.428571444],[1764911282000,10.89],[1764911553000,8.91],[1764911889000,7.662857148],[1764912178000,11.16],[1764912481000,14.13],[1764912754000,11.940000012],[1764913089000,15.48],[1764913473000,10.26],[1764913650000,13.392],[1764913970000,14.904],[1764914449000,6.3],[1764914578000,12.816],[1764914897000,10.152],[1764915169000,10.08],], 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: [[1764889202000,156.75000000],[1764889378000,157.50000000],[1764889650000,167.75000000],[1764889954000,107.12500000],[1764890274000,187.33333333],[1764890578000,268.75000000],[1764890850000,113.87500000],[1764891153000,115.44444444],[1764891474000,181.88888889],[1764891777000,167.75000000],[1764892050000,160.55555556],[1764892353000,147.66666667],[1764892674000,186.00000000],[1764892978000,95.00000000],[1764893435000,70.33333333],[1764893553000,123.33333333],[1764893874000,193.22222222],[1764894178000,114.14285714],[1764894450000,125.77777778],[1764894753000,155.00000000],[1764895074000,164.87500000],[1764895378000,190.44444444],[1764895682000,220.87500000],[1764895953000,124.44444444],[1764896306000,169.37500000],[1764896578000,144.77777778],[1764896881000,167.87500000],[1764897153000,206.33333333],[1764897506000,107.87500000],[1764897778000,157.44444444],[1764898081000,184.25000000],[1764898353000,173.85714286],[1764898674000,73.11111111],[1764898978000,84.25000000],[1764899250000,70.37500000],[1764899553000,154.55555556],[1764899874000,178.16666667],[1764900177000,99.83333333],[1764900497000,120.00000000],[1764900770000,137.87500000],[1764901105000,80.00000000],[1764901378000,71.66666667],[1764901729000,141.75000000],[1764901969000,114.75000000],[1764902305000,224.50000000],[1764902578000,74.14285714],[1764902850000,121.25000000],[1764903153000,112.77777778],[1764903505000,69.37500000],[1764903778000,114.57142857],[1764904050000,158.25000000],[1764904353000,110.44444444],[1764904705000,91.12500000],[1764904978000,95.55555556],[1764905281000,92.37500000],[1764905553000,133.62500000],[1764905874000,133.00000000],[1764906177000,133.75000000],[1764906450000,154.87500000],[1764906753000,77.66666667],[1764907073000,109.88888889],[1764907377000,65.25000000],[1764907682000,129.00000000],[1764907953000,135.22222222],[1764908305000,197.42857143],[1764908609000,120.57142857],[1764908850000,126.75000000],[1764909153000,111.00000000],[1764909473000,115.11111111],[1764909777000,95.50000000],[1764910081000,148.75000000],[1764910353000,92.00000000],[1764910673000,73.60000000],[1764911057000,93.85714286],[1764911282000,218.25000000],[1764911553000,148.75000000],[1764911889000,133.57142857],[1764912178000,174.12500000],[1764912481000,128.25000000],[1764912754000,157.83333333],[1764913089000,72.00000000],[1764913473000,172.50000000],[1764913650000,121.80000000],[1764913970000,98.40000000],[1764914449000,180.00000000],[1764914578000,124.00000000],[1764914897000,81.80000000],[1764915169000,28.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: [[1764889202000,0.00000000],[1764889378000,0.00000000],[1764889650000,0.00000000],[1764889954000,0.00000000],[1764890274000,0.00000000],[1764890578000,0.00000000],[1764890850000,0.00000000],[1764891153000,0.00000000],[1764891474000,0.00000000],[1764891777000,0.00000000],[1764892050000,0.00000000],[1764892353000,0.00000000],[1764892674000,0.00000000],[1764892978000,0.00000000],[1764893435000,0.00000000],[1764893553000,0.00000000],[1764893874000,0.00000000],[1764894178000,0.00000000],[1764894450000,0.00000000],[1764894753000,0.00000000],[1764895074000,0.00000000],[1764895378000,0.00000000],[1764895682000,0.00000000],[1764895953000,0.00000000],[1764896306000,0.00000000],[1764896578000,0.00000000],[1764896881000,0.00000000],[1764897153000,0.00000000],[1764897506000,0.00000000],[1764897778000,0.00000000],[1764898081000,0.00000000],[1764898353000,0.00000000],[1764898674000,0.00000000],[1764898978000,0.00000000],[1764899250000,0.00000000],[1764899553000,0.00000000],[1764899874000,0.00000000],[1764900177000,0.00000000],[1764900497000,0.00000000],[1764900770000,0.00000000],[1764901105000,0.00000000],[1764901378000,0.00000000],[1764901729000,0.00000000],[1764901969000,0.00000000],[1764902305000,0.00000000],[1764902578000,0.00000000],[1764902850000,0.00000000],[1764903153000,0.00000000],[1764903505000,0.00000000],[1764903778000,0.00000000],[1764904050000,0.00000000],[1764904353000,0.00000000],[1764904705000,0.00000000],[1764904978000,0.00000000],[1764905281000,0.00000000],[1764905553000,0.00000000],[1764905874000,0.00000000],[1764906177000,0.00000000],[1764906450000,0.00000000],[1764906753000,0.00000000],[1764907073000,0.00000000],[1764907377000,0.00000000],[1764907682000,0.00000000],[1764907953000,0.00000000],[1764908305000,0.00000000],[1764908609000,0.00000000],[1764908850000,0.00000000],[1764909153000,0.00000000],[1764909473000,0.00000000],[1764909777000,0.00000000],[1764910081000,0.00000000],[1764910353000,0.00000000],[1764910673000,0.00000000],[1764911057000,0.00000000],[1764911282000,0.00000000],[1764911553000,0.00000000],[1764911889000,0.00000000],[1764912178000,0.00000000],[1764912481000,0.00000000],[1764912754000,0.00000000],[1764913089000,0.00000000],[1764913473000,0.00000000],[1764913650000,0.00000000],[1764913970000,0.00000000],[1764914449000,0.00000000],[1764914578000,0.00000000],[1764914897000,0.00000000],[1764915169000,0.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: [[1764889202000,0.00000000],[1764889378000,0.00000000],[1764889650000,0.00000000],[1764889954000,0.00000000],[1764890274000,0.00000000],[1764890578000,0.00000000],[1764890850000,0.00000000],[1764891153000,0.00000000],[1764891474000,0.00000000],[1764891777000,0.00000000],[1764892050000,0.00000000],[1764892353000,0.00000000],[1764892674000,0.00000000],[1764892978000,0.00000000],[1764893435000,0.00000000],[1764893553000,0.00000000],[1764893874000,0.00000000],[1764894178000,0.00000000],[1764894450000,0.00000000],[1764894753000,0.00000000],[1764895074000,0.00000000],[1764895378000,0.00000000],[1764895682000,0.00000000],[1764895953000,0.00000000],[1764896306000,0.00000000],[1764896578000,0.00000000],[1764896881000,0.00000000],[1764897153000,0.00000000],[1764897506000,0.00000000],[1764897778000,0.00000000],[1764898081000,0.00000000],[1764898353000,0.00000000],[1764898674000,0.00000000],[1764898978000,0.00000000],[1764899250000,0.00000000],[1764899553000,0.00000000],[1764899874000,0.00000000],[1764900177000,0.00000000],[1764900497000,0.00000000],[1764900770000,0.00000000],[1764901105000,0.00000000],[1764901378000,0.00000000],[1764901729000,0.00000000],[1764901969000,0.00000000],[1764902305000,0.00000000],[1764902578000,0.00000000],[1764902850000,0.00000000],[1764903153000,0.00000000],[1764903505000,0.00000000],[1764903778000,0.00000000],[1764904050000,0.00000000],[1764904353000,0.00000000],[1764904705000,0.00000000],[1764904978000,0.00000000],[1764905281000,0.00000000],[1764905553000,0.00000000],[1764905874000,0.00000000],[1764906177000,0.00000000],[1764906450000,0.00000000],[1764906753000,0.00000000],[1764907073000,0.00000000],[1764907377000,0.00000000],[1764907682000,0.00000000],[1764907953000,0.00000000],[1764908305000,0.00000000],[1764908609000,0.00000000],[1764908850000,0.00000000],[1764909153000,0.00000000],[1764909473000,0.00000000],[1764909777000,0.00000000],[1764910081000,0.00000000],[1764910353000,0.00000000],[1764910673000,0.00000000],[1764911057000,0.00000000],[1764911282000,0.00000000],[1764911553000,0.00000000],[1764911889000,0.00000000],[1764912178000,0.00000000],[1764912481000,0.00000000],[1764912754000,0.00000000],[1764913089000,0.00000000],[1764913473000,0.00000000],[1764913650000,0.00000000],[1764913970000,0.00000000],[1764914449000,0.00000000],[1764914578000,0.00000000],[1764914897000,0.00000000],[1764915169000,0.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: [[1764889202000,0.12700000],[1764889378000,0.00000000],[1764889650000,0.00000000],[1764889954000,0.00000000],[1764890274000,0.00000000],[1764890578000,0.00000000],[1764890850000,0.00000000],[1764891153000,0.00000000],[1764891474000,0.00000000],[1764891777000,0.00000000],[1764892050000,0.00000000],[1764892353000,0.00000000],[1764892674000,0.00000000],[1764892978000,0.00000000],[1764893435000,0.00000000],[1764893553000,0.00000000],[1764893874000,0.00000000],[1764894178000,0.00000000],[1764894450000,0.00000000],[1764894753000,0.00000000],[1764895074000,0.00000000],[1764895378000,0.00000000],[1764895682000,0.00000000],[1764895953000,0.00000000],[1764896306000,0.00000000],[1764896578000,0.00000000],[1764896881000,0.00000000],[1764897153000,0.00000000],[1764897506000,0.00000000],[1764897778000,0.16944444],[1764898081000,0.30500000],[1764898353000,0.30500000],[1764898674000,0.30500000],[1764898978000,0.30500000],[1764899250000,0.30500000],[1764899553000,0.30500000],[1764899874000,0.30500000],[1764900177000,0.30500000],[1764900497000,0.30500000],[1764900770000,0.30500000],[1764901105000,0.30500000],[1764901378000,0.30500000],[1764901729000,0.30500000],[1764901969000,0.30500000],[1764902305000,0.30500000],[1764902578000,0.30500000],[1764902850000,0.30500000],[1764903153000,0.30500000],[1764903505000,0.30500000],[1764903778000,0.30500000],[1764904050000,0.30500000],[1764904353000,0.30500000],[1764904705000,0.30500000],[1764904978000,0.30500000],[1764905281000,0.30500000],[1764905553000,0.30500000],[1764905874000,0.30500000],[1764906177000,0.30500000],[1764906450000,0.30500000],[1764906753000,0.30500000],[1764907073000,0.30500000],[1764907377000,0.30500000],[1764907682000,0.30500000],[1764907953000,0.30500000],[1764908305000,0.30500000],[1764908609000,0.30500000],[1764908850000,0.30500000],[1764909153000,0.30500000],[1764909473000,0.30500000],[1764909777000,0.30500000],[1764910081000,0.30500000],[1764910353000,0.30500000],[1764910673000,0.30500000],[1764911057000,0.30500000],[1764911282000,0.30500000],[1764911553000,0.30500000],[1764911889000,0.30500000],[1764912178000,0.30500000],[1764912481000,0.30500000],[1764912754000,0.30500000],[1764913089000,0.30500000],[1764913473000,0.30500000],[1764913650000,0.30500000],[1764913970000,0.30500000],[1764914449000,0.30500000],[1764914578000,0.30500000],[1764914897000,0.30500000],[1764915169000,0.30500000],], 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; }