var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1714168822000,8.90000000],[1714168950000,8.78000000],[1714169270000,8.84000000],[1714169590000,8.86000000],[1714169910000,8.82500000],[1714170165000,9.16000000],[1714170485000,9.52000000],[1714170805000,8.90000000],[1714171061000,8.74000000],[1714171381000,8.92000000],[1714171701000,8.92500000],[1714171957000,9.06000000],[1714172277000,9.10000000],[1714172611000,9.07500000],[1714172869000,9.00000000],[1714173189000,8.90000000],[1714173509000,8.97500000],[1714173765000,8.92000000],[1714174085000,9.04000000],[1714174405000,8.95000000],[1714175021000,8.85000000],[1714175286000,9.00000000],[1714175606000,9.10000000],[1714175878000,9.00000000],[1714176198000,9.00000000],[1714176470000,9.04000000],[1714176790000,8.96000000],[1714177110000,8.85000000],[1714177366000,9.00000000],[1714177686000,9.30000000],[1714178006000,9.37500000],[1714178262000,9.30000000],[1714178582000,9.32000000],[1714178902000,9.20000000],[1714179158000,9.28000000],[1714179478000,9.38000000],[1714179798000,9.57500000],[1714180056000,9.66000000],[1714180374000,9.56000000],[1714180694000,9.60000000],[1714180950000,9.60000000],[1714181270000,9.58000000],[1714181590000,9.48000000],[1714181910000,9.45000000],[1714182166000,9.56000000],[1714182502000,9.00000000],[1714182758000,8.58000000],[1714183078000,8.70000000],[1714183398000,8.75000000],[1714183654000,8.72000000],[1714183974000,8.70000000],[1714184294000,8.82500000],[1714184550000,8.96000000],[1714184870000,9.18000000],[1714185190000,9.24000000],[1714185510000,9.20000000],[1714185766000,9.22000000],[1714186086000,9.22000000],[1714186406000,9.35000000],[1714186662000,9.12000000],[1714186982000,9.14000000],[1714187302000,9.20000000],[1714187559000,9.20000000],[1714187878000,9.20000000],[1714188198000,9.17500000],[1714188469000,9.10000000],[1714188789000,9.10000000],[1714189109000,9.10000000],[1714189365000,9.16000000],[1714189701000,9.20000000],[1714189952000,9.16000000],[1714190277000,9.10000000],[1714190597000,9.02500000],[1714190854000,9.26000000],[1714191173000,9.36000000],[1714191510000,9.40000000],[1714191765000,9.46000000],[1714192085000,9.44000000],[1714192406000,9.37500000],[1714192662000,9.32000000],[1714192981000,9.40000000],[1714193302000,9.42500000],[1714193559000,9.50000000],[1714193878000,9.48000000],[1714194198000,9.47500000],[1714194453000,9.40000000],[1714194775000,9.48000000],[1714195111000,9.60000000],[1714195367000,9.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1714168822000,3.9],[1714168950000,4],[1714169270000,3.9],[1714169590000,4],[1714169910000,4],[1714170165000,3.8],[1714170485000,4.2],[1714170805000,3.9],[1714171061000,3.9],[1714171381000,3.8],[1714171701000,4],[1714171957000,3.9],[1714172277000,3.9],[1714172611000,4],[1714172869000,4],[1714173189000,3.9],[1714173509000,3.9],[1714173765000,3.8],[1714174085000,3.9],[1714174405000,3.7],[1714175021000,3.8],[1714175286000,3.8],[1714175606000,3.9],[1714175878000,3.9],[1714176198000,3.9],[1714176470000,3.8],[1714176790000,3.9],[1714177110000,3.8],[1714177366000,3.8],[1714177686000,3.8],[1714178006000,3.9],[1714178262000,3.8],[1714178582000,3.9],[1714178902000,3.9],[1714179158000,3.9],[1714179478000,3.8],[1714179798000,3.6],[1714180056000,3.9],[1714180374000,3.8],[1714180694000,3.8],[1714180950000,3.8],[1714181270000,4],[1714181590000,4.1],[1714181910000,3.8],[1714182166000,4.3],[1714182502000,5],[1714182758000,4.4],[1714183078000,4.4],[1714183398000,4.2],[1714183654000,4.3],[1714183974000,4.2],[1714184294000,4.2],[1714184550000,4.1],[1714184870000,4.2],[1714185190000,4.2],[1714185510000,4.2],[1714185766000,4.3],[1714186086000,4.2],[1714186406000,4.4],[1714186662000,4.4],[1714186982000,4.2],[1714187302000,4.2],[1714187559000,4.2],[1714187878000,4.2],[1714188198000,4.3],[1714188469000,4.3],[1714188789000,4.3],[1714189109000,4.3],[1714189365000,4.2],[1714189701000,4.2],[1714189952000,4.2],[1714190277000,4.3],[1714190597000,4.2],[1714190854000,4.2],[1714191173000,4.3],[1714191510000,4.3],[1714191765000,4.4],[1714192085000,4.5],[1714192406000,4.3],[1714192662000,4.5],[1714192981000,4.5],[1714193302000,4.4],[1714193559000,4.6],[1714193878000,4.7],[1714194198000,4.8],[1714194453000,4.8],[1714194775000,4.9],[1714195111000,5],[1714195367000,4.9],], 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: [[1714168822000,71.00000000],[1714168950000,72.00000000],[1714169270000,71.40000000],[1714169590000,71.80000000],[1714169910000,72.00000000],[1714170165000,69.60000000],[1714170485000,69.60000000],[1714170805000,71.25000000],[1714171061000,71.80000000],[1714171381000,70.80000000],[1714171701000,71.50000000],[1714171957000,70.60000000],[1714172277000,70.20000000],[1714172611000,70.75000000],[1714172869000,71.00000000],[1714173189000,71.00000000],[1714173509000,70.75000000],[1714173765000,70.60000000],[1714174085000,70.40000000],[1714174405000,70.00000000],[1714175021000,70.75000000],[1714175286000,70.00000000],[1714175606000,70.25000000],[1714175878000,70.80000000],[1714176198000,70.75000000],[1714176470000,70.00000000],[1714176790000,71.00000000],[1714177110000,71.00000000],[1714177366000,70.00000000],[1714177686000,68.60000000],[1714178006000,68.75000000],[1714178262000,69.00000000],[1714178582000,69.00000000],[1714178902000,69.75000000],[1714179158000,69.40000000],[1714179478000,68.60000000],[1714179798000,66.50000000],[1714180056000,67.40000000],[1714180374000,67.60000000],[1714180694000,67.25000000],[1714180950000,67.60000000],[1714181270000,68.40000000],[1714181590000,69.20000000],[1714181910000,68.25000000],[1714182166000,70.20000000],[1714182502000,76.50000000],[1714182758000,75.40000000],[1714183078000,74.40000000],[1714183398000,73.50000000],[1714183654000,73.80000000],[1714183974000,73.80000000],[1714184294000,73.00000000],[1714184550000,72.00000000],[1714184870000,71.20000000],[1714185190000,70.80000000],[1714185510000,71.00000000],[1714185766000,71.40000000],[1714186086000,71.00000000],[1714186406000,71.50000000],[1714186662000,72.40000000],[1714186982000,71.40000000],[1714187302000,71.00000000],[1714187559000,71.00000000],[1714187878000,71.40000000],[1714188198000,71.75000000],[1714188469000,72.20000000],[1714188789000,72.20000000],[1714189109000,72.00000000],[1714189365000,71.40000000],[1714189701000,71.25000000],[1714189952000,71.60000000],[1714190277000,72.00000000],[1714190597000,72.25000000],[1714190854000,70.80000000],[1714191173000,70.80000000],[1714191510000,70.75000000],[1714191765000,70.80000000],[1714192085000,71.60000000],[1714192406000,71.00000000],[1714192662000,72.20000000],[1714192981000,71.80000000],[1714193302000,71.25000000],[1714193559000,71.80000000],[1714193878000,72.40000000],[1714194198000,73.00000000],[1714194453000,73.20000000],[1714194775000,73.20000000],[1714195111000,73.50000000],[1714195367000,73.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: [[1714168822000,1018],[1714168950000,1018],[1714169270000,1018.1],[1714169590000,1018],[1714169910000,1017.9],[1714170165000,1018],[1714170485000,1018],[1714170805000,1018.1],[1714171061000,1018.1],[1714171381000,1018.1],[1714171701000,1018.1],[1714171957000,1018.1],[1714172277000,1018.1],[1714172611000,1018.1],[1714172869000,1018.2],[1714173189000,1018.2],[1714173509000,1018.2],[1714173765000,1018.2],[1714174085000,1018.2],[1714174405000,1018.2],[1714175021000,1018.3],[1714175286000,1018.2],[1714175606000,1018.2],[1714175878000,1018.3],[1714176198000,1018.3],[1714176470000,1018.3],[1714176790000,1018.2],[1714177110000,1018.3],[1714177366000,1018.4],[1714177686000,1018.3],[1714178006000,1018.2],[1714178262000,1018.3],[1714178582000,1018.3],[1714178902000,1018.5],[1714179158000,1018.5],[1714179478000,1018.4],[1714179798000,1018.5],[1714180056000,1018.6],[1714180374000,1018.6],[1714180694000,1018.5],[1714180950000,1018.5],[1714181270000,1018.7],[1714181590000,1018.6],[1714181910000,1018.7],[1714182166000,1018.7],[1714182502000,1018.7],[1714182758000,1018.7],[1714183078000,1018.8],[1714183398000,1018.8],[1714183654000,1018.7],[1714183974000,1018.9],[1714184294000,1018.7],[1714184550000,1018.9],[1714184870000,1018.8],[1714185190000,1018.9],[1714185510000,1018.8],[1714185766000,1019],[1714186086000,1019],[1714186406000,1019],[1714186662000,1019.1],[1714186982000,1019],[1714187302000,1019.1],[1714187559000,1019.1],[1714187878000,1019],[1714188198000,1019.1],[1714188469000,1019.1],[1714188789000,1019.3],[1714189109000,1019.2],[1714189365000,1019.3],[1714189701000,1019.3],[1714189952000,1019.4],[1714190277000,1019.5],[1714190597000,1019.5],[1714190854000,1019.5],[1714191173000,1019.6],[1714191510000,1019.5],[1714191765000,1019.6],[1714192085000,1019.6],[1714192406000,1019.7],[1714192662000,1019.7],[1714192981000,1019.7],[1714193302000,1019.7],[1714193559000,1019.6],[1714193878000,1019.6],[1714194198000,1019.6],[1714194453000,1019.7],[1714194775000,1019.7],[1714195111000,1019.7],[1714195367000,1019.7],], 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: [[1714168822000,3.96],[1714168950000,5.184],[1714169270000,5.76],[1714169590000,6.696],[1714169910000,9.72],[1714170165000,9.216],[1714170485000,2.664],[1714170805000,2.79],[1714171061000,5.184],[1714171381000,6.336],[1714171701000,8.28],[1714171957000,5.544],[1714172277000,2.88],[1714172611000,3.96],[1714172869000,5.904],[1714173189000,6.48],[1714173509000,6.66],[1714173765000,7.56],[1714174085000,5.112],[1714174405000,5.4],[1714175021000,4.77],[1714175286000,6.84],[1714175606000,2.52],[1714175878000,3.744],[1714176198000,3.33],[1714176470000,3.6],[1714176790000,5.544],[1714177110000,3.15],[1714177366000,2.952],[1714177686000,4.32],[1714178006000,4.05],[1714178262000,2.808],[1714178582000,4.032],[1714178902000,3.96],[1714179158000,3.384],[1714179478000,2.376],[1714179798000,3.96],[1714180056000,2.304],[1714180374000,3.168],[1714180694000,2.52],[1714180950000,3.096],[1714181270000,2.52],[1714181590000,3.384],[1714181910000,5.04],[1714182166000,2.664],[1714182502000,3.51],[1714182758000,4.752],[1714183078000,5.688],[1714183398000,4.14],[1714183654000,4.032],[1714183974000,5.328],[1714184294000,5.13],[1714184550000,4.896],[1714184870000,2.448],[1714185190000,2.448],[1714185510000,2.79],[1714185766000,2.448],[1714186086000,2.808],[1714186406000,1.53],[1714186662000,3.456],[1714186982000,3.744],[1714187302000,5.22],[1714187559000,5.04],[1714187878000,5.904],[1714188198000,7.56],[1714188469000,5.688],[1714188789000,7.272],[1714189109000,6.21],[1714189365000,5.688],[1714189701000,3.6],[1714189952000,3.672],[1714190277000,0.72],[1714190597000,1.98],[1714190854000,2.376],[1714191173000,3.96],[1714191510000,3.69],[1714191765000,3.096],[1714192085000,1.8],[1714192406000,5.04],[1714192662000,4.176],[1714192981000,4.968],[1714193302000,8.01],[1714193559000,5.472],[1714193878000,4.896],[1714194198000,6.03],[1714194453000,5.76],[1714194775000,7.776],[1714195111000,5.4],[1714195367000,6.84],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1714168822000,5.04],[1714168950000,6.552],[1714169270000,7.056],[1714169590000,7.56],[1714169910000,11.52],[1714170165000,10.728],[1714170485000,4.032],[1714170805000,3.78],[1714171061000,6.552],[1714171381000,7.56],[1714171701000,10.17],[1714171957000,6.552],[1714172277000,3.528],[1714172611000,4.41],[1714172869000,7.56],[1714173189000,8.064],[1714173509000,8.19],[1714173765000,9.576],[1714174085000,6.552],[1714174405000,6.3],[1714175021000,5.67],[1714175286000,8.064],[1714175606000,3.15],[1714175878000,4.536],[1714176198000,5.04],[1714176470000,4.032],[1714176790000,6.048],[1714177110000,3.78],[1714177366000,3.528],[1714177686000,5.544],[1714178006000,5.04],[1714178262000,3.528],[1714178582000,5.04],[1714178902000,5.04],[1714179158000,4.536],[1714179478000,3.528],[1714179798000,5.04],[1714180056000,3.528],[1714180374000,4.536],[1714180694000,4.41],[1714180950000,4.032],[1714181270000,4.536],[1714181590000,4.032],[1714181910000,6.3],[1714182166000,3.024],[1714182502000,5.04],[1714182758000,5.544],[1714183078000,6.552],[1714183398000,5.04],[1714183654000,5.04],[1714183974000,6.048],[1714184294000,6.3],[1714184550000,6.048],[1714184870000,2.52],[1714185190000,3.024],[1714185510000,4.41],[1714185766000,3.528],[1714186086000,3.024],[1714186406000,3.15],[1714186662000,4.536],[1714186982000,5.04],[1714187302000,5.67],[1714187559000,6.048],[1714187878000,6.552],[1714188198000,8.82],[1714188469000,7.056],[1714188789000,8.568],[1714189109000,7.56],[1714189365000,6.552],[1714189701000,4.41],[1714189952000,4.536],[1714190277000,1.512],[1714190597000,2.52],[1714190854000,4.032],[1714191173000,5.544],[1714191510000,5.04],[1714191765000,4.536],[1714192085000,2.52],[1714192406000,7.65],[1714192662000,5.544],[1714192981000,6.048],[1714193302000,10.8],[1714193559000,8.208],[1714193878000,7.056],[1714194198000,8.91],[1714194453000,8.064],[1714194775000,10.224],[1714195111000,7.65],[1714195367000,8.82],], 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: [[1714168822000,8.00000000],[1714168950000,143.60000000],[1714169270000,281.20000000],[1714169590000,347.00000000],[1714169910000,351.00000000],[1714170165000,345.80000000],[1714170485000,246.40000000],[1714170805000,265.25000000],[1714171061000,209.60000000],[1714171381000,207.40000000],[1714171701000,269.00000000],[1714171957000,213.40000000],[1714172277000,98.20000000],[1714172611000,95.75000000],[1714172869000,79.00000000],[1714173189000,78.00000000],[1714173509000,265.00000000],[1714173765000,279.80000000],[1714174085000,138.80000000],[1714174405000,187.50000000],[1714175021000,179.75000000],[1714175286000,348.00000000],[1714175606000,170.75000000],[1714175878000,282.80000000],[1714176198000,346.75000000],[1714176470000,339.00000000],[1714176790000,348.80000000],[1714177110000,261.50000000],[1714177366000,350.40000000],[1714177686000,212.40000000],[1714178006000,184.00000000],[1714178262000,78.00000000],[1714178582000,347.80000000],[1714178902000,348.50000000],[1714179158000,149.40000000],[1714179478000,2.80000000],[1714179798000,264.75000000],[1714180056000,352.20000000],[1714180374000,142.20000000],[1714180694000,186.75000000],[1714180950000,216.40000000],[1714181270000,280.20000000],[1714181590000,79.80000000],[1714181910000,253.25000000],[1714182166000,268.60000000],[1714182502000,11.75000000],[1714182758000,345.20000000],[1714183078000,352.20000000],[1714183398000,347.25000000],[1714183654000,346.20000000],[1714183974000,343.80000000],[1714184294000,348.75000000],[1714184550000,281.20000000],[1714184870000,340.20000000],[1714185190000,341.40000000],[1714185510000,342.00000000],[1714185766000,341.00000000],[1714186086000,341.20000000],[1714186406000,341.75000000],[1714186662000,280.80000000],[1714186982000,284.60000000],[1714187302000,267.25000000],[1714187559000,211.00000000],[1714187878000,143.40000000],[1714188198000,178.00000000],[1714188469000,76.40000000],[1714188789000,211.60000000],[1714189109000,354.75000000],[1714189365000,145.40000000],[1714189701000,92.00000000],[1714189952000,142.60000000],[1714190277000,91.60000000],[1714190597000,9.00000000],[1714190854000,7.60000000],[1714191173000,17.40000000],[1714191510000,9.25000000],[1714191765000,150.60000000],[1714192085000,25.60000000],[1714192406000,98.50000000],[1714192662000,22.40000000],[1714192981000,38.20000000],[1714193302000,95.50000000],[1714193559000,33.60000000],[1714193878000,28.20000000],[1714194198000,99.25000000],[1714194453000,28.00000000],[1714194775000,14.60000000],[1714195111000,18.25000000],[1714195367000,9.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: [[1714168822000,0.00000000],[1714168950000,0.00000000],[1714169270000,0.00000000],[1714169590000,0.00000000],[1714169910000,0.00000000],[1714170165000,0.00000000],[1714170485000,0.00000000],[1714170805000,0.00000000],[1714171061000,0.00000000],[1714171381000,0.00000000],[1714171701000,0.00000000],[1714171957000,0.00000000],[1714172277000,0.00000000],[1714172611000,0.00000000],[1714172869000,0.00000000],[1714173189000,0.00000000],[1714173509000,0.00000000],[1714173765000,0.00000000],[1714174085000,0.00000000],[1714174405000,0.00000000],[1714175021000,0.00000000],[1714175286000,0.00000000],[1714175606000,0.00000000],[1714175878000,0.00000000],[1714176198000,0.00000000],[1714176470000,0.00000000],[1714176790000,0.00000000],[1714177110000,0.00000000],[1714177366000,0.00000000],[1714177686000,0.00000000],[1714178006000,0.00000000],[1714178262000,0.00000000],[1714178582000,0.00000000],[1714178902000,0.00000000],[1714179158000,0.00000000],[1714179478000,0.00000000],[1714179798000,0.00000000],[1714180056000,0.00000000],[1714180374000,0.00000000],[1714180694000,0.00000000],[1714180950000,0.00000000],[1714181270000,0.00000000],[1714181590000,0.00000000],[1714181910000,0.00000000],[1714182166000,0.00000000],[1714182502000,0.00000000],[1714182758000,0.00000000],[1714183078000,0.00000000],[1714183398000,0.00000000],[1714183654000,0.00000000],[1714183974000,0.00000000],[1714184294000,0.00000000],[1714184550000,0.00000000],[1714184870000,0.00000000],[1714185190000,0.00000000],[1714185510000,0.00000000],[1714185766000,0.00000000],[1714186086000,0.00000000],[1714186406000,0.00000000],[1714186662000,0.00000000],[1714186982000,0.00000000],[1714187302000,0.00000000],[1714187559000,0.00000000],[1714187878000,0.00000000],[1714188198000,0.00000000],[1714188469000,0.80000000],[1714188789000,1.20000000],[1714189109000,2.75000000],[1714189365000,4.00000000],[1714189701000,5.25000000],[1714189952000,7.20000000],[1714190277000,10.40000000],[1714190597000,12.75000000],[1714190854000,15.40000000],[1714191173000,12.40000000],[1714191510000,14.00000000],[1714191765000,22.60000000],[1714192085000,27.20000000],[1714192406000,26.25000000],[1714192662000,31.60000000],[1714192981000,36.60000000],[1714193302000,40.25000000],[1714193559000,46.60000000],[1714193878000,57.20000000],[1714194198000,61.25000000],[1714194453000,66.60000000],[1714194775000,75.00000000],[1714195111000,69.50000000],[1714195367000,69.50000000],], 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: [[1714168822000,0.00000000],[1714168950000,0.00000000],[1714169270000,0.00000000],[1714169590000,0.00000000],[1714169910000,0.00000000],[1714170165000,0.00000000],[1714170485000,0.00000000],[1714170805000,0.00000000],[1714171061000,0.00000000],[1714171381000,0.00000000],[1714171701000,0.00000000],[1714171957000,0.00000000],[1714172277000,0.00000000],[1714172611000,0.00000000],[1714172869000,0.00000000],[1714173189000,0.00000000],[1714173509000,0.00000000],[1714173765000,0.00000000],[1714174085000,0.00000000],[1714174405000,0.00000000],[1714175021000,0.00000000],[1714175286000,0.00000000],[1714175606000,0.00000000],[1714175878000,0.00000000],[1714176198000,0.00000000],[1714176470000,0.00000000],[1714176790000,0.00000000],[1714177110000,0.00000000],[1714177366000,0.00000000],[1714177686000,0.00000000],[1714178006000,0.00000000],[1714178262000,0.00000000],[1714178582000,0.00000000],[1714178902000,0.00000000],[1714179158000,0.00000000],[1714179478000,0.00000000],[1714179798000,0.00000000],[1714180056000,0.00000000],[1714180374000,0.00000000],[1714180694000,0.00000000],[1714180950000,0.00000000],[1714181270000,0.00000000],[1714181590000,0.00000000],[1714181910000,0.00000000],[1714182166000,0.00000000],[1714182502000,0.00000000],[1714182758000,0.00000000],[1714183078000,0.00000000],[1714183398000,0.00000000],[1714183654000,0.00000000],[1714183974000,0.00000000],[1714184294000,0.00000000],[1714184550000,0.00000000],[1714184870000,0.00000000],[1714185190000,0.00000000],[1714185510000,0.00000000],[1714185766000,0.00000000],[1714186086000,0.00000000],[1714186406000,0.00000000],[1714186662000,0.00000000],[1714186982000,0.00000000],[1714187302000,0.00000000],[1714187559000,0.00000000],[1714187878000,0.00000000],[1714188198000,0.00000000],[1714188469000,0.00000000],[1714188789000,0.00000000],[1714189109000,0.00000000],[1714189365000,0.00000000],[1714189701000,0.00000000],[1714189952000,0.00000000],[1714190277000,0.00000000],[1714190597000,0.00000000],[1714190854000,0.00000000],[1714191173000,0.00000000],[1714191510000,0.00000000],[1714191765000,0.00000000],[1714192085000,0.00000000],[1714192406000,0.00000000],[1714192662000,0.00000000],[1714192981000,0.00000000],[1714193302000,0.00000000],[1714193559000,0.00000000],[1714193878000,0.00000000],[1714194198000,0.00000000],[1714194453000,0.00000000],[1714194775000,0.00000000],[1714195111000,0.00000000],[1714195367000,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: [[1714168822000,0.00000000],[1714168950000,0.00000000],[1714169270000,0.00000000],[1714169590000,0.00000000],[1714169910000,0.00000000],[1714170165000,0.00000000],[1714170485000,0.00000000],[1714170805000,0.00000000],[1714171061000,0.00000000],[1714171381000,0.00000000],[1714171701000,0.00000000],[1714171957000,0.00000000],[1714172277000,0.00000000],[1714172611000,0.00000000],[1714172869000,0.00000000],[1714173189000,0.00000000],[1714173509000,0.00000000],[1714173765000,0.00000000],[1714174085000,0.00000000],[1714174405000,0.00000000],[1714175021000,0.00000000],[1714175286000,0.00000000],[1714175606000,0.00000000],[1714175878000,0.00000000],[1714176198000,0.00000000],[1714176470000,0.00000000],[1714176790000,0.00000000],[1714177110000,0.00000000],[1714177366000,0.00000000],[1714177686000,0.00000000],[1714178006000,0.00000000],[1714178262000,0.00000000],[1714178582000,0.00000000],[1714178902000,0.00000000],[1714179158000,0.00000000],[1714179478000,0.00000000],[1714179798000,0.00000000],[1714180056000,0.00000000],[1714180374000,0.00000000],[1714180694000,0.00000000],[1714180950000,0.00000000],[1714181270000,0.00000000],[1714181590000,0.00000000],[1714181910000,0.00000000],[1714182166000,0.00000000],[1714182502000,0.00000000],[1714182758000,0.00000000],[1714183078000,0.00000000],[1714183398000,0.00000000],[1714183654000,0.00000000],[1714183974000,0.00000000],[1714184294000,0.00000000],[1714184550000,0.00000000],[1714184870000,0.00000000],[1714185190000,0.00000000],[1714185510000,0.00000000],[1714185766000,0.00000000],[1714186086000,0.00000000],[1714186406000,0.00000000],[1714186662000,0.00000000],[1714186982000,0.00000000],[1714187302000,0.00000000],[1714187559000,0.00000000],[1714187878000,0.00000000],[1714188198000,0.00000000],[1714188469000,0.00000000],[1714188789000,0.00000000],[1714189109000,0.00000000],[1714189365000,0.00000000],[1714189701000,0.00000000],[1714189952000,0.00000000],[1714190277000,0.00000000],[1714190597000,0.00000000],[1714190854000,0.00000000],[1714191173000,0.00000000],[1714191510000,0.00000000],[1714191765000,0.00000000],[1714192085000,0.00000000],[1714192406000,0.00000000],[1714192662000,0.00000000],[1714192981000,0.00000000],[1714193302000,0.00000000],[1714193559000,0.00000000],[1714193878000,0.00000000],[1714194198000,0.00000000],[1714194453000,0.00000000],[1714194775000,0.00000000],[1714195111000,0.00000000],[1714195367000,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; }