var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1779228008000,6.96666667],[1779228200000,6.80000000],[1779228456000,6.56000000],[1779228776000,6.40000000],[1779229096000,6.35000000],[1779229352000,6.18000000],[1779229672000,6.18000000],[1779229992000,6.20000000],[1779230312000,6.20000000],[1779230568000,6.16000000],[1779230888000,5.84000000],[1779231208000,5.60000000],[1779231464000,5.60000000],[1779231784000,5.72000000],[1779232104000,5.92500000],[1779232360000,6.14000000],[1779232680000,6.12000000],[1779233000000,5.95000000],[1779233256000,6.42000000],[1779233576000,6.74000000],[1779233911000,6.80000000],[1779234167000,6.86000000],[1779234487000,6.84000000],[1779234807000,6.80000000],[1779235052000,6.48000000],[1779235369000,5.98000000],[1779235688000,5.84000000],[1779236008000,5.87500000],[1779236264000,5.38000000],[1779236584000,5.14000000],[1779236904000,4.92500000],[1779237160000,5.08000000],[1779237480000,5.30000000],[1779237800000,5.17500000],[1779238056000,5.52000000],[1779238376000,5.22000000],[1779238696000,4.55000000],[1779238952000,4.54000000],[1779239272000,4.60000000],[1779239592000,4.74000000],[1779239913000,5.02500000],[1779240168000,5.10000000],[1779240488000,4.76000000],[1779240808000,4.27500000],[1779241063000,4.04000000],[1779241384000,4.02000000],[1779241704000,4.15000000],[1779241960000,4.04000000],[1779242280000,3.94000000],[1779242600000,3.90000000],[1779242857000,3.82000000],[1779243176000,3.80000000],[1779243496000,3.97500000],[1779243752000,4.00000000],[1779244072000,3.58000000],[1779244397000,3.32500000],[1779244663000,3.36000000],[1779244983000,3.64000000],[1779245303000,3.70000000],[1779245559000,3.48000000],[1779245879000,3.38000000],[1779246199000,3.60000000],[1779246452000,3.42000000],[1779246775000,3.38000000],[1779247096000,3.40000000],[1779247352000,3.30000000],[1779247688000,3.68000000],[1779248008000,4.60000000],[1779248265000,4.90000000],[1779248585000,4.94000000],[1779248905000,4.95000000],[1779249160000,5.12000000],[1779249480000,5.44000000],[1779249800000,5.77500000],[1779250055000,6.44000000],[1779250376000,7.16000000],[1779250697000,7.70000000],[1779250952000,7.20000000],[1779251272000,7.74000000],[1779251592000,8.28000000],[1779251912000,8.40000000],[1779252168000,8.70000000],[1779252488000,9.12000000],[1779252808000,9.50000000],[1779253065000,10.40000000],[1779253384000,11.98000000],[1779253704000,12.30000000],[1779253975000,12.16000000],[1779254295000,11.95000000],[1779254551000,12.00000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1779228008000,6.8],[1779228200000,6.7],[1779228456000,6.4],[1779228776000,6.3],[1779229096000,6.2],[1779229352000,6],[1779229672000,6],[1779229992000,6.1],[1779230312000,6.1],[1779230568000,6],[1779230888000,5.7],[1779231208000,5.5],[1779231464000,5.5],[1779231784000,5.6],[1779232104000,5.8],[1779232360000,6],[1779232680000,6],[1779233000000,5.8],[1779233256000,6.3],[1779233576000,6.6],[1779233911000,6.7],[1779234167000,6.7],[1779234487000,6.7],[1779234807000,6.7],[1779235052000,6.3],[1779235369000,5.8],[1779235688000,5.7],[1779236008000,5.7],[1779236264000,5.2],[1779236584000,5],[1779236904000,4.8],[1779237160000,4.9],[1779237480000,5.2],[1779237800000,5],[1779238056000,5.4],[1779238376000,5.1],[1779238696000,4.4],[1779238952000,4.4],[1779239272000,4.5],[1779239592000,4.6],[1779239913000,4.9],[1779240168000,5],[1779240488000,4.6],[1779240808000,4.1],[1779241063000,3.9],[1779241384000,3.9],[1779241704000,4],[1779241960000,3.9],[1779242280000,3.8],[1779242600000,3.8],[1779242857000,3.7],[1779243176000,3.7],[1779243496000,3.8],[1779243752000,3.9],[1779244072000,3.4],[1779244397000,3.2],[1779244663000,3.2],[1779244983000,3.5],[1779245303000,3.6],[1779245559000,3.3],[1779245879000,3.2],[1779246199000,3.5],[1779246452000,3.3],[1779246775000,3.2],[1779247096000,3.3],[1779247352000,3.2],[1779247688000,3.5],[1779248008000,4.5],[1779248265000,4.8],[1779248585000,4.8],[1779248905000,4.8],[1779249160000,5],[1779249480000,5.3],[1779249800000,5.6],[1779250055000,6.3],[1779250376000,7],[1779250697000,7.6],[1779250952000,7.1],[1779251272000,7.6],[1779251592000,8.1],[1779251912000,8.2],[1779252168000,8.5],[1779252488000,9],[1779252808000,9.3],[1779253065000,10.1],[1779253384000,10.4],[1779253704000,9.4],[1779253975000,8.9],[1779254295000,9],[1779254551000,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: [[1779228008000,99.00000000],[1779228200000,99.00000000],[1779228456000,99.00000000],[1779228776000,99.00000000],[1779229096000,99.00000000],[1779229352000,99.00000000],[1779229672000,99.00000000],[1779229992000,99.00000000],[1779230312000,99.00000000],[1779230568000,99.00000000],[1779230888000,99.00000000],[1779231208000,99.00000000],[1779231464000,99.00000000],[1779231784000,99.00000000],[1779232104000,99.00000000],[1779232360000,99.00000000],[1779232680000,99.00000000],[1779233000000,99.00000000],[1779233256000,99.00000000],[1779233576000,99.00000000],[1779233911000,99.00000000],[1779234167000,99.00000000],[1779234487000,99.00000000],[1779234807000,99.00000000],[1779235052000,99.00000000],[1779235369000,99.00000000],[1779235688000,99.00000000],[1779236008000,99.00000000],[1779236264000,99.00000000],[1779236584000,99.00000000],[1779236904000,99.00000000],[1779237160000,99.00000000],[1779237480000,99.00000000],[1779237800000,99.00000000],[1779238056000,99.00000000],[1779238376000,99.00000000],[1779238696000,99.00000000],[1779238952000,99.00000000],[1779239272000,99.00000000],[1779239592000,99.00000000],[1779239913000,99.00000000],[1779240168000,99.00000000],[1779240488000,99.00000000],[1779240808000,99.00000000],[1779241063000,99.00000000],[1779241384000,99.00000000],[1779241704000,99.00000000],[1779241960000,99.00000000],[1779242280000,99.00000000],[1779242600000,99.00000000],[1779242857000,99.00000000],[1779243176000,99.00000000],[1779243496000,99.00000000],[1779243752000,99.00000000],[1779244072000,99.00000000],[1779244397000,99.00000000],[1779244663000,99.00000000],[1779244983000,99.00000000],[1779245303000,99.00000000],[1779245559000,99.00000000],[1779245879000,99.00000000],[1779246199000,99.00000000],[1779246452000,99.00000000],[1779246775000,99.00000000],[1779247096000,99.00000000],[1779247352000,99.00000000],[1779247688000,99.00000000],[1779248008000,99.00000000],[1779248265000,99.00000000],[1779248585000,99.00000000],[1779248905000,99.00000000],[1779249160000,99.00000000],[1779249480000,99.00000000],[1779249800000,99.00000000],[1779250055000,99.00000000],[1779250376000,99.00000000],[1779250697000,99.00000000],[1779250952000,99.00000000],[1779251272000,99.00000000],[1779251592000,99.00000000],[1779251912000,99.00000000],[1779252168000,99.00000000],[1779252488000,99.00000000],[1779252808000,99.00000000],[1779253065000,98.00000000],[1779253384000,90.20000000],[1779253704000,82.75000000],[1779253975000,80.80000000],[1779254295000,82.25000000],[1779254551000,83.66666667],], 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: [[1779228008000,1020],[1779228200000,1020],[1779228456000,1020],[1779228776000,1020],[1779229096000,1020.1],[1779229352000,1020],[1779229672000,1020],[1779229992000,1020.1],[1779230312000,1020.1],[1779230568000,1020.1],[1779230888000,1020.1],[1779231208000,1020.1],[1779231464000,1020.1],[1779231784000,1020.2],[1779232104000,1020.2],[1779232360000,1020.1],[1779232680000,1020.2],[1779233000000,1020.2],[1779233256000,1020.2],[1779233576000,1020.2],[1779233911000,1020.2],[1779234167000,1020.1],[1779234487000,1020.2],[1779234807000,1020.1],[1779235052000,1020.1],[1779235369000,1020.2],[1779235688000,1020.3],[1779236008000,1020.1],[1779236264000,1020.3],[1779236584000,1020.2],[1779236904000,1020.2],[1779237160000,1020.2],[1779237480000,1020.2],[1779237800000,1020.3],[1779238056000,1020.3],[1779238376000,1020.3],[1779238696000,1020.3],[1779238952000,1020.4],[1779239272000,1020.4],[1779239592000,1020.4],[1779239913000,1020.3],[1779240168000,1020.4],[1779240488000,1020.3],[1779240808000,1020.4],[1779241063000,1020.4],[1779241384000,1020.4],[1779241704000,1020.4],[1779241960000,1020.4],[1779242280000,1020.4],[1779242600000,1020.5],[1779242857000,1020.5],[1779243176000,1020.5],[1779243496000,1020.6],[1779243752000,1020.5],[1779244072000,1020.6],[1779244397000,1020.7],[1779244663000,1020.7],[1779244983000,1020.8],[1779245303000,1020.7],[1779245559000,1020.8],[1779245879000,1020.7],[1779246199000,1020.7],[1779246452000,1020.8],[1779246775000,1020.8],[1779247096000,1020.9],[1779247352000,1020.9],[1779247688000,1020.9],[1779248008000,1020.8],[1779248265000,1020.8],[1779248585000,1020.8],[1779248905000,1020.9],[1779249160000,1020.9],[1779249480000,1021],[1779249800000,1021],[1779250055000,1021],[1779250376000,1021],[1779250697000,1021],[1779250952000,1021.2],[1779251272000,1021.2],[1779251592000,1021.3],[1779251912000,1021.3],[1779252168000,1021.4],[1779252488000,1021.4],[1779252808000,1021.4],[1779253065000,1021.5],[1779253384000,1021.4],[1779253704000,1021.5],[1779253975000,1021.5],[1779254295000,1021.5],[1779254551000,1021.5],], 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: [[1779228008000,0],[1779228200000,0],[1779228456000,0],[1779228776000,0],[1779229096000,0],[1779229352000,0],[1779229672000,0],[1779229992000,0],[1779230312000,0],[1779230568000,0],[1779230888000,0],[1779231208000,0],[1779231464000,0],[1779231784000,0],[1779232104000,0],[1779232360000,0],[1779232680000,0],[1779233000000,0],[1779233256000,0.504],[1779233576000,0],[1779233911000,0.54],[1779234167000,0],[1779234487000,0],[1779234807000,0],[1779235052000,0],[1779235369000,0],[1779235688000,0],[1779236008000,0],[1779236264000,0],[1779236584000,0],[1779236904000,0],[1779237160000,0],[1779237480000,0],[1779237800000,0],[1779238056000,0],[1779238376000,0],[1779238696000,0],[1779238952000,0],[1779239272000,0],[1779239592000,0],[1779239913000,0],[1779240168000,0],[1779240488000,0],[1779240808000,0],[1779241063000,0],[1779241384000,0],[1779241704000,0],[1779241960000,0],[1779242280000,0],[1779242600000,0],[1779242857000,0],[1779243176000,0],[1779243496000,0],[1779243752000,0],[1779244072000,0],[1779244397000,0],[1779244663000,0],[1779244983000,0],[1779245303000,0],[1779245559000,0],[1779245879000,0],[1779246199000,0],[1779246452000,0],[1779246775000,0],[1779247096000,0],[1779247352000,0],[1779247688000,0],[1779248008000,0],[1779248265000,0],[1779248585000,0],[1779248905000,0],[1779249160000,0],[1779249480000,0],[1779249800000,0],[1779250055000,0],[1779250376000,0],[1779250697000,0],[1779250952000,0],[1779251272000,0],[1779251592000,0],[1779251912000,0],[1779252168000,0],[1779252488000,0],[1779252808000,0],[1779253065000,0],[1779253384000,0],[1779253704000,0],[1779253975000,0],[1779254295000,0],[1779254551000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1779228008000,0],[1779228200000,0],[1779228456000,0],[1779228776000,0],[1779229096000,0],[1779229352000,0],[1779229672000,0],[1779229992000,0],[1779230312000,0],[1779230568000,0],[1779230888000,0],[1779231208000,0],[1779231464000,0],[1779231784000,0],[1779232104000,0],[1779232360000,0],[1779232680000,0],[1779233000000,0],[1779233256000,1.008],[1779233576000,0],[1779233911000,0.63],[1779234167000,0],[1779234487000,0],[1779234807000,0],[1779235052000,0],[1779235369000,0],[1779235688000,0],[1779236008000,0],[1779236264000,0],[1779236584000,0],[1779236904000,0],[1779237160000,0],[1779237480000,0],[1779237800000,0],[1779238056000,0],[1779238376000,0],[1779238696000,0],[1779238952000,0],[1779239272000,0],[1779239592000,0],[1779239913000,0],[1779240168000,0],[1779240488000,0],[1779240808000,0],[1779241063000,0],[1779241384000,0],[1779241704000,0],[1779241960000,0],[1779242280000,0],[1779242600000,0],[1779242857000,0],[1779243176000,0],[1779243496000,0],[1779243752000,0],[1779244072000,0],[1779244397000,0],[1779244663000,0],[1779244983000,0],[1779245303000,0],[1779245559000,0],[1779245879000,0],[1779246199000,0],[1779246452000,0],[1779246775000,0],[1779247096000,0],[1779247352000,0],[1779247688000,0],[1779248008000,0],[1779248265000,0],[1779248585000,0],[1779248905000,0],[1779249160000,0],[1779249480000,0],[1779249800000,0],[1779250055000,0],[1779250376000,0],[1779250697000,0],[1779250952000,0],[1779251272000,0],[1779251592000,0],[1779251912000,0],[1779252168000,0],[1779252488000,0],[1779252808000,0],[1779253065000,0],[1779253384000,0],[1779253704000,0],[1779253975000,0],[1779254295000,0],[1779254551000,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: [[1779228008000,17.00000000],[1779228200000,17.00000000],[1779228456000,17.00000000],[1779228776000,17.00000000],[1779229096000,17.00000000],[1779229352000,82.40000000],[1779229672000,73.00000000],[1779229992000,71.60000000],[1779230312000,0.00000000],[1779230568000,0.00000000],[1779230888000,0.00000000],[1779231208000,0.00000000],[1779231464000,11.40000000],[1779231784000,9.00000000],[1779232104000,94.00000000],[1779232360000,73.40000000],[1779232680000,5.40000000],[1779233000000,177.50000000],[1779233256000,139.20000000],[1779233576000,215.00000000],[1779233911000,92.00000000],[1779234167000,205.00000000],[1779234487000,77.80000000],[1779234807000,181.25000000],[1779235052000,14.40000000],[1779235369000,74.80000000],[1779235688000,9.00000000],[1779236008000,12.75000000],[1779236264000,12.60000000],[1779236584000,143.80000000],[1779236904000,92.00000000],[1779237160000,8.00000000],[1779237480000,8.60000000],[1779237800000,6.50000000],[1779238056000,81.40000000],[1779238376000,5.40000000],[1779238696000,10.50000000],[1779238952000,5.60000000],[1779239272000,5.80000000],[1779239592000,79.80000000],[1779239913000,93.00000000],[1779240168000,132.40000000],[1779240488000,6.80000000],[1779240808000,6.25000000],[1779241063000,80.60000000],[1779241384000,76.00000000],[1779241704000,181.50000000],[1779241960000,5.20000000],[1779242280000,14.00000000],[1779242600000,6.50000000],[1779242857000,1.20000000],[1779243176000,6.60000000],[1779243496000,13.25000000],[1779243752000,10.80000000],[1779244072000,4.00000000],[1779244397000,5.50000000],[1779244663000,19.60000000],[1779244983000,18.00000000],[1779245303000,17.50000000],[1779245559000,13.00000000],[1779245879000,13.00000000],[1779246199000,13.00000000],[1779246452000,13.00000000],[1779246775000,8.20000000],[1779247096000,7.75000000],[1779247352000,7.00000000],[1779247688000,7.00000000],[1779248008000,7.50000000],[1779248265000,8.00000000],[1779248585000,7.80000000],[1779248905000,7.00000000],[1779249160000,7.80000000],[1779249480000,8.00000000],[1779249800000,8.75000000],[1779250055000,8.00000000],[1779250376000,9.00000000],[1779250697000,18.25000000],[1779250952000,21.20000000],[1779251272000,17.00000000],[1779251592000,14.40000000],[1779251912000,10.50000000],[1779252168000,8.80000000],[1779252488000,12.60000000],[1779252808000,7.00000000],[1779253065000,7.00000000],[1779253384000,7.40000000],[1779253704000,8.50000000],[1779253975000,8.60000000],[1779254295000,6.50000000],[1779254551000,6.66666667],], 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: [[1779228008000,0.00000000],[1779228200000,0.00000000],[1779228456000,0.00000000],[1779228776000,0.00000000],[1779229096000,0.00000000],[1779229352000,0.00000000],[1779229672000,0.00000000],[1779229992000,0.00000000],[1779230312000,0.00000000],[1779230568000,0.00000000],[1779230888000,0.00000000],[1779231208000,0.00000000],[1779231464000,0.00000000],[1779231784000,0.00000000],[1779232104000,0.00000000],[1779232360000,0.00000000],[1779232680000,0.00000000],[1779233000000,0.00000000],[1779233256000,0.00000000],[1779233576000,0.00000000],[1779233911000,0.00000000],[1779234167000,0.00000000],[1779234487000,0.00000000],[1779234807000,0.00000000],[1779235052000,0.00000000],[1779235369000,0.00000000],[1779235688000,0.00000000],[1779236008000,0.00000000],[1779236264000,0.00000000],[1779236584000,0.00000000],[1779236904000,0.00000000],[1779237160000,0.00000000],[1779237480000,0.00000000],[1779237800000,0.00000000],[1779238056000,0.00000000],[1779238376000,0.00000000],[1779238696000,0.00000000],[1779238952000,0.00000000],[1779239272000,0.00000000],[1779239592000,0.00000000],[1779239913000,0.00000000],[1779240168000,0.00000000],[1779240488000,0.00000000],[1779240808000,0.00000000],[1779241063000,0.00000000],[1779241384000,0.00000000],[1779241704000,0.00000000],[1779241960000,0.00000000],[1779242280000,0.00000000],[1779242600000,0.00000000],[1779242857000,0.00000000],[1779243176000,0.00000000],[1779243496000,0.00000000],[1779243752000,0.00000000],[1779244072000,0.00000000],[1779244397000,0.00000000],[1779244663000,0.00000000],[1779244983000,0.80000000],[1779245303000,1.00000000],[1779245559000,2.00000000],[1779245879000,3.20000000],[1779246199000,4.50000000],[1779246452000,6.20000000],[1779246775000,8.80000000],[1779247096000,10.50000000],[1779247352000,13.80000000],[1779247688000,17.00000000],[1779248008000,19.00000000],[1779248265000,20.60000000],[1779248585000,22.40000000],[1779248905000,24.25000000],[1779249160000,27.00000000],[1779249480000,28.60000000],[1779249800000,33.00000000],[1779250055000,36.00000000],[1779250376000,38.80000000],[1779250697000,41.25000000],[1779250952000,44.00000000],[1779251272000,47.40000000],[1779251592000,51.00000000],[1779251912000,54.50000000],[1779252168000,58.80000000],[1779252488000,44.40000000],[1779252808000,44.75000000],[1779253065000,45.60000000],[1779253384000,48.20000000],[1779253704000,51.00000000],[1779253975000,57.80000000],[1779254295000,51.25000000],[1779254551000,48.33333333],], 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: [[1779228008000,0.00000000],[1779228200000,0.00000000],[1779228456000,0.00000000],[1779228776000,0.00000000],[1779229096000,0.00000000],[1779229352000,0.00000000],[1779229672000,0.00000000],[1779229992000,0.00000000],[1779230312000,0.00000000],[1779230568000,0.00000000],[1779230888000,0.00000000],[1779231208000,0.00000000],[1779231464000,0.00000000],[1779231784000,0.00000000],[1779232104000,0.00000000],[1779232360000,0.00000000],[1779232680000,0.00000000],[1779233000000,0.00000000],[1779233256000,0.00000000],[1779233576000,0.00000000],[1779233911000,0.00000000],[1779234167000,0.00000000],[1779234487000,0.00000000],[1779234807000,0.00000000],[1779235052000,0.00000000],[1779235369000,0.00000000],[1779235688000,0.00000000],[1779236008000,0.00000000],[1779236264000,0.00000000],[1779236584000,0.00000000],[1779236904000,0.00000000],[1779237160000,0.00000000],[1779237480000,0.00000000],[1779237800000,0.00000000],[1779238056000,0.00000000],[1779238376000,0.00000000],[1779238696000,0.00000000],[1779238952000,0.00000000],[1779239272000,0.00000000],[1779239592000,0.00000000],[1779239913000,0.00000000],[1779240168000,0.00000000],[1779240488000,0.00000000],[1779240808000,0.00000000],[1779241063000,0.00000000],[1779241384000,0.00000000],[1779241704000,0.00000000],[1779241960000,0.00000000],[1779242280000,0.00000000],[1779242600000,0.00000000],[1779242857000,0.00000000],[1779243176000,0.00000000],[1779243496000,0.00000000],[1779243752000,0.00000000],[1779244072000,0.00000000],[1779244397000,0.00000000],[1779244663000,0.00000000],[1779244983000,0.00000000],[1779245303000,0.00000000],[1779245559000,0.00000000],[1779245879000,0.00000000],[1779246199000,0.00000000],[1779246452000,0.00000000],[1779246775000,0.00000000],[1779247096000,0.00000000],[1779247352000,0.00000000],[1779247688000,0.00000000],[1779248008000,0.00000000],[1779248265000,0.00000000],[1779248585000,0.00000000],[1779248905000,0.00000000],[1779249160000,0.00000000],[1779249480000,0.00000000],[1779249800000,0.00000000],[1779250055000,0.00000000],[1779250376000,0.00000000],[1779250697000,0.00000000],[1779250952000,0.00000000],[1779251272000,0.00000000],[1779251592000,0.00000000],[1779251912000,0.00000000],[1779252168000,0.00000000],[1779252488000,0.00000000],[1779252808000,0.00000000],[1779253065000,0.00000000],[1779253384000,0.00000000],[1779253704000,0.00000000],[1779253975000,0.00000000],[1779254295000,0.00000000],[1779254551000,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: [[1779228008000,0.00000000],[1779228200000,0.00000000],[1779228456000,0.00000000],[1779228776000,0.00000000],[1779229096000,0.00000000],[1779229352000,0.00000000],[1779229672000,0.00000000],[1779229992000,0.00000000],[1779230312000,0.00000000],[1779230568000,0.00000000],[1779230888000,0.00000000],[1779231208000,0.00000000],[1779231464000,0.00000000],[1779231784000,0.00000000],[1779232104000,0.00000000],[1779232360000,0.00000000],[1779232680000,0.00000000],[1779233000000,0.00000000],[1779233256000,0.00000000],[1779233576000,0.00000000],[1779233911000,0.00000000],[1779234167000,0.00000000],[1779234487000,0.00000000],[1779234807000,0.00000000],[1779235052000,0.00000000],[1779235369000,0.00000000],[1779235688000,0.00000000],[1779236008000,0.00000000],[1779236264000,0.00000000],[1779236584000,0.00000000],[1779236904000,0.00000000],[1779237160000,0.00000000],[1779237480000,0.00000000],[1779237800000,0.00000000],[1779238056000,0.00000000],[1779238376000,0.00000000],[1779238696000,0.00000000],[1779238952000,0.00000000],[1779239272000,0.00000000],[1779239592000,0.00000000],[1779239913000,0.00000000],[1779240168000,0.00000000],[1779240488000,0.00000000],[1779240808000,0.00000000],[1779241063000,0.00000000],[1779241384000,0.00000000],[1779241704000,0.00000000],[1779241960000,0.00000000],[1779242280000,0.00000000],[1779242600000,0.00000000],[1779242857000,0.00000000],[1779243176000,0.00000000],[1779243496000,0.00000000],[1779243752000,0.00000000],[1779244072000,0.00000000],[1779244397000,0.00000000],[1779244663000,0.00000000],[1779244983000,0.00000000],[1779245303000,0.00000000],[1779245559000,0.00000000],[1779245879000,0.00000000],[1779246199000,0.00000000],[1779246452000,0.00000000],[1779246775000,0.00000000],[1779247096000,0.00000000],[1779247352000,0.00000000],[1779247688000,0.00000000],[1779248008000,0.00000000],[1779248265000,0.00000000],[1779248585000,0.00000000],[1779248905000,0.00000000],[1779249160000,0.00000000],[1779249480000,0.00000000],[1779249800000,0.00000000],[1779250055000,0.00000000],[1779250376000,0.00000000],[1779250697000,0.00000000],[1779250952000,0.00000000],[1779251272000,0.00000000],[1779251592000,0.00000000],[1779251912000,0.00000000],[1779252168000,0.00000000],[1779252488000,0.00000000],[1779252808000,0.00000000],[1779253065000,0.00000000],[1779253384000,0.00000000],[1779253704000,0.00000000],[1779253975000,0.00000000],[1779254295000,0.00000000],[1779254551000,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; }