var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1764889233000,7.80000000],[1764889363000,7.82000000],[1764889683000,7.86000000],[1764890003000,7.75000000],[1764890259000,7.86000000],[1764890579000,7.80000000],[1764890899000,7.82500000],[1764891153000,7.80000000],[1764891490000,7.80000000],[1764891810000,7.80000000],[1764892066000,7.80000000],[1764892385000,7.86000000],[1764892705000,7.90000000],[1764892962000,7.86000000],[1764893281000,7.94000000],[1764893601000,8.00000000],[1764893857000,8.10000000],[1764894177000,8.10000000],[1764894451000,8.06000000],[1764894770000,8.08000000],[1764895091000,7.94000000],[1764895411000,7.75000000],[1764895666000,7.64000000],[1764895987000,7.66000000],[1764896307000,7.82500000],[1764896578000,7.86000000],[1764896898000,7.82500000],[1764897153000,7.80000000],[1764897475000,7.76000000],[1764897795000,7.62500000],[1764898051000,7.48000000],[1764898371000,7.36000000],[1764898690000,7.32500000],[1764898963000,7.36000000],[1764899283000,7.32000000],[1764899603000,7.35000000],[1764899859000,7.26000000],[1764900179000,7.06000000],[1764900499000,7.00000000],[1764900753000,7.00000000],[1764901075000,7.00000000],[1764901411000,7.00000000],[1764901668000,7.00000000],[1764901986000,7.00000000],[1764902307000,6.97500000],[1764902563000,6.90000000],[1764902883000,6.86000000],[1764903203000,6.75000000],[1764903459000,6.78000000],[1764903779000,6.80000000],[1764904099000,6.80000000],[1764904353000,6.80000000],[1764904675000,6.76000000],[1764904995000,6.80000000],[1764905251000,6.90000000],[1764905571000,6.90000000],[1764905891000,6.90000000],[1764906211000,7.00000000],[1764906467000,7.10000000],[1764906787000,7.20000000],[1764907107000,7.30000000],[1764907363000,7.36000000],[1764907683000,7.40000000],[1764908003000,7.47500000],[1764908259000,7.54000000],[1764908579000,7.70000000],[1764908899000,7.70000000],[1764909153000,7.70000000],[1764909475000,7.68000000],[1764909795000,7.65000000],[1764910051000,7.76000000],[1764910371000,7.80000000],[1764910706000,7.80000000],[1764910962000,7.80000000],[1764911282000,7.90000000],[1764911602000,7.97500000],[1764911858000,7.88000000],[1764912178000,7.78000000],[1764912498000,7.77500000],[1764912752000,7.80000000],[1764913074000,7.76000000],[1764913394000,7.80000000],[1764913650000,7.76000000],[1764913970000,7.70000000],[1764914290000,7.68000000],[1764914610000,7.70000000],[1764914866000,7.72000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1764889233000,5.2],[1764889363000,5.2],[1764889683000,5.3],[1764890003000,5.1],[1764890259000,5.2],[1764890579000,5.2],[1764890899000,5.2],[1764891153000,5.2],[1764891490000,5.2],[1764891810000,5.2],[1764892066000,5.2],[1764892385000,5.2],[1764892705000,5.2],[1764892962000,5.2],[1764893281000,5.2],[1764893601000,5.2],[1764893857000,5.2],[1764894177000,5.3],[1764894451000,5.2],[1764894770000,5.3],[1764895091000,5.4],[1764895411000,5.4],[1764895666000,5.4],[1764895987000,5.2],[1764896307000,5.3],[1764896578000,5.3],[1764896898000,5.3],[1764897153000,5.3],[1764897475000,5.5],[1764897795000,5.4],[1764898051000,5.6],[1764898371000,5.5],[1764898690000,5.6],[1764898963000,5.6],[1764899283000,5.6],[1764899603000,5.6],[1764899859000,5.6],[1764900179000,5.7],[1764900499000,5.6],[1764900753000,5.7],[1764901075000,5.7],[1764901411000,5.6],[1764901668000,5.6],[1764901986000,5.6],[1764902307000,5.7],[1764902563000,5.7],[1764902883000,5.7],[1764903203000,5.7],[1764903459000,5.7],[1764903779000,5.7],[1764904099000,5.7],[1764904353000,5.8],[1764904675000,5.9],[1764904995000,5.9],[1764905251000,5.8],[1764905571000,5.8],[1764905891000,5.8],[1764906211000,5.9],[1764906467000,5.9],[1764906787000,5.9],[1764907107000,5.9],[1764907363000,6],[1764907683000,6],[1764908003000,6.1],[1764908259000,6],[1764908579000,6.1],[1764908899000,6.1],[1764909153000,6.1],[1764909475000,6.1],[1764909795000,6.1],[1764910051000,6],[1764910371000,6.1],[1764910706000,6.1],[1764910962000,6.1],[1764911282000,6.2],[1764911602000,6.3],[1764911858000,6.2],[1764912178000,6.2],[1764912498000,6.2],[1764912752000,6.1],[1764913074000,6.1],[1764913394000,6.1],[1764913650000,6],[1764913970000,6.1],[1764914290000,6.1],[1764914610000,6],[1764914866000,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() { dataset = [ { label: 'Vlhkosť (%)', data: [[1764889233000,84.00000000],[1764889363000,83.80000000],[1764889683000,83.80000000],[1764890003000,83.75000000],[1764890259000,83.60000000],[1764890579000,84.00000000],[1764890899000,83.75000000],[1764891153000,84.00000000],[1764891490000,84.00000000],[1764891810000,84.00000000],[1764892066000,84.00000000],[1764892385000,83.20000000],[1764892705000,83.00000000],[1764892962000,83.60000000],[1764893281000,83.00000000],[1764893601000,82.75000000],[1764893857000,82.20000000],[1764894177000,82.75000000],[1764894451000,82.60000000],[1764894770000,82.60000000],[1764895091000,84.00000000],[1764895411000,85.00000000],[1764895666000,85.80000000],[1764895987000,84.80000000],[1764896307000,84.25000000],[1764896578000,84.00000000],[1764896898000,84.00000000],[1764897153000,84.20000000],[1764897475000,85.60000000],[1764897795000,86.25000000],[1764898051000,88.00000000],[1764898371000,88.20000000],[1764898690000,88.75000000],[1764898963000,88.60000000],[1764899283000,89.00000000],[1764899603000,88.75000000],[1764899859000,89.60000000],[1764900179000,91.00000000],[1764900499000,91.00000000],[1764900753000,91.40000000],[1764901075000,91.60000000],[1764901411000,91.00000000],[1764901668000,91.00000000],[1764901986000,91.00000000],[1764902307000,91.75000000],[1764902563000,92.00000000],[1764902883000,92.60000000],[1764903203000,93.00000000],[1764903459000,93.00000000],[1764903779000,93.00000000],[1764904099000,93.00000000],[1764904353000,93.40000000],[1764904675000,94.00000000],[1764904995000,94.00000000],[1764905251000,93.00000000],[1764905571000,93.00000000],[1764905891000,93.00000000],[1764906211000,93.00000000],[1764906467000,92.00000000],[1764906787000,91.80000000],[1764907107000,91.00000000],[1764907363000,91.00000000],[1764907683000,91.00000000],[1764908003000,91.00000000],[1764908259000,90.20000000],[1764908579000,90.00000000],[1764908899000,89.75000000],[1764909153000,90.00000000],[1764909475000,90.00000000],[1764909795000,89.75000000],[1764910051000,89.00000000],[1764910371000,89.00000000],[1764910706000,89.00000000],[1764910962000,89.00000000],[1764911282000,89.00000000],[1764911602000,89.00000000],[1764911858000,89.00000000],[1764912178000,89.60000000],[1764912498000,90.00000000],[1764912752000,89.20000000],[1764913074000,89.60000000],[1764913394000,89.00000000],[1764913650000,89.00000000],[1764913970000,89.80000000],[1764914290000,89.80000000],[1764914610000,89.00000000],[1764914866000,89.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: [[1764889233000,1014.1],[1764889363000,1014.2],[1764889683000,1014.1],[1764890003000,1014.1],[1764890259000,1014],[1764890579000,1014],[1764890899000,1013.9],[1764891153000,1014.1],[1764891490000,1014],[1764891810000,1013.9],[1764892066000,1013.8],[1764892385000,1013.8],[1764892705000,1013.8],[1764892962000,1013.8],[1764893281000,1013.6],[1764893601000,1013.6],[1764893857000,1013.7],[1764894177000,1013.7],[1764894451000,1013.9],[1764894770000,1013.9],[1764895091000,1014],[1764895411000,1014.1],[1764895666000,1014.1],[1764895987000,1014],[1764896307000,1013.8],[1764896578000,1013.8],[1764896898000,1013.9],[1764897153000,1013.9],[1764897475000,1013.9],[1764897795000,1013.8],[1764898051000,1013.7],[1764898371000,1013.7],[1764898690000,1013.7],[1764898963000,1013.7],[1764899283000,1013.7],[1764899603000,1013.7],[1764899859000,1013.6],[1764900179000,1013.6],[1764900499000,1013.7],[1764900753000,1013.5],[1764901075000,1013.7],[1764901411000,1013.5],[1764901668000,1013.5],[1764901986000,1013.6],[1764902307000,1013.5],[1764902563000,1013.6],[1764902883000,1013.6],[1764903203000,1013.7],[1764903459000,1013.8],[1764903779000,1013.7],[1764904099000,1013.7],[1764904353000,1013.7],[1764904675000,1013.6],[1764904995000,1013.7],[1764905251000,1013.6],[1764905571000,1013.6],[1764905891000,1013.5],[1764906211000,1013.5],[1764906467000,1013.4],[1764906787000,1013.4],[1764907107000,1013.4],[1764907363000,1013.4],[1764907683000,1013.4],[1764908003000,1013.5],[1764908259000,1013.5],[1764908579000,1013.4],[1764908899000,1013.5],[1764909153000,1013.5],[1764909475000,1013.5],[1764909795000,1013.4],[1764910051000,1013.5],[1764910371000,1013.6],[1764910706000,1013.5],[1764910962000,1013.6],[1764911282000,1013.6],[1764911602000,1013.7],[1764911858000,1013.7],[1764912178000,1013.7],[1764912498000,1013.6],[1764912752000,1013.7],[1764913074000,1013.8],[1764913394000,1013.9],[1764913650000,1013.9],[1764913970000,1013.8],[1764914290000,1014],[1764914610000,1013.9],[1764914866000,1014],], 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: [[1764889233000,8.1],[1764889363000,6.624],[1764889683000,5.256],[1764890003000,6.39],[1764890259000,4.104],[1764890579000,5.976],[1764890899000,7.2],[1764891153000,7.848],[1764891490000,5.688],[1764891810000,6.3],[1764892066000,5.4],[1764892385000,6.552],[1764892705000,6.12],[1764892962000,5.688],[1764893281000,8.28],[1764893601000,8.64],[1764893857000,10.152],[1764894177000,10.17],[1764894451000,9.576],[1764894770000,8.28],[1764895091000,8.568],[1764895411000,7.65],[1764895666000,7.416],[1764895987000,8.856],[1764896307000,9.63],[1764896578000,9.216],[1764896898000,6.48],[1764897153000,6.84],[1764897475000,7.128],[1764897795000,9.18],[1764898051000,7.272],[1764898371000,8.136],[1764898690000,5.85],[1764898963000,13.176],[1764899283000,9.576],[1764899603000,11.97],[1764899859000,8.28],[1764900179000,7.92],[1764900499000,11.88],[1764900753000,8.568],[1764901075000,8.496],[1764901411000,8.82],[1764901668000,8.64],[1764901986000,7.632],[1764902307000,7.47],[1764902563000,7.992],[1764902883000,6.696],[1764903203000,6.12],[1764903459000,7.632],[1764903779000,8.64],[1764904099000,9.63],[1764904353000,8.208],[1764904675000,5.76],[1764904995000,7.65],[1764905251000,6.048],[1764905571000,8.064],[1764905891000,6.696],[1764906211000,7.29],[1764906467000,8.424],[1764906787000,10.224],[1764907107000,5.04],[1764907363000,9.144],[1764907683000,7.776],[1764908003000,7.56],[1764908259000,10.8],[1764908579000,12.312],[1764908899000,8.64],[1764909153000,9.72],[1764909475000,6.768],[1764909795000,8.91],[1764910051000,7.056],[1764910371000,10.584],[1764910706000,6.84],[1764910962000,6.552],[1764911282000,7.416],[1764911602000,9.81],[1764911858000,9.432],[1764912178000,6.912],[1764912498000,8.73],[1764912752000,6.552],[1764913074000,7.416],[1764913394000,7.83],[1764913650000,7.56],[1764913970000,7.272],[1764914290000,6.408],[1764914610000,10.44],[1764914866000,6.192],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1764889233000,10.26],[1764889363000,9.072],[1764889683000,8.136],[1764890003000,8.91],[1764890259000,5.544],[1764890579000,8.136],[1764890899000,8.91],[1764891153000,12.312],[1764891490000,8.712],[1764891810000,9.45],[1764892066000,8.064],[1764892385000,9.648],[1764892705000,10.17],[1764892962000,8.568],[1764893281000,11.232],[1764893601000,13.5],[1764893857000,14.4],[1764894177000,14.76],[1764894451000,13.824],[1764894770000,10.728],[1764895091000,12.24],[1764895411000,9.54],[1764895666000,10.152],[1764895987000,12.24],[1764896307000,13.59],[1764896578000,13.248],[1764896898000,10.17],[1764897153000,10.728],[1764897475000,10.728],[1764897795000,12.69],[1764898051000,10.728],[1764898371000,11.808],[1764898690000,8.19],[1764898963000,17.424],[1764899283000,14.904],[1764899603000,17.28],[1764899859000,14.4],[1764900179000,11.232],[1764900499000,16.65],[1764900753000,13.824],[1764901075000,12.744],[1764901411000,12.78],[1764901668000,13.824],[1764901986000,12.24],[1764902307000,12.15],[1764902563000,11.736],[1764902883000,10.152],[1764903203000,9.54],[1764903459000,11.16],[1764903779000,12.24],[1764904099000,13.5],[1764904353000,11.16],[1764904675000,8.136],[1764904995000,11.52],[1764905251000,10.224],[1764905571000,10.728],[1764905891000,9.072],[1764906211000,10.8],[1764906467000,11.88],[1764906787000,14.904],[1764907107000,7.56],[1764907363000,12.672],[1764907683000,12.24],[1764908003000,10.26],[1764908259000,17.496],[1764908579000,17.928],[1764908899000,12.24],[1764909153000,13.824],[1764909475000,10.152],[1764909795000,14.04],[1764910051000,11.736],[1764910371000,15.336],[1764910706000,11.52],[1764910962000,9.216],[1764911282000,11.304],[1764911602000,14.13],[1764911858000,15.48],[1764912178000,11.304],[1764912498000,12.24],[1764912752000,9.648],[1764913074000,12.312],[1764913394000,12.15],[1764913650000,9.72],[1764913970000,11.304],[1764914290000,10.224],[1764914610000,15.39],[1764914866000,9.576],], 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: [[1764889233000,197.00000000],[1764889363000,71.80000000],[1764889683000,66.20000000],[1764890003000,63.25000000],[1764890259000,51.60000000],[1764890579000,46.60000000],[1764890899000,42.25000000],[1764891153000,77.80000000],[1764891490000,96.20000000],[1764891810000,69.25000000],[1764892066000,65.60000000],[1764892385000,64.40000000],[1764892705000,107.25000000],[1764892962000,47.60000000],[1764893281000,142.20000000],[1764893601000,66.75000000],[1764893857000,71.80000000],[1764894177000,83.75000000],[1764894451000,169.40000000],[1764894770000,115.60000000],[1764895091000,126.40000000],[1764895411000,113.50000000],[1764895666000,52.40000000],[1764895987000,71.00000000],[1764896307000,111.50000000],[1764896578000,128.80000000],[1764896898000,76.75000000],[1764897153000,62.60000000],[1764897475000,73.60000000],[1764897795000,92.50000000],[1764898051000,85.20000000],[1764898371000,44.60000000],[1764898690000,87.00000000],[1764898963000,49.40000000],[1764899283000,89.40000000],[1764899603000,88.75000000],[1764899859000,105.40000000],[1764900179000,72.80000000],[1764900499000,109.50000000],[1764900753000,55.40000000],[1764901075000,94.60000000],[1764901411000,106.50000000],[1764901668000,73.40000000],[1764901986000,87.80000000],[1764902307000,73.75000000],[1764902563000,109.40000000],[1764902883000,62.20000000],[1764903203000,51.75000000],[1764903459000,95.80000000],[1764903779000,83.20000000],[1764904099000,56.75000000],[1764904353000,65.00000000],[1764904675000,34.20000000],[1764904995000,75.50000000],[1764905251000,59.00000000],[1764905571000,79.20000000],[1764905891000,208.20000000],[1764906211000,49.50000000],[1764906467000,109.00000000],[1764906787000,91.20000000],[1764907107000,77.50000000],[1764907363000,76.40000000],[1764907683000,118.00000000],[1764908003000,82.25000000],[1764908259000,127.60000000],[1764908579000,113.40000000],[1764908899000,55.25000000],[1764909153000,59.20000000],[1764909475000,68.60000000],[1764909795000,67.50000000],[1764910051000,166.60000000],[1764910371000,95.80000000],[1764910706000,81.75000000],[1764910962000,75.20000000],[1764911282000,126.40000000],[1764911602000,117.00000000],[1764911858000,73.00000000],[1764912178000,78.80000000],[1764912498000,68.75000000],[1764912752000,62.60000000],[1764913074000,55.60000000],[1764913394000,107.00000000],[1764913650000,130.80000000],[1764913970000,58.00000000],[1764914290000,62.00000000],[1764914610000,80.50000000],[1764914866000,96.60000000],], 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: [[1764889233000,0.00000000],[1764889363000,0.00000000],[1764889683000,0.00000000],[1764890003000,0.00000000],[1764890259000,0.00000000],[1764890579000,0.00000000],[1764890899000,0.00000000],[1764891153000,0.00000000],[1764891490000,0.00000000],[1764891810000,0.00000000],[1764892066000,0.00000000],[1764892385000,0.00000000],[1764892705000,0.00000000],[1764892962000,0.00000000],[1764893281000,0.00000000],[1764893601000,0.00000000],[1764893857000,0.00000000],[1764894177000,0.00000000],[1764894451000,0.00000000],[1764894770000,0.00000000],[1764895091000,0.00000000],[1764895411000,0.00000000],[1764895666000,0.00000000],[1764895987000,0.00000000],[1764896307000,0.00000000],[1764896578000,0.00000000],[1764896898000,0.00000000],[1764897153000,0.00000000],[1764897475000,0.00000000],[1764897795000,0.00000000],[1764898051000,0.00000000],[1764898371000,0.00000000],[1764898690000,0.00000000],[1764898963000,0.00000000],[1764899283000,0.00000000],[1764899603000,0.00000000],[1764899859000,0.00000000],[1764900179000,0.00000000],[1764900499000,0.00000000],[1764900753000,0.00000000],[1764901075000,0.00000000],[1764901411000,0.00000000],[1764901668000,0.00000000],[1764901986000,0.00000000],[1764902307000,0.00000000],[1764902563000,0.00000000],[1764902883000,0.00000000],[1764903203000,0.00000000],[1764903459000,0.00000000],[1764903779000,0.00000000],[1764904099000,0.00000000],[1764904353000,0.00000000],[1764904675000,0.00000000],[1764904995000,0.00000000],[1764905251000,0.00000000],[1764905571000,0.00000000],[1764905891000,0.00000000],[1764906211000,0.00000000],[1764906467000,0.00000000],[1764906787000,0.00000000],[1764907107000,0.00000000],[1764907363000,0.00000000],[1764907683000,0.00000000],[1764908003000,0.00000000],[1764908259000,0.00000000],[1764908579000,0.00000000],[1764908899000,0.00000000],[1764909153000,0.00000000],[1764909475000,0.00000000],[1764909795000,0.00000000],[1764910051000,0.00000000],[1764910371000,0.00000000],[1764910706000,0.00000000],[1764910962000,0.00000000],[1764911282000,0.00000000],[1764911602000,0.00000000],[1764911858000,0.00000000],[1764912178000,0.00000000],[1764912498000,0.00000000],[1764912752000,0.00000000],[1764913074000,0.00000000],[1764913394000,0.00000000],[1764913650000,0.00000000],[1764913970000,0.00000000],[1764914290000,0.00000000],[1764914610000,0.00000000],[1764914866000,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: [[1764889233000,0.00000000],[1764889363000,0.00000000],[1764889683000,0.00000000],[1764890003000,0.00000000],[1764890259000,0.00000000],[1764890579000,0.00000000],[1764890899000,0.00000000],[1764891153000,0.00000000],[1764891490000,0.00000000],[1764891810000,0.00000000],[1764892066000,0.00000000],[1764892385000,0.00000000],[1764892705000,0.00000000],[1764892962000,0.00000000],[1764893281000,0.00000000],[1764893601000,0.00000000],[1764893857000,0.00000000],[1764894177000,0.00000000],[1764894451000,0.00000000],[1764894770000,0.00000000],[1764895091000,0.00000000],[1764895411000,0.00000000],[1764895666000,0.00000000],[1764895987000,0.00000000],[1764896307000,0.00000000],[1764896578000,0.00000000],[1764896898000,0.00000000],[1764897153000,0.00000000],[1764897475000,0.00000000],[1764897795000,0.00000000],[1764898051000,0.00000000],[1764898371000,0.00000000],[1764898690000,0.00000000],[1764898963000,0.00000000],[1764899283000,0.00000000],[1764899603000,0.00000000],[1764899859000,0.00000000],[1764900179000,0.00000000],[1764900499000,0.00000000],[1764900753000,0.00000000],[1764901075000,0.00000000],[1764901411000,0.00000000],[1764901668000,0.00000000],[1764901986000,0.00000000],[1764902307000,0.00000000],[1764902563000,0.00000000],[1764902883000,0.00000000],[1764903203000,0.00000000],[1764903459000,0.00000000],[1764903779000,0.00000000],[1764904099000,0.00000000],[1764904353000,0.00000000],[1764904675000,0.00000000],[1764904995000,0.00000000],[1764905251000,0.00000000],[1764905571000,0.00000000],[1764905891000,0.00000000],[1764906211000,0.00000000],[1764906467000,0.00000000],[1764906787000,0.00000000],[1764907107000,0.00000000],[1764907363000,0.00000000],[1764907683000,0.00000000],[1764908003000,0.00000000],[1764908259000,0.00000000],[1764908579000,0.00000000],[1764908899000,0.00000000],[1764909153000,0.00000000],[1764909475000,0.00000000],[1764909795000,0.00000000],[1764910051000,0.00000000],[1764910371000,0.00000000],[1764910706000,0.00000000],[1764910962000,0.00000000],[1764911282000,0.00000000],[1764911602000,0.00000000],[1764911858000,0.00000000],[1764912178000,0.00000000],[1764912498000,0.00000000],[1764912752000,0.00000000],[1764913074000,0.00000000],[1764913394000,0.00000000],[1764913650000,0.00000000],[1764913970000,0.00000000],[1764914290000,0.00000000],[1764914610000,0.00000000],[1764914866000,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: [[1764889233000,0.00000000],[1764889363000,0.00000000],[1764889683000,0.00000000],[1764890003000,0.00000000],[1764890259000,0.00000000],[1764890579000,0.00000000],[1764890899000,0.00000000],[1764891153000,0.00000000],[1764891490000,0.00000000],[1764891810000,0.00000000],[1764892066000,0.00000000],[1764892385000,0.00000000],[1764892705000,0.00000000],[1764892962000,0.00000000],[1764893281000,0.00000000],[1764893601000,0.00000000],[1764893857000,0.00000000],[1764894177000,0.00000000],[1764894451000,0.00000000],[1764894770000,0.00000000],[1764895091000,0.00000000],[1764895411000,0.00000000],[1764895666000,0.00000000],[1764895987000,0.00000000],[1764896307000,0.00000000],[1764896578000,0.00000000],[1764896898000,0.00000000],[1764897153000,0.00000000],[1764897475000,0.00000000],[1764897795000,0.00000000],[1764898051000,0.00000000],[1764898371000,0.00000000],[1764898690000,0.00000000],[1764898963000,0.00000000],[1764899283000,0.00000000],[1764899603000,0.00000000],[1764899859000,0.12200000],[1764900179000,0.30500000],[1764900499000,0.30500000],[1764900753000,0.30500000],[1764901075000,0.30500000],[1764901411000,0.30500000],[1764901668000,0.30500000],[1764901986000,0.30500000],[1764902307000,0.30500000],[1764902563000,0.34560000],[1764902883000,0.50800000],[1764903203000,0.50800000],[1764903459000,0.50800000],[1764903779000,0.50800000],[1764904099000,0.50800000],[1764904353000,0.50800000],[1764904675000,0.50800000],[1764904995000,0.50800000],[1764905251000,0.50800000],[1764905571000,0.50800000],[1764905891000,0.50800000],[1764906211000,0.50800000],[1764906467000,0.50800000],[1764906787000,0.50800000],[1764907107000,0.50800000],[1764907363000,0.50800000],[1764907683000,0.50800000],[1764908003000,0.50800000],[1764908259000,0.50800000],[1764908579000,0.50800000],[1764908899000,0.50800000],[1764909153000,0.50800000],[1764909475000,0.50800000],[1764909795000,0.50800000],[1764910051000,0.50800000],[1764910371000,0.50800000],[1764910706000,0.50800000],[1764910962000,0.50800000],[1764911282000,0.50800000],[1764911602000,0.50800000],[1764911858000,0.50800000],[1764912178000,0.50800000],[1764912498000,0.50800000],[1764912752000,0.50800000],[1764913074000,0.50800000],[1764913394000,0.50800000],[1764913650000,0.50800000],[1764913970000,0.50800000],[1764914290000,0.50800000],[1764914610000,0.50800000],[1764914866000,0.50800000],], 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; }