var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1610578809000,-1.90000000],[1610579408000,-1.90000000],[1610580009000,-2.00000000],[1610580608000,-2.10000000],[1610581209000,-2.20000000],[1610581808000,-2.20000000],[1610582409000,-2.20000000],[1610583009000,-2.30000000],[1610583608000,-2.40000000],[1610584209000,-2.30000000],[1610584809000,-2.30000000],[1610585408000,-2.30000000],[1610586009000,-2.40000000],[1610586609000,-2.40000000],[1610587209000,-2.50000000],[1610587809000,-2.50000000],[1610588409000,-2.60000000],[1610589009000,-2.60000000],[1610589609000,-2.60000000],[1610590209000,-2.70000000],[1610590809000,-2.80000000],[1610591409000,-2.90000000],[1610592009000,-3.00000000],[1610592610000,-3.00000000],[1610593209000,-2.90000000],[1610593809000,-2.90000000],[1610594409000,-3.00000000],[1610595009000,-3.10000000],[1610595609000,-3.00000000],[1610596209000,-2.90000000],[1610596810000,-2.90000000],[1610597409000,-2.90000000],[1610598010000,-3.00000000],[1610598609000,-3.00000000],[1610599209000,-3.00000000],[1610599809000,-3.00000000],[1610600410000,-3.00000000],[1610601009000,-3.00000000],[1610601610000,-2.90000000],[1610602210000,-2.90000000],[1610602809000,-2.60000000],[1610603409000,-2.20000000],[1610604010000,-2.20000000],[1610604610000,-2.20000000],[1610605210000,-2.10000000],[1610605809000,-2.00000000],[1610606409000,-2.00000000],[1610607010000,-1.90000000],[1610607610000,-1.80000000],[1610608209000,-1.80000000],[1610608810000,-1.90000000],[1610609409000,-1.80000000],[1610610010000,-1.80000000],[1610610610000,-1.80000000],[1610611209000,-1.90000000],[1610611810000,-1.90000000],[1610612410000,-1.90000000],[1610613009000,-1.80000000],[1610613610000,-1.80000000],[1610614210000,-1.80000000],[1610614809000,-1.70000000],[1610615410000,-1.60000000],[1610616010000,-1.60000000],[1610616610000,-1.70000000],[1610617215000,-1.60000000],[1610617810000,-1.50000000],[1610618409000,-1.50000000],[1610619010000,-1.40000000],[1610619610000,-1.20000000],[1610620210000,-1.20000000],[1610620810000,-1.30000000],[1610621410000,-1.30000000],[1610622010000,-0.90000000],[1610622610000,-0.30000000],[1610623210000,0.20000000],[1610623810000,0.50000000],[1610624410000,0.60000000],[1610625010000,0.50000000],[1610625611000,0.60000000],[1610626210000,0.60000000],[1610626810000,0.70000000],[1610627411000,0.80000000],[1610628010000,0.80000000],[1610628610000,1.00000000],[1610629211000,0.70000000],[1610629810000,0.40000000],[1610630410000,0.50000000],[1610631010000,0.50000000],[1610631610000,0.50000000],[1610632210000,0.20000000],[1610632810000,-0.20000000],[1610633411000,-0.30000000],[1610634010000,-0.30000000],[1610634611000,-0.40000000],[1610635210000,-0.50000000],[1610635810000,-0.60000000],[1610636411000,-0.70000000],[1610637010000,-0.70000000],[1610637610000,-0.80000000],[1610638211000,-0.90000000],[1610638811000,-0.90000000],[1610639410000,-1.10000000],[1610640011000,-1.10000000],[1610640610000,-1.30000000],[1610641210000,-1.50000000],[1610641811000,-1.40000000],[1610642410000,-1.30000000],[1610643010000,-1.30000000],[1610643610000,-1.40000000],[1610644210000,-1.40000000],[1610644810000,-1.40000000],[1610645411000,-1.50000000],[1610646011000,-1.50000000],[1610646610000,-1.60000000],[1610647211000,-1.60000000],[1610647810000,-1.60000000],[1610648411000,-1.60000000],[1610649011000,-1.50000000],[1610649611000,-1.50000000],[1610650211000,-1.50000000],[1610650811000,-1.60000000],[1610651411000,-1.60000000],[1610652011000,-1.70000000],[1610652611000,-1.80000000],[1610653211000,-1.80000000],[1610653811000,-1.70000000],[1610654411000,-1.90000000],[1610655011000,-2.10000000],[1610655611000,-2.20000000],[1610656211000,-2.10000000],[1610656811000,-2.10000000],[1610657411000,-2.20000000],[1610658012000,-2.30000000],[1610658611000,-2.50000000],[1610659211000,-2.60000000],[1610659811000,-2.80000000],[1610660411000,-2.80000000],[1610661011000,-2.80000000],[1610661611000,-2.50000000],[1610662211000,-2.70000000],[1610662811000,-2.70000000],[1610663411000,-2.70000000],[1610664011000,-2.80000000],[1610664611000,-2.70000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1610578809000,-3.2],[1610579408000,-3.2],[1610580009000,-3.3],[1610580608000,-3.3],[1610581209000,-3.4],[1610581808000,-3.4],[1610582409000,-3.5],[1610583009000,-3.6],[1610583608000,-3.6],[1610584209000,-3.5],[1610584809000,-3.4],[1610585408000,-3.4],[1610586009000,-3.5],[1610586609000,-3.5],[1610587209000,-3.6],[1610587809000,-3.6],[1610588409000,-3.7],[1610589009000,-3.7],[1610589609000,-3.7],[1610590209000,-3.8],[1610590809000,-3.9],[1610591409000,-3.9],[1610592009000,-4],[1610592610000,-4],[1610593209000,-3.9],[1610593809000,-3.9],[1610594409000,-4],[1610595009000,-4.1],[1610595609000,-4],[1610596209000,-3.9],[1610596810000,-3.9],[1610597409000,-3.9],[1610598010000,-4],[1610598609000,-4],[1610599209000,-4],[1610599809000,-4],[1610600410000,-4],[1610601009000,-3.9],[1610601610000,-3.8],[1610602210000,-3.8],[1610602809000,-3.5],[1610603409000,-3.1],[1610604010000,-3.1],[1610604610000,-3.1],[1610605210000,-3.1],[1610605809000,-3],[1610606409000,-3.1],[1610607010000,-3],[1610607610000,-3],[1610608209000,-3.1],[1610608810000,-3.2],[1610609409000,-3.2],[1610610010000,-3.2],[1610610610000,-3.3],[1610611209000,-3.4],[1610611810000,-3.4],[1610612410000,-3.5],[1610613009000,-3.4],[1610613610000,-3.4],[1610614210000,-3.5],[1610614809000,-3.4],[1610615410000,-3.3],[1610616010000,-3.3],[1610616610000,-3.5],[1610617215000,-3.4],[1610617810000,-3.3],[1610618409000,-3.3],[1610619010000,-3.3],[1610619610000,-3.2],[1610620210000,-3.2],[1610620810000,-3.4],[1610621410000,-3.4],[1610622010000,-3.1],[1610622610000,-2.6],[1610623210000,-2.3],[1610623810000,-2.2],[1610624410000,-2.1],[1610625010000,-2.3],[1610625611000,-2.3],[1610626210000,-2.4],[1610626810000,-2.3],[1610627411000,-2.4],[1610628010000,-2.5],[1610628610000,-2.4],[1610629211000,-2.8],[1610629810000,-3.1],[1610630410000,-3],[1610631010000,-3.1],[1610631610000,-3.1],[1610632210000,-3.5],[1610632810000,-3.9],[1610633411000,-4],[1610634010000,-4.1],[1610634611000,-4.2],[1610635210000,-4.4],[1610635810000,-4.5],[1610636411000,-4.5],[1610637010000,-4.5],[1610637610000,-4.6],[1610638211000,-4.6],[1610638811000,-4.5],[1610639410000,-4.6],[1610640011000,-4.6],[1610640610000,-4.7],[1610641210000,-4.8],[1610641811000,-4.6],[1610642410000,-4.4],[1610643010000,-4.3],[1610643610000,-4.4],[1610644210000,-4.3],[1610644810000,-4.3],[1610645411000,-4.3],[1610646011000,-4.2],[1610646610000,-4.3],[1610647211000,-4.2],[1610647810000,-4.2],[1610648411000,-4.2],[1610649011000,-4.1],[1610649611000,-4.1],[1610650211000,-4.1],[1610650811000,-4.3],[1610651411000,-4.4],[1610652011000,-4.6],[1610652611000,-4.9],[1610653211000,-5.1],[1610653811000,-5.2],[1610654411000,-5.4],[1610655011000,-5.6],[1610655611000,-5.8],[1610656211000,-5.7],[1610656811000,-5.7],[1610657411000,-5.8],[1610658012000,-5.8],[1610658611000,-6],[1610659211000,-6.1],[1610659811000,-6.3],[1610660411000,-6.3],[1610661011000,-6.3],[1610661611000,-6.1],[1610662211000,-6.3],[1610662811000,-6.3],[1610663411000,-6.3],[1610664011000,-6.3],[1610664611000,-6.2],], 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: [[1610578809000,91.00000000],[1610579408000,91.20000000],[1610580009000,91.20000000],[1610580608000,91.40000000],[1610581209000,91.40000000],[1610581808000,91.40000000],[1610582409000,91.20000000],[1610583009000,91.20000000],[1610583608000,91.60000000],[1610584209000,91.80000000],[1610584809000,92.00000000],[1610585408000,92.00000000],[1610586009000,92.00000000],[1610586609000,92.20000000],[1610587209000,92.20000000],[1610587809000,92.20000000],[1610588409000,92.20000000],[1610589009000,92.40000000],[1610589609000,92.40000000],[1610590209000,92.40000000],[1610590809000,92.40000000],[1610591409000,92.60000000],[1610592009000,92.60000000],[1610592610000,92.80000000],[1610593209000,92.80000000],[1610593809000,92.80000000],[1610594409000,92.80000000],[1610595009000,92.80000000],[1610595609000,93.00000000],[1610596209000,93.00000000],[1610596810000,93.00000000],[1610597409000,93.00000000],[1610598010000,93.00000000],[1610598609000,93.20000000],[1610599209000,93.20000000],[1610599809000,93.20000000],[1610600410000,93.20000000],[1610601009000,93.40000000],[1610601610000,93.40000000],[1610602210000,93.40000000],[1610602809000,93.60000000],[1610603409000,93.60000000],[1610604010000,93.40000000],[1610604610000,93.40000000],[1610605210000,93.20000000],[1610605809000,93.00000000],[1610606409000,92.40000000],[1610607010000,92.00000000],[1610607610000,91.60000000],[1610608209000,91.20000000],[1610608810000,91.00000000],[1610609409000,90.60000000],[1610610010000,90.20000000],[1610610610000,89.80000000],[1610611209000,89.60000000],[1610611810000,89.40000000],[1610612410000,89.20000000],[1610613009000,89.00000000],[1610613610000,88.80000000],[1610614210000,88.60000000],[1610614809000,88.60000000],[1610615410000,88.40000000],[1610616010000,88.20000000],[1610616610000,88.00000000],[1610617215000,87.80000000],[1610617810000,87.60000000],[1610618409000,87.40000000],[1610619010000,87.00000000],[1610619610000,86.60000000],[1610620210000,86.20000000],[1610620810000,86.00000000],[1610621410000,85.80000000],[1610622010000,85.20000000],[1610622610000,84.40000000],[1610623210000,83.60000000],[1610623810000,82.60000000],[1610624410000,82.20000000],[1610625010000,81.80000000],[1610625611000,81.40000000],[1610626210000,80.80000000],[1610626810000,80.40000000],[1610627411000,79.60000000],[1610628010000,79.00000000],[1610628610000,78.40000000],[1610629211000,77.80000000],[1610629810000,77.80000000],[1610630410000,77.60000000],[1610631010000,77.20000000],[1610631610000,76.80000000],[1610632210000,76.40000000],[1610632810000,76.60000000],[1610633411000,76.40000000],[1610634010000,76.00000000],[1610634611000,75.60000000],[1610635210000,75.40000000],[1610635810000,75.20000000],[1610636411000,75.60000000],[1610637010000,75.80000000],[1610637610000,76.00000000],[1610638211000,76.20000000],[1610638811000,76.60000000],[1610639410000,77.20000000],[1610640011000,77.60000000],[1610640610000,78.00000000],[1610641210000,78.60000000],[1610641811000,79.20000000],[1610642410000,79.60000000],[1610643010000,80.00000000],[1610643610000,80.20000000],[1610644210000,80.60000000],[1610644810000,81.00000000],[1610645411000,81.40000000],[1610646011000,81.80000000],[1610646610000,82.20000000],[1610647211000,82.40000000],[1610647810000,82.40000000],[1610648411000,82.60000000],[1610649011000,82.80000000],[1610649611000,82.80000000],[1610650211000,82.40000000],[1610650811000,82.00000000],[1610651411000,81.40000000],[1610652011000,80.60000000],[1610652611000,79.60000000],[1610653211000,78.40000000],[1610653811000,77.40000000],[1610654411000,77.00000000],[1610655011000,77.00000000],[1610655611000,76.60000000],[1610656211000,76.60000000],[1610656811000,76.40000000],[1610657411000,76.60000000],[1610658012000,77.00000000],[1610658611000,77.40000000],[1610659211000,77.40000000],[1610659811000,77.40000000],[1610660411000,77.40000000],[1610661011000,77.00000000],[1610661611000,76.60000000],[1610662211000,76.40000000],[1610662811000,76.60000000],[1610663411000,76.80000000],[1610664011000,77.00000000],[1610664611000,77.20000000],], 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: [[1610578809000,1010.8],[1610579408000,1010.6],[1610580009000,1010.4],[1610580608000,1010.1],[1610581209000,1010],[1610581808000,1009.8],[1610582409000,1009.7],[1610583009000,1009.8],[1610583608000,1009.7],[1610584209000,1009.6],[1610584809000,1009.5],[1610585408000,1009.4],[1610586009000,1009.4],[1610586609000,1009.3],[1610587209000,1009.2],[1610587809000,1009.1],[1610588409000,1008.9],[1610589009000,1008.8],[1610589609000,1008.7],[1610590209000,1008.6],[1610590809000,1008.5],[1610591409000,1008.4],[1610592009000,1008.3],[1610592610000,1008.2],[1610593209000,1008],[1610593809000,1007.9],[1610594409000,1007.8],[1610595009000,1007.8],[1610595609000,1007.5],[1610596209000,1007.3],[1610596810000,1007.2],[1610597409000,1007.1],[1610598010000,1007.1],[1610598609000,1007],[1610599209000,1007],[1610599809000,1007],[1610600410000,1006.9],[1610601009000,1006.9],[1610601610000,1006.9],[1610602210000,1006.9],[1610602809000,1006.8],[1610603409000,1006.7],[1610604010000,1006.7],[1610604610000,1006.8],[1610605210000,1006.8],[1610605809000,1006.9],[1610606409000,1006.8],[1610607010000,1006.8],[1610607610000,1007],[1610608209000,1007.1],[1610608810000,1007.2],[1610609409000,1007.1],[1610610010000,1007.3],[1610610610000,1007.4],[1610611209000,1007.4],[1610611810000,1007.4],[1610612410000,1007.7],[1610613009000,1007.9],[1610613610000,1008],[1610614210000,1008.1],[1610614809000,1008.2],[1610615410000,1008.4],[1610616010000,1008.4],[1610616610000,1008.4],[1610617215000,1008.5],[1610617810000,1008.5],[1610618409000,1008.5],[1610619010000,1008.5],[1610619610000,1008.5],[1610620210000,1008.5],[1610620810000,1008.6],[1610621410000,1008.6],[1610622010000,1008.5],[1610622610000,1008.5],[1610623210000,1008.6],[1610623810000,1008.7],[1610624410000,1008.9],[1610625010000,1009.1],[1610625611000,1009.2],[1610626210000,1009.2],[1610626810000,1009.3],[1610627411000,1009.5],[1610628010000,1009.5],[1610628610000,1009.6],[1610629211000,1009.9],[1610629810000,1010.2],[1610630410000,1010.3],[1610631010000,1010.6],[1610631610000,1010.7],[1610632210000,1010.8],[1610632810000,1011],[1610633411000,1011.1],[1610634010000,1011.1],[1610634611000,1011.4],[1610635210000,1011.6],[1610635810000,1012],[1610636411000,1012.3],[1610637010000,1012.6],[1610637610000,1012.8],[1610638211000,1013.1],[1610638811000,1013.4],[1610639410000,1013.6],[1610640011000,1013.7],[1610640610000,1013.9],[1610641210000,1014],[1610641811000,1014],[1610642410000,1013.9],[1610643010000,1014],[1610643610000,1014.1],[1610644210000,1014.2],[1610644810000,1014.4],[1610645411000,1014.4],[1610646011000,1014.5],[1610646610000,1014.6],[1610647211000,1014.7],[1610647810000,1014.8],[1610648411000,1014.9],[1610649011000,1015],[1610649611000,1015],[1610650211000,1014.9],[1610650811000,1015],[1610651411000,1015.2],[1610652011000,1015.4],[1610652611000,1015.5],[1610653211000,1015.6],[1610653811000,1015.7],[1610654411000,1016],[1610655011000,1016.2],[1610655611000,1016.4],[1610656211000,1016.3],[1610656811000,1016.4],[1610657411000,1016.6],[1610658012000,1016.8],[1610658611000,1016.8],[1610659211000,1016.9],[1610659811000,1017],[1610660411000,1017.1],[1610661011000,1017.2],[1610661611000,1017.2],[1610662211000,1017.2],[1610662811000,1017.2],[1610663411000,1017.4],[1610664011000,1017.4],[1610664611000,1017.2],], 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: 'Slnečné žiarenie (W/m2)', data: [[1610578809000,0.00000000],[1610579408000,0.00000000],[1610580009000,0.00000000],[1610580608000,0.00000000],[1610581209000,0.00000000],[1610581808000,0.00000000],[1610582409000,0.00000000],[1610583009000,0.00000000],[1610583608000,0.00000000],[1610584209000,0.00000000],[1610584809000,0.00000000],[1610585408000,0.00000000],[1610586009000,0.00000000],[1610586609000,0.00000000],[1610587209000,0.00000000],[1610587809000,0.00000000],[1610588409000,0.00000000],[1610589009000,0.00000000],[1610589609000,0.00000000],[1610590209000,0.00000000],[1610590809000,0.00000000],[1610591409000,0.00000000],[1610592009000,0.00000000],[1610592610000,0.00000000],[1610593209000,0.00000000],[1610593809000,0.00000000],[1610594409000,0.00000000],[1610595009000,0.00000000],[1610595609000,0.00000000],[1610596209000,0.00000000],[1610596810000,0.00000000],[1610597409000,0.00000000],[1610598010000,0.00000000],[1610598609000,0.00000000],[1610599209000,0.00000000],[1610599809000,0.00000000],[1610600410000,0.00000000],[1610601009000,0.00000000],[1610601610000,0.00000000],[1610602210000,0.00000000],[1610602809000,0.00000000],[1610603409000,0.00000000],[1610604010000,0.00000000],[1610604610000,0.00000000],[1610605210000,0.00000000],[1610605809000,0.00000000],[1610606409000,2.00000000],[1610607010000,4.00000000],[1610607610000,6.00000000],[1610608209000,12.00000000],[1610608810000,24.00000000],[1610609409000,38.00000000],[1610610010000,60.00000000],[1610610610000,70.00000000],[1610611209000,74.00000000],[1610611810000,70.00000000],[1610612410000,90.00000000],[1610613009000,98.00000000],[1610613610000,110.00000000],[1610614210000,152.00000000],[1610614809000,184.00000000],[1610615410000,134.00000000],[1610616010000,108.00000000],[1610616610000,120.00000000],[1610617215000,144.00000000],[1610617810000,132.00000000],[1610618409000,142.00000000],[1610619010000,170.00000000],[1610619610000,188.00000000],[1610620210000,152.00000000],[1610620810000,114.00000000],[1610621410000,124.00000000],[1610622010000,318.00000000],[1610622610000,352.00000000],[1610623210000,384.00000000],[1610623810000,408.00000000],[1610624410000,318.00000000],[1610625010000,296.00000000],[1610625611000,308.00000000],[1610626210000,306.00000000],[1610626810000,300.00000000],[1610627411000,290.00000000],[1610628010000,278.00000000],[1610628610000,254.00000000],[1610629211000,184.00000000],[1610629810000,158.00000000],[1610630410000,220.00000000],[1610631010000,156.00000000],[1610631610000,98.00000000],[1610632210000,50.00000000],[1610632810000,34.00000000],[1610633411000,56.00000000],[1610634010000,24.00000000],[1610634611000,22.00000000],[1610635210000,18.00000000],[1610635810000,14.00000000],[1610636411000,12.00000000],[1610637010000,8.00000000],[1610637610000,4.00000000],[1610638211000,2.00000000],[1610638811000,0.00000000],[1610639410000,0.00000000],[1610640011000,0.00000000],[1610640610000,0.00000000],[1610641210000,0.00000000],[1610641811000,0.00000000],[1610642410000,0.00000000],[1610643010000,0.00000000],[1610643610000,0.00000000],[1610644210000,0.00000000],[1610644810000,0.00000000],[1610645411000,0.00000000],[1610646011000,0.00000000],[1610646610000,0.00000000],[1610647211000,0.00000000],[1610647810000,0.00000000],[1610648411000,0.00000000],[1610649011000,0.00000000],[1610649611000,0.00000000],[1610650211000,0.00000000],[1610650811000,0.00000000],[1610651411000,0.00000000],[1610652011000,0.00000000],[1610652611000,0.00000000],[1610653211000,0.00000000],[1610653811000,0.00000000],[1610654411000,0.00000000],[1610655011000,0.00000000],[1610655611000,0.00000000],[1610656211000,0.00000000],[1610656811000,0.00000000],[1610657411000,0.00000000],[1610658012000,0.00000000],[1610658611000,0.00000000],[1610659211000,0.00000000],[1610659811000,0.00000000],[1610660411000,0.00000000],[1610661011000,0.00000000],[1610661611000,0.00000000],[1610662211000,0.00000000],[1610662811000,0.00000000],[1610663411000,0.00000000],[1610664011000,0.00000000],[1610664611000,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: 'Zrážky', data: [[1610626210000,0.28000000],[1610626810000,0.56000000],[1610627411000,0.28000000],[1610628010000,0.28000000],[1610628610000,0.28000000],[1610629211000,0.28000000],[1610631010000,0.28000000],], 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; }