var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786312832000,13.95000000],[1786312962000,13.72000000],[1786313282000,13.54000000],[1786313602000,13.35000000],[1786313858000,13.20000000],[1786314178000,13.18000000],[1786314498000,13.15000000],[1786314752000,13.20000000],[1786315074000,13.18000000],[1786315394000,13.10000000],[1786315650000,13.04000000],[1786315970000,12.92000000],[1786316290000,12.90000000],[1786316610000,12.90000000],[1786316867000,12.80000000],[1786317187000,12.72000000],[1786317508000,12.62500000],[1786317763000,12.56000000],[1786318083000,12.50000000],[1786318403000,12.40000000],[1786318675000,12.50000000],[1786318995000,12.50000000],[1786319268000,12.48000000],[1786319587000,12.40000000],[1786319859000,12.28000000],[1786320179000,12.08000000],[1786320500000,12.12500000],[1786320755000,12.14000000],[1786321075000,12.10000000],[1786321395000,12.07500000],[1786321651000,12.00000000],[1786321973000,11.96000000],[1786322291000,11.90000000],[1786322611000,11.90000000],[1786322867000,11.84000000],[1786323187000,11.58000000],[1786323508000,11.50000000],[1786323763000,11.52000000],[1786324083000,11.60000000],[1786324403000,11.70000000],[1786324659000,11.70000000],[1786324979000,11.52000000],[1786325299000,11.32500000],[1786325554000,11.24000000],[1786325876000,11.20000000],[1786326195000,11.25000000],[1786326451000,11.34000000],[1786326771000,11.38000000],[1786327092000,11.32000000],[1786327412000,11.47500000],[1786327667000,11.50000000],[1786327987000,11.54000000],[1786328307000,11.37500000],[1786328564000,11.18000000],[1786328884000,10.88000000],[1786329204000,10.85000000],[1786329459000,11.16000000],[1786329779000,11.28000000],[1786330099000,11.12500000],[1786330354000,11.08000000],[1786330677000,11.26000000],[1786330995000,11.20000000],[1786331251000,11.14000000],[1786331571000,11.00000000],[1786331892000,10.94000000],[1786332211000,10.90000000],[1786332467000,10.84000000],[1786332787000,10.90000000],[1786333053000,10.94000000],[1786333379000,11.00000000],[1786333650000,11.04000000],[1786333955000,11.08000000],[1786334275000,11.10000000],[1786334595000,11.25000000],[1786334851000,11.72000000],[1786335172000,12.08000000],[1786335491000,12.22000000],[1786335811000,12.75000000],[1786336067000,13.22500000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786312832000,8.2],[1786312962000,8.4],[1786313282000,8.3],[1786313602000,7.8],[1786313858000,7.8],[1786314178000,8.1],[1786314498000,8],[1786314752000,8.1],[1786315074000,8.2],[1786315394000,8.3],[1786315650000,8.3],[1786315970000,8.4],[1786316290000,8.3],[1786316610000,8.5],[1786316867000,8.5],[1786317187000,8.6],[1786317508000,8.5],[1786317763000,8.4],[1786318083000,8.4],[1786318403000,8.4],[1786318675000,8.5],[1786318995000,8.4],[1786319268000,8.4],[1786319587000,8.5],[1786319859000,8.2],[1786320179000,7.5],[1786320500000,7.8],[1786320755000,8],[1786321075000,8.2],[1786321395000,8.3],[1786321651000,8.2],[1786321973000,8.3],[1786322291000,8.4],[1786322611000,8.4],[1786322867000,8.3],[1786323187000,7.9],[1786323508000,7.6],[1786323763000,7.6],[1786324083000,7.7],[1786324403000,7.9],[1786324659000,7.8],[1786324979000,7.8],[1786325299000,7.6],[1786325554000,7.5],[1786325876000,7.7],[1786326195000,7.5],[1786326451000,7.6],[1786326771000,7.8],[1786327092000,7.8],[1786327412000,7.9],[1786327667000,7.9],[1786327987000,8],[1786328307000,8],[1786328564000,7.8],[1786328884000,7.3],[1786329204000,7.1],[1786329459000,7.4],[1786329779000,8],[1786330099000,8.1],[1786330354000,8.1],[1786330677000,8.3],[1786330995000,8.2],[1786331251000,8.2],[1786331571000,8],[1786331892000,8],[1786332211000,7.9],[1786332467000,7.9],[1786332787000,7.9],[1786333053000,8],[1786333379000,8.2],[1786333650000,8.2],[1786333955000,8.3],[1786334275000,8.3],[1786334595000,8.3],[1786334851000,8.5],[1786335172000,9],[1786335491000,9],[1786335811000,9.4],[1786336067000,9.3],], 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: [[1786312832000,68.50000000],[1786312962000,70.40000000],[1786313282000,70.80000000],[1786313602000,69.25000000],[1786313858000,70.00000000],[1786314178000,71.60000000],[1786314498000,71.00000000],[1786314752000,71.60000000],[1786315074000,72.20000000],[1786315394000,73.00000000],[1786315650000,73.20000000],[1786315970000,74.00000000],[1786316290000,74.00000000],[1786316610000,75.00000000],[1786316867000,75.40000000],[1786317187000,76.00000000],[1786317508000,76.00000000],[1786317763000,76.00000000],[1786318083000,76.20000000],[1786318403000,77.00000000],[1786318675000,77.00000000],[1786318995000,76.25000000],[1786319268000,76.20000000],[1786319587000,77.50000000],[1786319859000,76.60000000],[1786320179000,73.80000000],[1786320500000,75.25000000],[1786320755000,76.00000000],[1786321075000,77.40000000],[1786321395000,78.00000000],[1786321651000,78.00000000],[1786321973000,78.40000000],[1786322291000,79.20000000],[1786322611000,79.50000000],[1786322867000,79.00000000],[1786323187000,78.40000000],[1786323508000,77.25000000],[1786323763000,77.20000000],[1786324083000,77.40000000],[1786324403000,77.50000000],[1786324659000,77.40000000],[1786324979000,78.00000000],[1786325299000,78.00000000],[1786325554000,78.20000000],[1786325876000,79.00000000],[1786326195000,78.00000000],[1786326451000,78.00000000],[1786326771000,78.80000000],[1786327092000,79.00000000],[1786327412000,79.00000000],[1786327667000,79.00000000],[1786327987000,79.20000000],[1786328307000,80.00000000],[1786328564000,80.00000000],[1786328884000,78.60000000],[1786329204000,78.00000000],[1786329459000,78.00000000],[1786329779000,80.40000000],[1786330099000,82.00000000],[1786330354000,81.80000000],[1786330677000,82.00000000],[1786330995000,82.00000000],[1786331251000,82.00000000],[1786331571000,82.00000000],[1786331892000,82.00000000],[1786332211000,82.00000000],[1786332467000,82.00000000],[1786332787000,82.00000000],[1786333053000,82.20000000],[1786333379000,83.00000000],[1786333650000,83.00000000],[1786333955000,83.00000000],[1786334275000,83.00000000],[1786334595000,82.00000000],[1786334851000,80.60000000],[1786335172000,81.80000000],[1786335491000,81.00000000],[1786335811000,80.00000000],[1786336067000,77.50000000],], 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: [[1786312832000,1018.4],[1786312962000,1018.6],[1786313282000,1018.5],[1786313602000,1018.6],[1786313858000,1018.6],[1786314178000,1018.6],[1786314498000,1018.5],[1786314752000,1018.5],[1786315074000,1018.6],[1786315394000,1018.5],[1786315650000,1018.6],[1786315970000,1018.6],[1786316290000,1018.7],[1786316610000,1018.6],[1786316867000,1018.6],[1786317187000,1018.5],[1786317508000,1018.5],[1786317763000,1018.4],[1786318083000,1018.4],[1786318403000,1018.4],[1786318675000,1018.3],[1786318995000,1018.4],[1786319268000,1018.3],[1786319587000,1018.3],[1786319859000,1018.2],[1786320179000,1018.2],[1786320500000,1018.2],[1786320755000,1018.2],[1786321075000,1018.3],[1786321395000,1018.3],[1786321651000,1018.3],[1786321973000,1018.3],[1786322291000,1018.3],[1786322611000,1018.3],[1786322867000,1018.3],[1786323187000,1018.4],[1786323508000,1018.4],[1786323763000,1018.4],[1786324083000,1018.5],[1786324403000,1018.4],[1786324659000,1018.5],[1786324979000,1018.6],[1786325299000,1018.3],[1786325554000,1018.4],[1786325876000,1018.4],[1786326195000,1018.4],[1786326451000,1018.4],[1786326771000,1018.3],[1786327092000,1018.2],[1786327412000,1018.4],[1786327667000,1018.3],[1786327987000,1018.3],[1786328307000,1018.1],[1786328564000,1018.2],[1786328884000,1018.2],[1786329204000,1018.2],[1786329459000,1018.1],[1786329779000,1018.1],[1786330099000,1018.1],[1786330354000,1018.1],[1786330677000,1018.1],[1786330995000,1018.1],[1786331251000,1018],[1786331571000,1018],[1786331892000,1018.2],[1786332211000,1018.1],[1786332467000,1018.1],[1786332787000,1018.1],[1786333053000,1018],[1786333379000,1018.1],[1786333650000,1018.1],[1786333955000,1018],[1786334275000,1018.2],[1786334595000,1018.2],[1786334851000,1018.2],[1786335172000,1018.1],[1786335491000,1018.1],[1786335811000,1018.1],[1786336067000,1017.9],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1786312832000,0],[1786312962000,0],[1786313282000,0],[1786313602000,0],[1786313858000,0],[1786314178000,0],[1786314498000,0],[1786314752000,0],[1786315074000,0],[1786315394000,0],[1786315650000,0],[1786315970000,0],[1786316290000,0],[1786316610000,0],[1786316867000,0],[1786317187000,0],[1786317508000,0],[1786317763000,0],[1786318083000,0],[1786318403000,0],[1786318675000,0],[1786318995000,0],[1786319268000,0],[1786319587000,0],[1786319859000,0],[1786320179000,0],[1786320500000,0],[1786320755000,0],[1786321075000,0],[1786321395000,0],[1786321651000,0],[1786321973000,0],[1786322291000,0],[1786322611000,0],[1786322867000,0],[1786323187000,0],[1786323508000,0],[1786323763000,0],[1786324083000,0],[1786324403000,0],[1786324659000,0],[1786324979000,0],[1786325299000,0],[1786325554000,0],[1786325876000,0],[1786326195000,0],[1786326451000,0],[1786326771000,0],[1786327092000,0],[1786327412000,0],[1786327667000,0],[1786327987000,0],[1786328307000,0],[1786328564000,0],[1786328884000,0],[1786329204000,0],[1786329459000,0],[1786329779000,0],[1786330099000,0],[1786330354000,0],[1786330677000,0],[1786330995000,0],[1786331251000,0],[1786331571000,0],[1786331892000,0],[1786332211000,0],[1786332467000,0],[1786332787000,0],[1786333053000,0],[1786333379000,0],[1786333650000,0],[1786333955000,0],[1786334275000,0],[1786334595000,0],[1786334851000,0],[1786335172000,0],[1786335491000,0],[1786335811000,0],[1786336067000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786312832000,0],[1786312962000,0],[1786313282000,0],[1786313602000,0],[1786313858000,0],[1786314178000,0],[1786314498000,0],[1786314752000,0],[1786315074000,0],[1786315394000,0],[1786315650000,0],[1786315970000,0],[1786316290000,0],[1786316610000,0],[1786316867000,0],[1786317187000,0],[1786317508000,0],[1786317763000,0],[1786318083000,0],[1786318403000,0],[1786318675000,0],[1786318995000,0],[1786319268000,0],[1786319587000,0],[1786319859000,0],[1786320179000,0],[1786320500000,0],[1786320755000,0],[1786321075000,0],[1786321395000,0],[1786321651000,0],[1786321973000,0],[1786322291000,0],[1786322611000,0],[1786322867000,0],[1786323187000,0],[1786323508000,0],[1786323763000,0],[1786324083000,0],[1786324403000,0],[1786324659000,0],[1786324979000,0],[1786325299000,0],[1786325554000,0],[1786325876000,0],[1786326195000,0],[1786326451000,0],[1786326771000,0],[1786327092000,0],[1786327412000,0],[1786327667000,0],[1786327987000,0],[1786328307000,0],[1786328564000,0],[1786328884000,0],[1786329204000,0],[1786329459000,0],[1786329779000,0],[1786330099000,0],[1786330354000,0],[1786330677000,0],[1786330995000,0],[1786331251000,0],[1786331571000,0],[1786331892000,0],[1786332211000,0],[1786332467000,0],[1786332787000,0],[1786333053000,0],[1786333379000,0],[1786333650000,0],[1786333955000,0],[1786334275000,0],[1786334595000,0],[1786334851000,0],[1786335172000,0],[1786335491000,0],[1786335811000,0],[1786336067000,0],], 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: [[1786312832000,8.00000000],[1786312962000,10.60000000],[1786313282000,10.00000000],[1786313602000,6.50000000],[1786313858000,7.60000000],[1786314178000,9.20000000],[1786314498000,11.00000000],[1786314752000,7.40000000],[1786315074000,7.60000000],[1786315394000,8.25000000],[1786315650000,9.60000000],[1786315970000,10.20000000],[1786316290000,9.60000000],[1786316610000,9.50000000],[1786316867000,9.60000000],[1786317187000,11.40000000],[1786317508000,7.50000000],[1786317763000,8.60000000],[1786318083000,9.40000000],[1786318403000,11.25000000],[1786318675000,11.40000000],[1786318995000,10.00000000],[1786319268000,9.20000000],[1786319587000,10.50000000],[1786319859000,8.80000000],[1786320179000,7.00000000],[1786320500000,11.00000000],[1786320755000,9.80000000],[1786321075000,9.40000000],[1786321395000,10.50000000],[1786321651000,10.00000000],[1786321973000,8.00000000],[1786322291000,10.80000000],[1786322611000,13.75000000],[1786322867000,8.80000000],[1786323187000,9.60000000],[1786323508000,11.25000000],[1786323763000,10.00000000],[1786324083000,12.20000000],[1786324403000,11.50000000],[1786324659000,8.20000000],[1786324979000,8.00000000],[1786325299000,8.00000000],[1786325554000,8.20000000],[1786325876000,7.00000000],[1786326195000,8.50000000],[1786326451000,8.40000000],[1786326771000,8.00000000],[1786327092000,13.80000000],[1786327412000,13.25000000],[1786327667000,14.20000000],[1786327987000,10.40000000],[1786328307000,11.00000000],[1786328564000,8.00000000],[1786328884000,7.40000000],[1786329204000,11.50000000],[1786329459000,11.20000000],[1786329779000,12.60000000],[1786330099000,8.50000000],[1786330354000,10.80000000],[1786330677000,78.20000000],[1786330995000,9.75000000],[1786331251000,7.80000000],[1786331571000,9.20000000],[1786331892000,9.80000000],[1786332211000,8.25000000],[1786332467000,9.40000000],[1786332787000,8.75000000],[1786333053000,11.80000000],[1786333379000,8.00000000],[1786333650000,11.25000000],[1786333955000,7.00000000],[1786334275000,7.20000000],[1786334595000,18.75000000],[1786334851000,14.20000000],[1786335172000,10.40000000],[1786335491000,8.60000000],[1786335811000,5.00000000],[1786336067000,10.25000000],], 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: [[1786312832000,0.00000000],[1786312962000,0.00000000],[1786313282000,0.00000000],[1786313602000,0.00000000],[1786313858000,0.00000000],[1786314178000,0.00000000],[1786314498000,0.00000000],[1786314752000,0.00000000],[1786315074000,0.00000000],[1786315394000,0.00000000],[1786315650000,0.00000000],[1786315970000,0.00000000],[1786316290000,0.00000000],[1786316610000,0.00000000],[1786316867000,0.00000000],[1786317187000,0.00000000],[1786317508000,0.00000000],[1786317763000,0.00000000],[1786318083000,0.00000000],[1786318403000,0.00000000],[1786318675000,0.00000000],[1786318995000,0.00000000],[1786319268000,0.00000000],[1786319587000,0.00000000],[1786319859000,0.00000000],[1786320179000,0.00000000],[1786320500000,0.00000000],[1786320755000,0.00000000],[1786321075000,0.00000000],[1786321395000,0.00000000],[1786321651000,0.00000000],[1786321973000,0.00000000],[1786322291000,0.00000000],[1786322611000,0.00000000],[1786322867000,0.00000000],[1786323187000,0.00000000],[1786323508000,0.00000000],[1786323763000,0.00000000],[1786324083000,0.00000000],[1786324403000,0.00000000],[1786324659000,0.00000000],[1786324979000,0.00000000],[1786325299000,0.00000000],[1786325554000,0.00000000],[1786325876000,0.00000000],[1786326195000,0.00000000],[1786326451000,0.00000000],[1786326771000,0.00000000],[1786327092000,0.00000000],[1786327412000,0.00000000],[1786327667000,0.00000000],[1786327987000,0.00000000],[1786328307000,0.00000000],[1786328564000,0.00000000],[1786328884000,0.00000000],[1786329204000,0.00000000],[1786329459000,0.00000000],[1786329779000,0.00000000],[1786330099000,0.00000000],[1786330354000,0.00000000],[1786330677000,0.00000000],[1786330995000,0.00000000],[1786331251000,0.00000000],[1786331571000,0.00000000],[1786331892000,1.00000000],[1786332211000,1.25000000],[1786332467000,2.20000000],[1786332787000,3.50000000],[1786333053000,5.00000000],[1786333379000,6.75000000],[1786333650000,8.50000000],[1786333955000,11.00000000],[1786334275000,13.20000000],[1786334595000,15.50000000],[1786334851000,17.00000000],[1786335172000,20.20000000],[1786335491000,22.60000000],[1786335811000,25.25000000],[1786336067000,28.25000000],], 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: [[1786312832000,0.00000000],[1786312962000,0.00000000],[1786313282000,0.00000000],[1786313602000,0.00000000],[1786313858000,0.00000000],[1786314178000,0.00000000],[1786314498000,0.00000000],[1786314752000,0.00000000],[1786315074000,0.00000000],[1786315394000,0.00000000],[1786315650000,0.00000000],[1786315970000,0.00000000],[1786316290000,0.00000000],[1786316610000,0.00000000],[1786316867000,0.00000000],[1786317187000,0.00000000],[1786317508000,0.00000000],[1786317763000,0.00000000],[1786318083000,0.00000000],[1786318403000,0.00000000],[1786318675000,0.00000000],[1786318995000,0.00000000],[1786319268000,0.00000000],[1786319587000,0.00000000],[1786319859000,0.00000000],[1786320179000,0.00000000],[1786320500000,0.00000000],[1786320755000,0.00000000],[1786321075000,0.00000000],[1786321395000,0.00000000],[1786321651000,0.00000000],[1786321973000,0.00000000],[1786322291000,0.00000000],[1786322611000,0.00000000],[1786322867000,0.00000000],[1786323187000,0.00000000],[1786323508000,0.00000000],[1786323763000,0.00000000],[1786324083000,0.00000000],[1786324403000,0.00000000],[1786324659000,0.00000000],[1786324979000,0.00000000],[1786325299000,0.00000000],[1786325554000,0.00000000],[1786325876000,0.00000000],[1786326195000,0.00000000],[1786326451000,0.00000000],[1786326771000,0.00000000],[1786327092000,0.00000000],[1786327412000,0.00000000],[1786327667000,0.00000000],[1786327987000,0.00000000],[1786328307000,0.00000000],[1786328564000,0.00000000],[1786328884000,0.00000000],[1786329204000,0.00000000],[1786329459000,0.00000000],[1786329779000,0.00000000],[1786330099000,0.00000000],[1786330354000,0.00000000],[1786330677000,0.00000000],[1786330995000,0.00000000],[1786331251000,0.00000000],[1786331571000,0.00000000],[1786331892000,0.00000000],[1786332211000,0.00000000],[1786332467000,0.00000000],[1786332787000,0.00000000],[1786333053000,0.00000000],[1786333379000,0.00000000],[1786333650000,0.00000000],[1786333955000,0.00000000],[1786334275000,0.00000000],[1786334595000,0.00000000],[1786334851000,0.00000000],[1786335172000,0.00000000],[1786335491000,0.00000000],[1786335811000,0.00000000],[1786336067000,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: [[1786312832000,0.00000000],[1786312962000,0.00000000],[1786313282000,0.00000000],[1786313602000,0.00000000],[1786313858000,0.00000000],[1786314178000,0.00000000],[1786314498000,0.00000000],[1786314752000,0.00000000],[1786315074000,0.00000000],[1786315394000,0.00000000],[1786315650000,0.00000000],[1786315970000,0.00000000],[1786316290000,0.00000000],[1786316610000,0.00000000],[1786316867000,0.00000000],[1786317187000,0.00000000],[1786317508000,0.00000000],[1786317763000,0.00000000],[1786318083000,0.00000000],[1786318403000,0.00000000],[1786318675000,0.00000000],[1786318995000,0.00000000],[1786319268000,0.00000000],[1786319587000,0.00000000],[1786319859000,0.00000000],[1786320179000,0.00000000],[1786320500000,0.00000000],[1786320755000,0.00000000],[1786321075000,0.00000000],[1786321395000,0.00000000],[1786321651000,0.00000000],[1786321973000,0.00000000],[1786322291000,0.00000000],[1786322611000,0.00000000],[1786322867000,0.00000000],[1786323187000,0.00000000],[1786323508000,0.00000000],[1786323763000,0.00000000],[1786324083000,0.00000000],[1786324403000,0.00000000],[1786324659000,0.00000000],[1786324979000,0.00000000],[1786325299000,0.00000000],[1786325554000,0.00000000],[1786325876000,0.00000000],[1786326195000,0.00000000],[1786326451000,0.00000000],[1786326771000,0.00000000],[1786327092000,0.00000000],[1786327412000,0.00000000],[1786327667000,0.00000000],[1786327987000,0.00000000],[1786328307000,0.00000000],[1786328564000,0.00000000],[1786328884000,0.00000000],[1786329204000,0.00000000],[1786329459000,0.00000000],[1786329779000,0.00000000],[1786330099000,0.00000000],[1786330354000,0.00000000],[1786330677000,0.00000000],[1786330995000,0.00000000],[1786331251000,0.00000000],[1786331571000,0.00000000],[1786331892000,0.00000000],[1786332211000,0.00000000],[1786332467000,0.00000000],[1786332787000,0.00000000],[1786333053000,0.00000000],[1786333379000,0.00000000],[1786333650000,0.00000000],[1786333955000,0.00000000],[1786334275000,0.00000000],[1786334595000,0.00000000],[1786334851000,0.00000000],[1786335172000,0.00000000],[1786335491000,0.00000000],[1786335811000,0.00000000],[1786336067000,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; }