var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1765580404000,1.90000000],[1765580595000,1.90000000],[1765580852000,1.90000000],[1765581172000,2.00000000],[1765581492000,2.00000000],[1765581812000,1.90000000],[1765582067000,1.84000000],[1765582387000,1.80000000],[1765582708000,1.90000000],[1765582964000,1.88000000],[1765583284000,1.80000000],[1765583604000,1.70000000],[1765583860000,1.70000000],[1765584180000,1.70000000],[1765584500000,1.70000000],[1765584756000,1.70000000],[1765585076000,1.70000000],[1765585396000,1.70000000],[1765585652000,1.70000000],[1765585987000,1.70000000],[1765586307000,1.60000000],[1765586563000,1.66000000],[1765586883000,1.76000000],[1765587203000,1.70000000],[1765587459000,1.70000000],[1765587779000,1.80000000],[1765588099000,1.80000000],[1765588352000,1.80000000],[1765588675000,1.80000000],[1765588995000,1.77500000],[1765589251000,1.80000000],[1765589571000,1.80000000],[1765589891000,1.80000000],[1765590211000,1.80000000],[1765590467000,1.90000000],[1765590788000,1.90000000],[1765591107000,1.95000000],[1765591363000,1.96000000],[1765591683000,1.98000000],[1765592004000,1.90000000],[1765592259000,1.90000000],[1765592580000,1.90000000],[1765592899000,1.90000000],[1765593152000,1.90000000],[1765593476000,1.82000000],[1765593795000,1.90000000],[1765594051000,1.90000000],[1765594371000,1.90000000],[1765594691000,1.86000000],[1765595011000,1.70000000],[1765595252000,1.70000000],[1765595571000,1.70000000],[1765595891000,1.60000000],[1765596211000,1.60000000],[1765596467000,1.48000000],[1765596787000,1.40000000],[1765597107000,1.32500000],[1765597363000,1.36000000],[1765597683000,1.30000000],[1765598003000,1.30000000],[1765598259000,1.36000000],[1765598579000,1.30000000],[1765598899000,1.30000000],[1765599152000,1.30000000],[1765599475000,1.36000000],[1765599795000,1.35000000],[1765600051000,1.32000000],[1765600371000,1.32000000],[1765600691000,1.34000000],[1765601011000,1.32500000],[1765601267000,1.32000000],[1765601587000,1.30000000],[1765601907000,1.30000000],[1765602163000,1.30000000],[1765602483000,1.30000000],[1765602803000,1.30000000],[1765603059000,1.26000000],[1765603379000,1.28000000],[1765603699000,1.27500000],[1765603952000,1.26000000],[1765604276000,1.30000000],[1765604596000,1.30000000],[1765604852000,1.30000000],[1765605172000,1.36000000],[1765605492000,1.40000000],[1765605813000,1.40000000],[1765606067000,1.40000000],[1765606388000,1.50000000],[1765606709000,1.50000000],[1765606964000,1.50000000],[1765607284000,1.50000000],[1765607604000,1.55000000],[1765607860000,1.58000000],[1765608179000,1.60000000],[1765608499000,1.60000000],[1765608752000,1.60000000],[1765609075000,1.66000000],[1765609395000,1.60000000],[1765609651000,1.66000000],[1765609971000,1.70000000],[1765610291000,1.70000000],[1765610611000,1.80000000],[1765610867000,1.82000000],[1765611187000,1.82000000],[1765611507000,1.82500000],[1765611763000,1.90000000],[1765612083000,1.90000000],[1765612403000,1.90000000],[1765612659000,1.90000000],[1765612979000,1.96000000],[1765613299000,1.90000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1765580404000,1.8],[1765580595000,1.8],[1765580852000,1.8],[1765581172000,1.9],[1765581492000,1.9],[1765581812000,1.8],[1765582067000,1.7],[1765582387000,1.7],[1765582708000,1.8],[1765582964000,1.7],[1765583284000,1.7],[1765583604000,1.6],[1765583860000,1.6],[1765584180000,1.6],[1765584500000,1.6],[1765584756000,1.6],[1765585076000,1.6],[1765585396000,1.6],[1765585652000,1.6],[1765585987000,1.6],[1765586307000,1.5],[1765586563000,1.5],[1765586883000,1.6],[1765587203000,1.6],[1765587459000,1.6],[1765587779000,1.7],[1765588099000,1.7],[1765588352000,1.7],[1765588675000,1.7],[1765588995000,1.6],[1765589251000,1.7],[1765589571000,1.7],[1765589891000,1.7],[1765590211000,1.7],[1765590467000,1.8],[1765590788000,1.8],[1765591107000,1.8],[1765591363000,1.8],[1765591683000,1.8],[1765592004000,1.8],[1765592259000,1.8],[1765592580000,1.8],[1765592899000,1.8],[1765593152000,1.8],[1765593476000,1.7],[1765593795000,1.8],[1765594051000,1.8],[1765594371000,1.8],[1765594691000,1.7],[1765595011000,1.6],[1765595252000,1.6],[1765595571000,1.6],[1765595891000,1.5],[1765596211000,1.5],[1765596467000,1.3],[1765596787000,1.3],[1765597107000,1.2],[1765597363000,1.2],[1765597683000,1.2],[1765598003000,1.2],[1765598259000,1.2],[1765598579000,1.2],[1765598899000,1.2],[1765599152000,1.2],[1765599475000,1.2],[1765599795000,1.2],[1765600051000,1.2],[1765600371000,1.2],[1765600691000,1.2],[1765601011000,1.2],[1765601267000,1.2],[1765601587000,1.2],[1765601907000,1.2],[1765602163000,1.2],[1765602483000,1.2],[1765602803000,1.2],[1765603059000,1.1],[1765603379000,1.1],[1765603699000,1.1],[1765603952000,1.1],[1765604276000,1.2],[1765604596000,1.2],[1765604852000,1.2],[1765605172000,1.2],[1765605492000,1.3],[1765605813000,1.3],[1765606067000,1.3],[1765606388000,1.4],[1765606709000,1.4],[1765606964000,1.4],[1765607284000,1.4],[1765607604000,1.4],[1765607860000,1.4],[1765608179000,1.5],[1765608499000,1.5],[1765608752000,1.5],[1765609075000,1.5],[1765609395000,1.5],[1765609651000,1.5],[1765609971000,1.6],[1765610291000,1.6],[1765610611000,1.7],[1765610867000,1.7],[1765611187000,1.7],[1765611507000,1.7],[1765611763000,1.8],[1765612083000,1.8],[1765612403000,1.8],[1765612659000,1.8],[1765612979000,1.8],[1765613299000,1.8],], 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: [[1765580404000,99.00000000],[1765580595000,99.00000000],[1765580852000,99.00000000],[1765581172000,99.00000000],[1765581492000,99.00000000],[1765581812000,99.00000000],[1765582067000,99.00000000],[1765582387000,99.00000000],[1765582708000,99.00000000],[1765582964000,99.00000000],[1765583284000,99.00000000],[1765583604000,99.00000000],[1765583860000,99.00000000],[1765584180000,99.00000000],[1765584500000,99.00000000],[1765584756000,99.00000000],[1765585076000,99.00000000],[1765585396000,99.00000000],[1765585652000,99.00000000],[1765585987000,99.00000000],[1765586307000,99.00000000],[1765586563000,99.00000000],[1765586883000,99.00000000],[1765587203000,99.00000000],[1765587459000,99.00000000],[1765587779000,99.00000000],[1765588099000,99.00000000],[1765588352000,99.00000000],[1765588675000,99.00000000],[1765588995000,99.00000000],[1765589251000,99.00000000],[1765589571000,99.00000000],[1765589891000,99.00000000],[1765590211000,99.00000000],[1765590467000,99.00000000],[1765590788000,99.00000000],[1765591107000,99.00000000],[1765591363000,99.00000000],[1765591683000,99.00000000],[1765592004000,99.00000000],[1765592259000,99.00000000],[1765592580000,99.00000000],[1765592899000,99.00000000],[1765593152000,99.00000000],[1765593476000,99.00000000],[1765593795000,99.00000000],[1765594051000,99.00000000],[1765594371000,99.00000000],[1765594691000,99.00000000],[1765595011000,99.00000000],[1765595252000,99.00000000],[1765595571000,99.00000000],[1765595891000,99.00000000],[1765596211000,99.00000000],[1765596467000,99.00000000],[1765596787000,99.00000000],[1765597107000,99.00000000],[1765597363000,99.00000000],[1765597683000,99.00000000],[1765598003000,99.00000000],[1765598259000,99.00000000],[1765598579000,99.00000000],[1765598899000,99.00000000],[1765599152000,99.00000000],[1765599475000,99.00000000],[1765599795000,99.00000000],[1765600051000,99.00000000],[1765600371000,99.00000000],[1765600691000,99.00000000],[1765601011000,99.00000000],[1765601267000,99.00000000],[1765601587000,99.00000000],[1765601907000,99.00000000],[1765602163000,99.00000000],[1765602483000,99.00000000],[1765602803000,99.00000000],[1765603059000,99.00000000],[1765603379000,99.00000000],[1765603699000,99.00000000],[1765603952000,99.00000000],[1765604276000,99.00000000],[1765604596000,99.00000000],[1765604852000,99.00000000],[1765605172000,99.00000000],[1765605492000,99.00000000],[1765605813000,99.00000000],[1765606067000,99.00000000],[1765606388000,99.00000000],[1765606709000,99.00000000],[1765606964000,99.00000000],[1765607284000,99.00000000],[1765607604000,99.00000000],[1765607860000,99.00000000],[1765608179000,99.00000000],[1765608499000,99.00000000],[1765608752000,99.00000000],[1765609075000,99.00000000],[1765609395000,99.00000000],[1765609651000,99.00000000],[1765609971000,99.00000000],[1765610291000,99.00000000],[1765610611000,99.00000000],[1765610867000,99.00000000],[1765611187000,99.00000000],[1765611507000,99.00000000],[1765611763000,99.00000000],[1765612083000,99.00000000],[1765612403000,99.00000000],[1765612659000,99.00000000],[1765612979000,99.00000000],[1765613299000,99.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: [[1765580404000,1031],[1765580595000,1031],[1765580852000,1031],[1765581172000,1031],[1765581492000,1031],[1765581812000,1031],[1765582067000,1031],[1765582387000,1031.1],[1765582708000,1031.1],[1765582964000,1031.1],[1765583284000,1031],[1765583604000,1031],[1765583860000,1030.9],[1765584180000,1031],[1765584500000,1031.1],[1765584756000,1031],[1765585076000,1031.1],[1765585396000,1031.1],[1765585652000,1031],[1765585987000,1031],[1765586307000,1031.1],[1765586563000,1031.1],[1765586883000,1031],[1765587203000,1031.1],[1765587459000,1031.1],[1765587779000,1031.1],[1765588099000,1031.2],[1765588352000,1031],[1765588675000,1031.1],[1765588995000,1031.1],[1765589251000,1031.1],[1765589571000,1031.1],[1765589891000,1031.1],[1765590211000,1031],[1765590467000,1031],[1765590788000,1031.1],[1765591107000,1031],[1765591363000,1030.9],[1765591683000,1031],[1765592004000,1031],[1765592259000,1030.9],[1765592580000,1030.8],[1765592899000,1030.7],[1765593152000,1030.6],[1765593476000,1030.5],[1765593795000,1030.6],[1765594051000,1030.5],[1765594371000,1030.6],[1765594691000,1030.7],[1765595011000,1030.8],[1765595252000,1030.7],[1765595571000,1030.7],[1765595891000,1030.8],[1765596211000,1030.7],[1765596467000,1030.8],[1765596787000,1030.8],[1765597107000,1030.8],[1765597363000,1030.7],[1765597683000,1030.7],[1765598003000,1030.7],[1765598259000,1030.8],[1765598579000,1030.8],[1765598899000,1030.8],[1765599152000,1030.9],[1765599475000,1030.8],[1765599795000,1030.9],[1765600051000,1030.9],[1765600371000,1031],[1765600691000,1030.9],[1765601011000,1031],[1765601267000,1030.9],[1765601587000,1030.9],[1765601907000,1031],[1765602163000,1031.1],[1765602483000,1031.2],[1765602803000,1031.2],[1765603059000,1031.2],[1765603379000,1031.1],[1765603699000,1031.2],[1765603952000,1031.2],[1765604276000,1031.2],[1765604596000,1031.3],[1765604852000,1031.4],[1765605172000,1031.3],[1765605492000,1031.4],[1765605813000,1031.4],[1765606067000,1031.4],[1765606388000,1031.3],[1765606709000,1031.4],[1765606964000,1031.5],[1765607284000,1031.6],[1765607604000,1031.6],[1765607860000,1031.7],[1765608179000,1031.7],[1765608499000,1031.8],[1765608752000,1032],[1765609075000,1032],[1765609395000,1032.1],[1765609651000,1032.1],[1765609971000,1032.3],[1765610291000,1032.2],[1765610611000,1032.3],[1765610867000,1032.3],[1765611187000,1032.3],[1765611507000,1032.4],[1765611763000,1032.4],[1765612083000,1032.3],[1765612403000,1032.2],[1765612659000,1032.2],[1765612979000,1032.2],[1765613299000,1032.4],], 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: [[1765580404000,1.08],[1765580595000,0],[1765580852000,0.288],[1765581172000,1.872],[1765581492000,0.36],[1765581812000,1.44],[1765582067000,0.576],[1765582387000,0],[1765582708000,0],[1765582964000,0.144],[1765583284000,0.576],[1765583604000,0.63],[1765583860000,0.648],[1765584180000,0.216],[1765584500000,0.09],[1765584756000,0.072],[1765585076000,0.648],[1765585396000,0.36],[1765585652000,0.072],[1765585987000,0.072],[1765586307000,0.72],[1765586563000,0],[1765586883000,0],[1765587203000,0],[1765587459000,0],[1765587779000,0.216],[1765588099000,0.09],[1765588352000,0],[1765588675000,0.072],[1765588995000,0.27],[1765589251000,0.216],[1765589571000,0],[1765589891000,0.072],[1765590211000,0],[1765590467000,0],[1765590788000,0],[1765591107000,0],[1765591363000,0.576],[1765591683000,1.224],[1765592004000,1.98],[1765592259000,1.368],[1765592580000,1.224],[1765592899000,0.99],[1765593152000,0.36],[1765593476000,0.216],[1765593795000,1.08],[1765594051000,2.376],[1765594371000,2.16],[1765594691000,2.52],[1765595011000,1.98],[1765595252000,1.008],[1765595571000,2.304],[1765595891000,1.368],[1765596211000,2.34],[1765596467000,1.368],[1765596787000,2.232],[1765597107000,0.72],[1765597363000,2.16],[1765597683000,2.16],[1765598003000,0.36],[1765598259000,0.936],[1765598579000,1.296],[1765598899000,1.62],[1765599152000,0.936],[1765599475000,0.216],[1765599795000,0.63],[1765600051000,0.432],[1765600371000,0.072],[1765600691000,0],[1765601011000,0.09],[1765601267000,0.936],[1765601587000,1.296],[1765601907000,0.54],[1765602163000,0.072],[1765602483000,0.072],[1765602803000,1.08],[1765603059000,1.08],[1765603379000,0.648],[1765603699000,2.25],[1765603952000,0.072],[1765604276000,0],[1765604596000,0],[1765604852000,0],[1765605172000,0],[1765605492000,0],[1765605813000,0],[1765606067000,0.072],[1765606388000,0.144],[1765606709000,0],[1765606964000,0],[1765607284000,0],[1765607604000,0],[1765607860000,0],[1765608179000,0],[1765608499000,0],[1765608752000,0],[1765609075000,0.144],[1765609395000,0.18],[1765609651000,0.072],[1765609971000,0.36],[1765610291000,0],[1765610611000,0],[1765610867000,0],[1765611187000,0],[1765611507000,0],[1765611763000,0],[1765612083000,0],[1765612403000,0],[1765612659000,0],[1765612979000,0],[1765613299000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1765580404000,2.52],[1765580595000,0],[1765580852000,1.512],[1765581172000,2.52],[1765581492000,1.008],[1765581812000,1.89],[1765582067000,2.52],[1765582387000,0],[1765582708000,0],[1765582964000,0.504],[1765583284000,1.008],[1765583604000,1.26],[1765583860000,1.512],[1765584180000,1.008],[1765584500000,0.63],[1765584756000,0.504],[1765585076000,1.512],[1765585396000,0.63],[1765585652000,0.504],[1765585987000,0.504],[1765586307000,1.89],[1765586563000,0],[1765586883000,0],[1765587203000,0],[1765587459000,0],[1765587779000,1.008],[1765588099000,0.63],[1765588352000,0],[1765588675000,0.504],[1765588995000,1.26],[1765589251000,1.512],[1765589571000,0],[1765589891000,0.504],[1765590211000,0],[1765590467000,0],[1765590788000,0],[1765591107000,0],[1765591363000,1.008],[1765591683000,2.016],[1765592004000,2.52],[1765592259000,2.52],[1765592580000,2.016],[1765592899000,1.89],[1765593152000,2.016],[1765593476000,1.008],[1765593795000,1.89],[1765594051000,3.528],[1765594371000,4.032],[1765594691000,4.536],[1765595011000,3.15],[1765595252000,2.016],[1765595571000,3.528],[1765595891000,2.016],[1765596211000,3.15],[1765596467000,2.016],[1765596787000,3.528],[1765597107000,1.89],[1765597363000,3.024],[1765597683000,3.024],[1765598003000,2.52],[1765598259000,1.512],[1765598579000,2.016],[1765598899000,2.52],[1765599152000,1.008],[1765599475000,1.512],[1765599795000,1.26],[1765600051000,1.008],[1765600371000,0.504],[1765600691000,0],[1765601011000,0.63],[1765601267000,2.016],[1765601587000,2.52],[1765601907000,1.89],[1765602163000,0.504],[1765602483000,0.504],[1765602803000,2.52],[1765603059000,2.016],[1765603379000,1.512],[1765603699000,2.52],[1765603952000,0.504],[1765604276000,0],[1765604596000,0],[1765604852000,0],[1765605172000,0],[1765605492000,0],[1765605813000,0],[1765606067000,0.504],[1765606388000,0.504],[1765606709000,0],[1765606964000,0],[1765607284000,0],[1765607604000,0],[1765607860000,0],[1765608179000,0],[1765608499000,0],[1765608752000,0],[1765609075000,1.008],[1765609395000,0.63],[1765609651000,0.504],[1765609971000,1.008],[1765610291000,0],[1765610611000,0],[1765610867000,0],[1765611187000,0],[1765611507000,0],[1765611763000,0],[1765612083000,0],[1765612403000,0],[1765612659000,0],[1765612979000,0],[1765613299000,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: [[1765580404000,185.33333333],[1765580595000,185.00000000],[1765580852000,185.00000000],[1765581172000,183.40000000],[1765581492000,186.00000000],[1765581812000,202.50000000],[1765582067000,215.20000000],[1765582387000,206.20000000],[1765582708000,203.00000000],[1765582964000,203.00000000],[1765583284000,198.80000000],[1765583604000,212.25000000],[1765583860000,202.60000000],[1765584180000,188.00000000],[1765584500000,188.00000000],[1765584756000,200.80000000],[1765585076000,217.20000000],[1765585396000,214.75000000],[1765585652000,217.60000000],[1765585987000,220.00000000],[1765586307000,219.25000000],[1765586563000,212.20000000],[1765586883000,212.00000000],[1765587203000,203.00000000],[1765587459000,203.00000000],[1765587779000,208.60000000],[1765588099000,216.50000000],[1765588352000,209.00000000],[1765588675000,203.00000000],[1765588995000,182.25000000],[1765589251000,182.00000000],[1765589571000,182.00000000],[1765589891000,182.00000000],[1765590211000,182.00000000],[1765590467000,182.00000000],[1765590788000,182.00000000],[1765591107000,182.00000000],[1765591363000,183.60000000],[1765591683000,172.80000000],[1765592004000,181.25000000],[1765592259000,167.20000000],[1765592580000,174.60000000],[1765592899000,171.50000000],[1765593152000,160.40000000],[1765593476000,179.40000000],[1765593795000,154.25000000],[1765594051000,150.20000000],[1765594371000,158.60000000],[1765594691000,195.40000000],[1765595011000,186.00000000],[1765595252000,178.80000000],[1765595571000,181.60000000],[1765595891000,182.20000000],[1765596211000,182.00000000],[1765596467000,193.20000000],[1765596787000,186.80000000],[1765597107000,192.25000000],[1765597363000,171.40000000],[1765597683000,175.00000000],[1765598003000,191.25000000],[1765598259000,181.60000000],[1765598579000,180.60000000],[1765598899000,188.00000000],[1765599152000,192.00000000],[1765599475000,182.60000000],[1765599795000,179.00000000],[1765600051000,179.20000000],[1765600371000,179.00000000],[1765600691000,179.00000000],[1765601011000,179.00000000],[1765601267000,170.40000000],[1765601587000,160.80000000],[1765601907000,163.75000000],[1765602163000,162.80000000],[1765602483000,163.00000000],[1765602803000,160.25000000],[1765603059000,154.00000000],[1765603379000,154.80000000],[1765603699000,154.00000000],[1765603952000,164.00000000],[1765604276000,164.00000000],[1765604596000,165.50000000],[1765604852000,166.00000000],[1765605172000,166.00000000],[1765605492000,166.00000000],[1765605813000,166.00000000],[1765606067000,166.00000000],[1765606388000,166.00000000],[1765606709000,166.00000000],[1765606964000,166.00000000],[1765607284000,166.00000000],[1765607604000,166.00000000],[1765607860000,166.00000000],[1765608179000,166.00000000],[1765608499000,166.00000000],[1765608752000,166.00000000],[1765609075000,182.00000000],[1765609395000,186.00000000],[1765609651000,186.00000000],[1765609971000,186.00000000],[1765610291000,186.00000000],[1765610611000,186.00000000],[1765610867000,186.00000000],[1765611187000,186.00000000],[1765611507000,186.00000000],[1765611763000,186.00000000],[1765612083000,186.00000000],[1765612403000,186.00000000],[1765612659000,186.00000000],[1765612979000,186.00000000],[1765613299000,186.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: [[1765580404000,0.00000000],[1765580595000,0.00000000],[1765580852000,0.00000000],[1765581172000,0.00000000],[1765581492000,0.00000000],[1765581812000,0.00000000],[1765582067000,0.00000000],[1765582387000,0.00000000],[1765582708000,0.00000000],[1765582964000,0.00000000],[1765583284000,0.00000000],[1765583604000,0.00000000],[1765583860000,0.00000000],[1765584180000,0.00000000],[1765584500000,0.00000000],[1765584756000,0.00000000],[1765585076000,0.00000000],[1765585396000,0.00000000],[1765585652000,0.00000000],[1765585987000,0.00000000],[1765586307000,0.00000000],[1765586563000,0.00000000],[1765586883000,0.00000000],[1765587203000,0.00000000],[1765587459000,0.00000000],[1765587779000,0.00000000],[1765588099000,0.00000000],[1765588352000,0.00000000],[1765588675000,0.00000000],[1765588995000,0.00000000],[1765589251000,0.00000000],[1765589571000,0.00000000],[1765589891000,0.00000000],[1765590211000,0.00000000],[1765590467000,0.00000000],[1765590788000,0.00000000],[1765591107000,0.00000000],[1765591363000,0.00000000],[1765591683000,0.00000000],[1765592004000,0.00000000],[1765592259000,0.00000000],[1765592580000,0.00000000],[1765592899000,0.00000000],[1765593152000,0.00000000],[1765593476000,0.00000000],[1765593795000,0.00000000],[1765594051000,0.00000000],[1765594371000,0.00000000],[1765594691000,0.00000000],[1765595011000,0.00000000],[1765595252000,0.00000000],[1765595571000,0.00000000],[1765595891000,0.00000000],[1765596211000,0.00000000],[1765596467000,0.00000000],[1765596787000,0.00000000],[1765597107000,0.00000000],[1765597363000,0.00000000],[1765597683000,0.00000000],[1765598003000,0.00000000],[1765598259000,0.00000000],[1765598579000,0.00000000],[1765598899000,0.00000000],[1765599152000,0.00000000],[1765599475000,0.00000000],[1765599795000,0.00000000],[1765600051000,0.00000000],[1765600371000,0.00000000],[1765600691000,0.00000000],[1765601011000,0.00000000],[1765601267000,0.00000000],[1765601587000,0.00000000],[1765601907000,0.00000000],[1765602163000,0.00000000],[1765602483000,0.00000000],[1765602803000,0.00000000],[1765603059000,0.00000000],[1765603379000,0.00000000],[1765603699000,0.00000000],[1765603952000,0.00000000],[1765604276000,0.00000000],[1765604596000,0.00000000],[1765604852000,0.00000000],[1765605172000,0.00000000],[1765605492000,0.00000000],[1765605813000,0.00000000],[1765606067000,0.00000000],[1765606388000,0.00000000],[1765606709000,0.00000000],[1765606964000,0.80000000],[1765607284000,1.00000000],[1765607604000,1.00000000],[1765607860000,1.80000000],[1765608179000,2.00000000],[1765608499000,3.00000000],[1765608752000,3.40000000],[1765609075000,4.40000000],[1765609395000,5.00000000],[1765609651000,6.80000000],[1765609971000,8.60000000],[1765610291000,9.00000000],[1765610611000,9.50000000],[1765610867000,10.60000000],[1765611187000,11.60000000],[1765611507000,11.50000000],[1765611763000,13.40000000],[1765612083000,15.00000000],[1765612403000,15.25000000],[1765612659000,15.00000000],[1765612979000,14.00000000],[1765613299000,14.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: [[1765580404000,0.00000000],[1765580595000,0.00000000],[1765580852000,0.00000000],[1765581172000,0.00000000],[1765581492000,0.00000000],[1765581812000,0.00000000],[1765582067000,0.00000000],[1765582387000,0.00000000],[1765582708000,0.00000000],[1765582964000,0.00000000],[1765583284000,0.00000000],[1765583604000,0.00000000],[1765583860000,0.00000000],[1765584180000,0.00000000],[1765584500000,0.00000000],[1765584756000,0.00000000],[1765585076000,0.00000000],[1765585396000,0.00000000],[1765585652000,0.00000000],[1765585987000,0.00000000],[1765586307000,0.00000000],[1765586563000,0.00000000],[1765586883000,0.00000000],[1765587203000,0.00000000],[1765587459000,0.00000000],[1765587779000,0.00000000],[1765588099000,0.00000000],[1765588352000,0.00000000],[1765588675000,0.00000000],[1765588995000,0.00000000],[1765589251000,0.00000000],[1765589571000,0.00000000],[1765589891000,0.00000000],[1765590211000,0.00000000],[1765590467000,0.00000000],[1765590788000,0.00000000],[1765591107000,0.00000000],[1765591363000,0.00000000],[1765591683000,0.00000000],[1765592004000,0.00000000],[1765592259000,0.00000000],[1765592580000,0.00000000],[1765592899000,0.00000000],[1765593152000,0.00000000],[1765593476000,0.00000000],[1765593795000,0.00000000],[1765594051000,0.00000000],[1765594371000,0.00000000],[1765594691000,0.00000000],[1765595011000,0.00000000],[1765595252000,0.00000000],[1765595571000,0.00000000],[1765595891000,0.00000000],[1765596211000,0.00000000],[1765596467000,0.00000000],[1765596787000,0.00000000],[1765597107000,0.00000000],[1765597363000,0.00000000],[1765597683000,0.00000000],[1765598003000,0.00000000],[1765598259000,0.00000000],[1765598579000,0.00000000],[1765598899000,0.00000000],[1765599152000,0.00000000],[1765599475000,0.00000000],[1765599795000,0.00000000],[1765600051000,0.00000000],[1765600371000,0.00000000],[1765600691000,0.00000000],[1765601011000,0.00000000],[1765601267000,0.00000000],[1765601587000,0.00000000],[1765601907000,0.00000000],[1765602163000,0.00000000],[1765602483000,0.00000000],[1765602803000,0.00000000],[1765603059000,0.00000000],[1765603379000,0.00000000],[1765603699000,0.00000000],[1765603952000,0.00000000],[1765604276000,0.00000000],[1765604596000,0.00000000],[1765604852000,0.00000000],[1765605172000,0.00000000],[1765605492000,0.00000000],[1765605813000,0.00000000],[1765606067000,0.00000000],[1765606388000,0.00000000],[1765606709000,0.00000000],[1765606964000,0.00000000],[1765607284000,0.00000000],[1765607604000,0.00000000],[1765607860000,0.00000000],[1765608179000,0.00000000],[1765608499000,0.00000000],[1765608752000,0.00000000],[1765609075000,0.00000000],[1765609395000,0.00000000],[1765609651000,0.00000000],[1765609971000,0.00000000],[1765610291000,0.00000000],[1765610611000,0.00000000],[1765610867000,0.00000000],[1765611187000,0.00000000],[1765611507000,0.00000000],[1765611763000,0.00000000],[1765612083000,0.00000000],[1765612403000,0.00000000],[1765612659000,0.00000000],[1765612979000,0.00000000],[1765613299000,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: [[1765580404000,0.00000000],[1765580595000,0.00000000],[1765580852000,0.00000000],[1765581172000,0.00000000],[1765581492000,0.00000000],[1765581812000,0.00000000],[1765582067000,0.00000000],[1765582387000,0.00000000],[1765582708000,0.00000000],[1765582964000,0.00000000],[1765583284000,0.00000000],[1765583604000,0.00000000],[1765583860000,0.00000000],[1765584180000,0.00000000],[1765584500000,0.00000000],[1765584756000,0.00000000],[1765585076000,0.00000000],[1765585396000,0.00000000],[1765585652000,0.00000000],[1765585987000,0.00000000],[1765586307000,0.00000000],[1765586563000,0.00000000],[1765586883000,0.00000000],[1765587203000,0.00000000],[1765587459000,0.00000000],[1765587779000,0.00000000],[1765588099000,0.00000000],[1765588352000,0.00000000],[1765588675000,0.00000000],[1765588995000,0.00000000],[1765589251000,0.00000000],[1765589571000,0.00000000],[1765589891000,0.00000000],[1765590211000,0.00000000],[1765590467000,0.00000000],[1765590788000,0.00000000],[1765591107000,0.00000000],[1765591363000,0.00000000],[1765591683000,0.00000000],[1765592004000,0.00000000],[1765592259000,0.00000000],[1765592580000,0.00000000],[1765592899000,0.00000000],[1765593152000,0.00000000],[1765593476000,0.00000000],[1765593795000,0.00000000],[1765594051000,0.00000000],[1765594371000,0.00000000],[1765594691000,0.00000000],[1765595011000,0.00000000],[1765595252000,0.00000000],[1765595571000,0.00000000],[1765595891000,0.00000000],[1765596211000,0.00000000],[1765596467000,0.00000000],[1765596787000,0.00000000],[1765597107000,0.00000000],[1765597363000,0.00000000],[1765597683000,0.00000000],[1765598003000,0.00000000],[1765598259000,0.00000000],[1765598579000,0.00000000],[1765598899000,0.00000000],[1765599152000,0.00000000],[1765599475000,0.00000000],[1765599795000,0.00000000],[1765600051000,0.00000000],[1765600371000,0.00000000],[1765600691000,0.00000000],[1765601011000,0.00000000],[1765601267000,0.00000000],[1765601587000,0.00000000],[1765601907000,0.00000000],[1765602163000,0.00000000],[1765602483000,0.00000000],[1765602803000,0.00000000],[1765603059000,0.00000000],[1765603379000,0.00000000],[1765603699000,0.00000000],[1765603952000,0.00000000],[1765604276000,0.00000000],[1765604596000,0.00000000],[1765604852000,0.00000000],[1765605172000,0.00000000],[1765605492000,0.00000000],[1765605813000,0.00000000],[1765606067000,0.00000000],[1765606388000,0.18300000],[1765606709000,0.30500000],[1765606964000,0.30500000],[1765607284000,0.30500000],[1765607604000,0.30500000],[1765607860000,0.30500000],[1765608179000,0.30500000],[1765608499000,0.30500000],[1765608752000,0.30500000],[1765609075000,0.30500000],[1765609395000,0.30500000],[1765609651000,0.30500000],[1765609971000,0.30500000],[1765610291000,0.30500000],[1765610611000,0.30500000],[1765610867000,0.30500000],[1765611187000,0.30500000],[1765611507000,0.30500000],[1765611763000,0.30500000],[1765612083000,0.30500000],[1765612403000,0.30500000],[1765612659000,0.30500000],[1765612979000,0.30500000],[1765613299000,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; }