var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1768518036000,-0.60000000],[1768518165000,-0.60000000],[1768518486000,-0.60000000],[1768518803000,-0.60000000],[1768519054000,-0.60000000],[1768519363000,-0.60000000],[1768519686000,-0.60000000],[1768520003000,-0.60000000],[1768520253000,-0.60000000],[1768520562000,-0.60000000],[1768520885000,-0.60000000],[1768521203000,-0.60000000],[1768521453000,-0.60000000],[1768521766000,-0.60000000],[1768522086000,-0.60000000],[1768522403000,-0.60000000],[1768522659000,-0.60000000],[1768522982000,-0.58000000],[1768523302000,-0.50000000],[1768523553000,-0.50000000],[1768523858000,-0.50000000],[1768524198000,-0.50000000],[1768524454000,-0.50000000],[1768524768000,-0.50000000],[1768525094000,-0.50000000],[1768525354000,-0.50000000],[1768525667000,-0.50000000],[1768525990000,-0.50000000],[1768526310000,-0.60000000],[1768526566000,-0.60000000],[1768526901000,-0.60000000],[1768527154000,-0.60000000],[1768527478000,-0.60000000],[1768527798000,-0.60000000],[1768528113000,-0.60000000],[1768528357000,-0.60000000],[1768528678000,-0.60000000],[1768528966000,-0.60000000],[1768529319000,-0.60000000],[1768529574000,-0.60000000],[1768529894000,-0.60000000],[1768530150000,-0.56000000],[1768530464000,-0.50000000],[1768530769000,-0.50000000],[1768531111000,-0.50000000],[1768531366000,-0.50000000],[1768531653000,-0.50000000],[1768532006000,-0.50000000],[1768532262000,-0.50000000],[1768532582000,-0.50000000],[1768532852000,-0.50000000],[1768533173000,-0.50000000],[1768533494000,-0.50000000],[1768533753000,-0.50000000],[1768534070000,-0.50000000],[1768534403000,-0.50000000],[1768534662000,-0.50000000],[1768534998000,-0.50000000],[1768535253000,-0.50000000],[1768535557000,-0.50000000],[1768535894000,-0.50000000],[1768536153000,-0.50000000],[1768536470000,-0.50000000],[1768536790000,-0.46000000],[1768537110000,-0.40000000],[1768537360000,-0.40000000],[1768537667000,-0.40000000],[1768538006000,-0.32500000],[1768538258000,-0.32000000],[1768538563000,-0.34000000],[1768538886000,-0.30000000],[1768539153000,-0.40000000],[1768539478000,-0.32500000],[1768539750000,-0.30000000],[1768540086000,-0.30000000],[1768540406000,-0.30000000],[1768540662000,-0.30000000],[1768540982000,-0.30000000],[1768541302000,-0.30000000],[1768541553000,-0.22000000],[1768541858000,-0.20000000],[1768542182000,-0.20000000],[1768542502000,-0.20000000],[1768542758000,-0.20000000],[1768543078000,-0.20000000],[1768543407000,-0.20000000],[1768543653000,-0.20000000],[1768543974000,-0.20000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1768518036000,-1],[1768518165000,-1],[1768518486000,-1],[1768518803000,-1],[1768519054000,-1],[1768519363000,-1],[1768519686000,-1],[1768520003000,-1],[1768520253000,-1],[1768520562000,-1],[1768520885000,-1],[1768521203000,-1],[1768521453000,-1],[1768521766000,-1],[1768522086000,-1],[1768522403000,-1],[1768522659000,-1],[1768522982000,-1],[1768523302000,-0.9],[1768523553000,-0.9],[1768523858000,-0.9],[1768524198000,-0.9],[1768524454000,-0.9],[1768524768000,-0.9],[1768525094000,-0.9],[1768525354000,-0.9],[1768525667000,-0.9],[1768525990000,-0.9],[1768526310000,-1],[1768526566000,-1],[1768526901000,-1],[1768527154000,-1],[1768527478000,-1],[1768527798000,-1],[1768528113000,-1],[1768528357000,-1],[1768528678000,-1],[1768528966000,-1],[1768529319000,-1],[1768529574000,-1],[1768529894000,-1],[1768530150000,-1],[1768530464000,-0.9],[1768530769000,-0.9],[1768531111000,-0.9],[1768531366000,-0.9],[1768531653000,-0.9],[1768532006000,-0.9],[1768532262000,-0.9],[1768532582000,-0.9],[1768532852000,-0.9],[1768533173000,-0.9],[1768533494000,-0.9],[1768533753000,-0.9],[1768534070000,-0.9],[1768534403000,-0.9],[1768534662000,-0.9],[1768534998000,-0.9],[1768535253000,-0.9],[1768535557000,-0.9],[1768535894000,-0.9],[1768536153000,-0.9],[1768536470000,-0.9],[1768536790000,-0.9],[1768537110000,-0.8],[1768537360000,-0.8],[1768537667000,-0.8],[1768538006000,-0.7],[1768538258000,-0.7],[1768538563000,-0.8],[1768538886000,-0.7],[1768539153000,-0.8],[1768539478000,-0.7],[1768539750000,-0.7],[1768540086000,-0.7],[1768540406000,-0.7],[1768540662000,-0.7],[1768540982000,-0.7],[1768541302000,-0.7],[1768541553000,-0.6],[1768541858000,-0.6],[1768542182000,-0.6],[1768542502000,-0.6],[1768542758000,-0.6],[1768543078000,-0.6],[1768543407000,-0.6],[1768543653000,-0.6],[1768543974000,-0.6],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1768518036000,97.00000000],[1768518165000,97.00000000],[1768518486000,97.00000000],[1768518803000,97.00000000],[1768519054000,97.00000000],[1768519363000,97.00000000],[1768519686000,97.00000000],[1768520003000,97.00000000],[1768520253000,97.00000000],[1768520562000,97.00000000],[1768520885000,97.00000000],[1768521203000,97.00000000],[1768521453000,97.00000000],[1768521766000,97.00000000],[1768522086000,97.00000000],[1768522403000,97.00000000],[1768522659000,97.00000000],[1768522982000,97.00000000],[1768523302000,97.00000000],[1768523553000,97.00000000],[1768523858000,97.00000000],[1768524198000,97.00000000],[1768524454000,97.00000000],[1768524768000,97.00000000],[1768525094000,97.00000000],[1768525354000,97.00000000],[1768525667000,97.00000000],[1768525990000,97.00000000],[1768526310000,97.00000000],[1768526566000,97.00000000],[1768526901000,97.00000000],[1768527154000,97.00000000],[1768527478000,97.00000000],[1768527798000,97.00000000],[1768528113000,97.00000000],[1768528357000,97.00000000],[1768528678000,97.00000000],[1768528966000,97.00000000],[1768529319000,97.00000000],[1768529574000,97.00000000],[1768529894000,97.00000000],[1768530150000,97.00000000],[1768530464000,97.00000000],[1768530769000,97.00000000],[1768531111000,97.00000000],[1768531366000,97.00000000],[1768531653000,97.00000000],[1768532006000,97.00000000],[1768532262000,97.00000000],[1768532582000,97.00000000],[1768532852000,97.00000000],[1768533173000,97.00000000],[1768533494000,97.00000000],[1768533753000,97.00000000],[1768534070000,97.00000000],[1768534403000,97.00000000],[1768534662000,97.00000000],[1768534998000,97.00000000],[1768535253000,97.00000000],[1768535557000,97.00000000],[1768535894000,97.00000000],[1768536153000,97.00000000],[1768536470000,97.00000000],[1768536790000,97.00000000],[1768537110000,97.00000000],[1768537360000,97.00000000],[1768537667000,97.00000000],[1768538006000,97.00000000],[1768538258000,97.00000000],[1768538563000,97.00000000],[1768538886000,97.00000000],[1768539153000,97.00000000],[1768539478000,97.00000000],[1768539750000,97.00000000],[1768540086000,97.00000000],[1768540406000,97.00000000],[1768540662000,97.00000000],[1768540982000,97.00000000],[1768541302000,97.00000000],[1768541553000,97.00000000],[1768541858000,97.00000000],[1768542182000,97.00000000],[1768542502000,97.00000000],[1768542758000,97.00000000],[1768543078000,97.00000000],[1768543407000,97.00000000],[1768543653000,97.00000000],[1768543974000,97.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: [[1768518036000,1022.4],[1768518165000,1022.4],[1768518486000,1022.3],[1768518803000,1022.3],[1768519054000,1022.3],[1768519363000,1022.3],[1768519686000,1022.2],[1768520003000,1022.3],[1768520253000,1022.4],[1768520562000,1022.6],[1768520885000,1022.6],[1768521203000,1022.5],[1768521453000,1022.4],[1768521766000,1022.6],[1768522086000,1022.7],[1768522403000,1022.7],[1768522659000,1022.8],[1768522982000,1022.7],[1768523302000,1022.9],[1768523553000,1022.7],[1768523858000,1022.8],[1768524198000,1023],[1768524454000,1022.8],[1768524768000,1022.8],[1768525094000,1022.8],[1768525354000,1022.8],[1768525667000,1022.7],[1768525990000,1022.8],[1768526310000,1022.7],[1768526566000,1022.6],[1768526901000,1022.7],[1768527154000,1022.6],[1768527478000,1022.6],[1768527798000,1022.6],[1768528113000,1022.7],[1768528357000,1022.7],[1768528678000,1022.7],[1768528966000,1022.8],[1768529319000,1022.8],[1768529574000,1022.8],[1768529894000,1022.8],[1768530150000,1022.9],[1768530464000,1023],[1768530769000,1022.9],[1768531111000,1022.9],[1768531366000,1022.8],[1768531653000,1022.8],[1768532006000,1022.8],[1768532262000,1022.8],[1768532582000,1022.7],[1768532852000,1022.5],[1768533173000,1022.4],[1768533494000,1022.5],[1768533753000,1022.5],[1768534070000,1022.5],[1768534403000,1022.7],[1768534662000,1022.7],[1768534998000,1022.5],[1768535253000,1022.6],[1768535557000,1022.7],[1768535894000,1022.5],[1768536153000,1022.6],[1768536470000,1022.6],[1768536790000,1022.6],[1768537110000,1022.5],[1768537360000,1022.5],[1768537667000,1022.5],[1768538006000,1022.6],[1768538258000,1022.6],[1768538563000,1022.6],[1768538886000,1022.6],[1768539153000,1022.6],[1768539478000,1022.6],[1768539750000,1022.5],[1768540086000,1022.5],[1768540406000,1022.4],[1768540662000,1022.7],[1768540982000,1022.6],[1768541302000,1022.6],[1768541553000,1022.6],[1768541858000,1022.7],[1768542182000,1022.7],[1768542502000,1022.7],[1768542758000,1022.8],[1768543078000,1022.8],[1768543407000,1022.9],[1768543653000,1023],[1768543974000,1023],], 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: [[1768518036000,0],[1768518165000,0.072],[1768518486000,0.504],[1768518803000,0.99],[1768519054000,1.152],[1768519363000,1.512],[1768519686000,0.36],[1768520003000,0.27],[1768520253000,0.648],[1768520562000,0.432],[1768520885000,0.576],[1768521203000,0.36],[1768521453000,0.936],[1768521766000,0],[1768522086000,0.144],[1768522403000,0.09],[1768522659000,0],[1768522982000,0],[1768523302000,0],[1768523553000,0],[1768523858000,0],[1768524198000,0.45],[1768524454000,0.216],[1768524768000,0.144],[1768525094000,0.09],[1768525354000,0.792],[1768525667000,0.936],[1768525990000,0.792],[1768526310000,0.63],[1768526566000,0],[1768526901000,1.8],[1768527154000,0.36],[1768527478000,0.504],[1768527798000,0.81],[1768528113000,0],[1768528357000,0.288],[1768528678000,0],[1768528966000,0],[1768529319000,0],[1768529574000,0],[1768529894000,0],[1768530150000,0],[1768530464000,0],[1768530769000,0],[1768531111000,0],[1768531366000,0],[1768531653000,0],[1768532006000,0],[1768532262000,0],[1768532582000,0],[1768532852000,0],[1768533173000,0],[1768533494000,0],[1768533753000,0],[1768534070000,0],[1768534403000,0],[1768534662000,0],[1768534998000,0],[1768535253000,0],[1768535557000,0.432],[1768535894000,0],[1768536153000,0],[1768536470000,0],[1768536790000,0.648],[1768537110000,1.53],[1768537360000,0.792],[1768537667000,0.648],[1768538006000,0.36],[1768538258000,0],[1768538563000,0],[1768538886000,0],[1768539153000,0],[1768539478000,0],[1768539750000,0],[1768540086000,0],[1768540406000,0],[1768540662000,0],[1768540982000,0],[1768541302000,0.36],[1768541553000,0.144],[1768541858000,0.288],[1768542182000,0.432],[1768542502000,0],[1768542758000,0.072],[1768543078000,0],[1768543407000,0],[1768543653000,0],[1768543974000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1768518036000,0],[1768518165000,0.504],[1768518486000,1.512],[1768518803000,1.26],[1768519054000,2.52],[1768519363000,2.52],[1768519686000,1.512],[1768520003000,1.89],[1768520253000,2.52],[1768520562000,1.512],[1768520885000,1.512],[1768521203000,0.63],[1768521453000,2.016],[1768521766000,0],[1768522086000,1.008],[1768522403000,0.63],[1768522659000,0],[1768522982000,0],[1768523302000,0],[1768523553000,0],[1768523858000,0],[1768524198000,1.26],[1768524454000,1.512],[1768524768000,1.008],[1768525094000,0.63],[1768525354000,1.512],[1768525667000,2.52],[1768525990000,2.016],[1768526310000,1.89],[1768526566000,0],[1768526901000,3.78],[1768527154000,1.512],[1768527478000,1.008],[1768527798000,1.89],[1768528113000,0],[1768528357000,1.008],[1768528678000,0],[1768528966000,0],[1768529319000,0],[1768529574000,0],[1768529894000,0],[1768530150000,0],[1768530464000,0],[1768530769000,0],[1768531111000,0],[1768531366000,0],[1768531653000,0],[1768532006000,0],[1768532262000,0],[1768532582000,0],[1768532852000,0],[1768533173000,0],[1768533494000,0],[1768533753000,0],[1768534070000,0],[1768534403000,0],[1768534662000,0],[1768534998000,0],[1768535253000,0],[1768535557000,0.504],[1768535894000,0],[1768536153000,0],[1768536470000,0],[1768536790000,1.512],[1768537110000,2.52],[1768537360000,1.512],[1768537667000,1.512],[1768538006000,1.26],[1768538258000,0],[1768538563000,0],[1768538886000,0],[1768539153000,0],[1768539478000,0],[1768539750000,0],[1768540086000,0],[1768540406000,0],[1768540662000,0],[1768540982000,0],[1768541302000,0.63],[1768541553000,1.008],[1768541858000,0.504],[1768542182000,0.504],[1768542502000,0],[1768542758000,0.504],[1768543078000,0],[1768543407000,0],[1768543653000,0],[1768543974000,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: [[1768518036000,78.00000000],[1768518165000,85.00000000],[1768518486000,81.20000000],[1768518803000,69.00000000],[1768519054000,57.20000000],[1768519363000,75.20000000],[1768519686000,72.40000000],[1768520003000,68.00000000],[1768520253000,62.20000000],[1768520562000,46.40000000],[1768520885000,71.40000000],[1768521203000,65.75000000],[1768521453000,75.40000000],[1768521766000,82.60000000],[1768522086000,73.60000000],[1768522403000,76.75000000],[1768522659000,78.80000000],[1768522982000,79.00000000],[1768523302000,77.75000000],[1768523553000,78.00000000],[1768523858000,77.80000000],[1768524198000,77.25000000],[1768524454000,58.40000000],[1768524768000,81.60000000],[1768525094000,79.75000000],[1768525354000,67.20000000],[1768525667000,71.00000000],[1768525990000,72.00000000],[1768526310000,83.50000000],[1768526566000,80.80000000],[1768526901000,76.25000000],[1768527154000,73.80000000],[1768527478000,77.00000000],[1768527798000,63.25000000],[1768528113000,59.75000000],[1768528357000,79.60000000],[1768528678000,81.00000000],[1768528966000,78.75000000],[1768529319000,79.00000000],[1768529574000,78.20000000],[1768529894000,78.00000000],[1768530150000,76.80000000],[1768530464000,78.80000000],[1768530769000,86.00000000],[1768531111000,86.00000000],[1768531366000,85.50000000],[1768531653000,84.40000000],[1768532006000,85.00000000],[1768532262000,85.00000000],[1768532582000,85.00000000],[1768532852000,85.00000000],[1768533173000,84.20000000],[1768533494000,82.00000000],[1768533753000,82.00000000],[1768534070000,82.20000000],[1768534403000,82.00000000],[1768534662000,81.00000000],[1768534998000,78.50000000],[1768535253000,74.80000000],[1768535557000,80.20000000],[1768535894000,79.25000000],[1768536153000,79.80000000],[1768536470000,80.40000000],[1768536790000,60.80000000],[1768537110000,45.00000000],[1768537360000,74.20000000],[1768537667000,66.20000000],[1768538006000,76.75000000],[1768538258000,84.40000000],[1768538563000,82.80000000],[1768538886000,77.75000000],[1768539153000,77.80000000],[1768539478000,75.75000000],[1768539750000,77.80000000],[1768540086000,82.80000000],[1768540406000,83.00000000],[1768540662000,82.60000000],[1768540982000,78.40000000],[1768541302000,65.50000000],[1768541553000,79.80000000],[1768541858000,74.00000000],[1768542182000,77.40000000],[1768542502000,85.00000000],[1768542758000,84.20000000],[1768543078000,78.20000000],[1768543407000,80.75000000],[1768543653000,76.00000000],[1768543974000,83.20000000],], 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: [[1768518036000,0.00000000],[1768518165000,0.00000000],[1768518486000,0.00000000],[1768518803000,0.00000000],[1768519054000,0.00000000],[1768519363000,0.00000000],[1768519686000,0.00000000],[1768520003000,0.00000000],[1768520253000,0.00000000],[1768520562000,0.00000000],[1768520885000,0.00000000],[1768521203000,0.00000000],[1768521453000,0.00000000],[1768521766000,0.00000000],[1768522086000,0.00000000],[1768522403000,0.00000000],[1768522659000,0.00000000],[1768522982000,0.00000000],[1768523302000,0.00000000],[1768523553000,0.00000000],[1768523858000,0.00000000],[1768524198000,0.00000000],[1768524454000,0.00000000],[1768524768000,0.00000000],[1768525094000,0.00000000],[1768525354000,0.00000000],[1768525667000,0.00000000],[1768525990000,0.00000000],[1768526310000,0.00000000],[1768526566000,0.00000000],[1768526901000,0.00000000],[1768527154000,0.00000000],[1768527478000,0.00000000],[1768527798000,0.00000000],[1768528113000,0.00000000],[1768528357000,0.00000000],[1768528678000,0.00000000],[1768528966000,0.00000000],[1768529319000,0.00000000],[1768529574000,0.00000000],[1768529894000,0.00000000],[1768530150000,0.00000000],[1768530464000,0.00000000],[1768530769000,0.00000000],[1768531111000,0.00000000],[1768531366000,0.00000000],[1768531653000,0.00000000],[1768532006000,0.00000000],[1768532262000,0.00000000],[1768532582000,0.00000000],[1768532852000,0.00000000],[1768533173000,0.00000000],[1768533494000,0.00000000],[1768533753000,0.00000000],[1768534070000,0.00000000],[1768534403000,0.00000000],[1768534662000,0.00000000],[1768534998000,0.00000000],[1768535253000,0.00000000],[1768535557000,0.00000000],[1768535894000,0.00000000],[1768536153000,0.00000000],[1768536470000,0.00000000],[1768536790000,0.00000000],[1768537110000,0.00000000],[1768537360000,0.00000000],[1768537667000,0.00000000],[1768538006000,0.00000000],[1768538258000,0.00000000],[1768538563000,0.00000000],[1768538886000,0.00000000],[1768539153000,0.00000000],[1768539478000,0.00000000],[1768539750000,0.00000000],[1768540086000,0.00000000],[1768540406000,0.00000000],[1768540662000,0.00000000],[1768540982000,0.00000000],[1768541302000,0.00000000],[1768541553000,0.00000000],[1768541858000,0.00000000],[1768542182000,0.00000000],[1768542502000,0.00000000],[1768542758000,0.00000000],[1768543078000,0.00000000],[1768543407000,0.00000000],[1768543653000,0.00000000],[1768543974000,0.00000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'UV žiarenie', data: [[1768518036000,0.00000000],[1768518165000,0.00000000],[1768518486000,0.00000000],[1768518803000,0.00000000],[1768519054000,0.00000000],[1768519363000,0.00000000],[1768519686000,0.00000000],[1768520003000,0.00000000],[1768520253000,0.00000000],[1768520562000,0.00000000],[1768520885000,0.00000000],[1768521203000,0.00000000],[1768521453000,0.00000000],[1768521766000,0.00000000],[1768522086000,0.00000000],[1768522403000,0.00000000],[1768522659000,0.00000000],[1768522982000,0.00000000],[1768523302000,0.00000000],[1768523553000,0.00000000],[1768523858000,0.00000000],[1768524198000,0.00000000],[1768524454000,0.00000000],[1768524768000,0.00000000],[1768525094000,0.00000000],[1768525354000,0.00000000],[1768525667000,0.00000000],[1768525990000,0.00000000],[1768526310000,0.00000000],[1768526566000,0.00000000],[1768526901000,0.00000000],[1768527154000,0.00000000],[1768527478000,0.00000000],[1768527798000,0.00000000],[1768528113000,0.00000000],[1768528357000,0.00000000],[1768528678000,0.00000000],[1768528966000,0.00000000],[1768529319000,0.00000000],[1768529574000,0.00000000],[1768529894000,0.00000000],[1768530150000,0.00000000],[1768530464000,0.00000000],[1768530769000,0.00000000],[1768531111000,0.00000000],[1768531366000,0.00000000],[1768531653000,0.00000000],[1768532006000,0.00000000],[1768532262000,0.00000000],[1768532582000,0.00000000],[1768532852000,0.00000000],[1768533173000,0.00000000],[1768533494000,0.00000000],[1768533753000,0.00000000],[1768534070000,0.00000000],[1768534403000,0.00000000],[1768534662000,0.00000000],[1768534998000,0.00000000],[1768535253000,0.00000000],[1768535557000,0.00000000],[1768535894000,0.00000000],[1768536153000,0.00000000],[1768536470000,0.00000000],[1768536790000,0.00000000],[1768537110000,0.00000000],[1768537360000,0.00000000],[1768537667000,0.00000000],[1768538006000,0.00000000],[1768538258000,0.00000000],[1768538563000,0.00000000],[1768538886000,0.00000000],[1768539153000,0.00000000],[1768539478000,0.00000000],[1768539750000,0.00000000],[1768540086000,0.00000000],[1768540406000,0.00000000],[1768540662000,0.00000000],[1768540982000,0.00000000],[1768541302000,0.00000000],[1768541553000,0.00000000],[1768541858000,0.00000000],[1768542182000,0.00000000],[1768542502000,0.00000000],[1768542758000,0.00000000],[1768543078000,0.00000000],[1768543407000,0.00000000],[1768543653000,0.00000000],[1768543974000,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: [[1768518036000,0.00000000],[1768518165000,0.00000000],[1768518486000,0.00000000],[1768518803000,0.00000000],[1768519054000,0.00000000],[1768519363000,0.00000000],[1768519686000,0.00000000],[1768520003000,0.00000000],[1768520253000,0.00000000],[1768520562000,0.00000000],[1768520885000,0.00000000],[1768521203000,0.00000000],[1768521453000,0.00000000],[1768521766000,0.00000000],[1768522086000,0.00000000],[1768522403000,0.00000000],[1768522659000,0.00000000],[1768522982000,0.00000000],[1768523302000,0.00000000],[1768523553000,0.00000000],[1768523858000,0.00000000],[1768524198000,0.00000000],[1768524454000,0.00000000],[1768524768000,0.00000000],[1768525094000,0.00000000],[1768525354000,0.00000000],[1768525667000,0.00000000],[1768525990000,0.00000000],[1768526310000,0.00000000],[1768526566000,0.00000000],[1768526901000,0.00000000],[1768527154000,0.00000000],[1768527478000,0.00000000],[1768527798000,0.00000000],[1768528113000,0.00000000],[1768528357000,0.00000000],[1768528678000,0.00000000],[1768528966000,0.00000000],[1768529319000,0.00000000],[1768529574000,0.00000000],[1768529894000,0.00000000],[1768530150000,0.00000000],[1768530464000,0.00000000],[1768530769000,0.00000000],[1768531111000,0.00000000],[1768531366000,0.00000000],[1768531653000,0.00000000],[1768532006000,0.00000000],[1768532262000,0.00000000],[1768532582000,0.00000000],[1768532852000,0.00000000],[1768533173000,0.00000000],[1768533494000,0.00000000],[1768533753000,0.00000000],[1768534070000,0.00000000],[1768534403000,0.00000000],[1768534662000,0.00000000],[1768534998000,0.00000000],[1768535253000,0.00000000],[1768535557000,0.00000000],[1768535894000,0.00000000],[1768536153000,0.00000000],[1768536470000,0.00000000],[1768536790000,0.00000000],[1768537110000,0.00000000],[1768537360000,0.00000000],[1768537667000,0.00000000],[1768538006000,0.00000000],[1768538258000,0.00000000],[1768538563000,0.00000000],[1768538886000,0.00000000],[1768539153000,0.00000000],[1768539478000,0.00000000],[1768539750000,0.00000000],[1768540086000,0.00000000],[1768540406000,0.00000000],[1768540662000,0.00000000],[1768540982000,0.00000000],[1768541302000,0.00000000],[1768541553000,0.00000000],[1768541858000,0.00000000],[1768542182000,0.00000000],[1768542502000,0.00000000],[1768542758000,0.00000000],[1768543078000,0.00000000],[1768543407000,0.00000000],[1768543653000,0.00000000],[1768543974000,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; }