var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1714082422000,5.00000000],[1714082550000,4.88000000],[1714082870000,4.86000000],[1714083190000,4.90000000],[1714083510000,5.00000000],[1714083766000,4.90000000],[1714084086000,5.06000000],[1714084406000,5.20000000],[1714084662000,5.32000000],[1714084981000,5.18000000],[1714085301000,4.70000000],[1714085557000,4.30000000],[1714086054000,4.55000000],[1714086181000,4.58000000],[1714086501000,4.60000000],[1714086757000,4.80000000],[1714087077000,5.18000000],[1714087397000,5.30000000],[1714087652000,4.96000000],[1714087973000,4.70000000],[1714088293000,4.58000000],[1714088612000,4.35000000],[1714088869000,4.26000000],[1714089189000,4.18000000],[1714089509000,4.30000000],[1714089765000,4.48000000],[1714090085000,4.40000000],[1714090405000,4.75000000],[1714090661000,4.52000000],[1714090981000,4.44000000],[1714091301000,4.67500000],[1714091557000,4.78000000],[1714091877000,4.92000000],[1714092197000,4.95000000],[1714092452000,5.04000000],[1714092773000,4.96000000],[1714093093000,4.72000000],[1714093412000,5.02500000],[1714093669000,5.06000000],[1714093989000,5.20000000],[1714094309000,5.27500000],[1714094565000,5.62000000],[1714094886000,5.52000000],[1714095206000,5.40000000],[1714095462000,5.74000000],[1714095782000,5.82000000],[1714096102000,5.60000000],[1714096358000,5.44000000],[1714096678000,5.40000000],[1714096998000,5.27500000],[1714097253000,5.28000000],[1714097574000,5.16000000],[1714097894000,5.22500000],[1714098150000,5.40000000],[1714098470000,5.22000000],[1714098790000,5.02000000],[1714099110000,4.95000000],[1714099366000,5.14000000],[1714099686000,5.08000000],[1714100006000,4.85000000],[1714100262000,4.90000000],[1714100582000,4.92000000],[1714100902000,4.95000000],[1714101158000,4.66000000],[1714101494000,4.80000000],[1714101750000,5.04000000],[1714102070000,5.46000000],[1714102390000,5.62000000],[1714102710000,5.57500000],[1714102966000,5.90000000],[1714103286000,6.10000000],[1714103606000,6.27500000],[1714103862000,6.50000000],[1714104181000,6.54000000],[1714104501000,6.45000000],[1714104757000,6.68000000],[1714105077000,6.64000000],[1714105397000,6.40000000],[1714105652000,6.54000000],[1714105973000,6.94000000],[1714106293000,7.44000000],[1714106612000,7.80000000],[1714106869000,8.68000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1714082422000,0.3],[1714082550000,0.2],[1714082870000,0.1],[1714083190000,0.3],[1714083510000,0.5],[1714083766000,0.6],[1714084086000,0.8],[1714084406000,0.9],[1714084662000,0.9],[1714084981000,0.9],[1714085301000,0.9],[1714085557000,0.6],[1714086054000,0.8],[1714086181000,0.8],[1714086501000,0.9],[1714086757000,0.8],[1714087077000,0.9],[1714087397000,1],[1714087652000,0.9],[1714087973000,0.9],[1714088293000,1],[1714088612000,0.9],[1714088869000,0.8],[1714089189000,0.9],[1714089509000,0.9],[1714089765000,0.9],[1714090085000,0.9],[1714090405000,1],[1714090661000,1],[1714090981000,0.8],[1714091301000,0.8],[1714091557000,0.9],[1714091877000,0.8],[1714092197000,0.8],[1714092452000,0.8],[1714092773000,0.8],[1714093093000,0.6],[1714093412000,0.7],[1714093669000,0.7],[1714093989000,0.6],[1714094309000,0.6],[1714094565000,0.6],[1714094886000,0.7],[1714095206000,0.6],[1714095462000,0.6],[1714095782000,0.7],[1714096102000,0.6],[1714096358000,0.6],[1714096678000,0.6],[1714096998000,0.7],[1714097253000,0.6],[1714097574000,0.6],[1714097894000,0.5],[1714098150000,0.5],[1714098470000,0.5],[1714098790000,0.4],[1714099110000,0.5],[1714099366000,0.5],[1714099686000,0.6],[1714100006000,0.4],[1714100262000,0.5],[1714100582000,0.5],[1714100902000,0.5],[1714101158000,0.5],[1714101494000,0.4],[1714101750000,0.4],[1714102070000,0.4],[1714102390000,0.6],[1714102710000,0.5],[1714102966000,0.6],[1714103286000,0.6],[1714103606000,0.6],[1714103862000,0.7],[1714104181000,0.9],[1714104501000,0.9],[1714104757000,1.1],[1714105077000,1.4],[1714105397000,1.5],[1714105652000,1.4],[1714105973000,1.5],[1714106293000,1.9],[1714106612000,2.4],[1714106869000,2.7],], 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: [[1714082422000,72.00000000],[1714082550000,72.20000000],[1714082870000,71.60000000],[1714083190000,72.20000000],[1714083510000,73.00000000],[1714083766000,74.00000000],[1714084086000,74.00000000],[1714084406000,74.00000000],[1714084662000,73.60000000],[1714084981000,74.20000000],[1714085301000,76.50000000],[1714085557000,77.00000000],[1714086054000,77.00000000],[1714086181000,76.80000000],[1714086501000,77.00000000],[1714086757000,75.40000000],[1714087077000,74.20000000],[1714087397000,74.00000000],[1714087652000,75.40000000],[1714087973000,76.40000000],[1714088293000,77.60000000],[1714088612000,78.25000000],[1714088869000,78.60000000],[1714089189000,79.20000000],[1714089509000,79.00000000],[1714089765000,78.00000000],[1714090085000,78.20000000],[1714090405000,77.00000000],[1714090661000,78.20000000],[1714090981000,77.60000000],[1714091301000,76.50000000],[1714091557000,76.00000000],[1714091877000,75.00000000],[1714092197000,74.75000000],[1714092452000,74.20000000],[1714092773000,74.80000000],[1714093093000,75.00000000],[1714093412000,73.75000000],[1714093669000,73.80000000],[1714093989000,72.60000000],[1714094309000,72.00000000],[1714094565000,70.60000000],[1714094886000,71.60000000],[1714095206000,71.75000000],[1714095462000,70.00000000],[1714095782000,70.00000000],[1714096102000,70.75000000],[1714096358000,71.40000000],[1714096678000,71.40000000],[1714096998000,72.50000000],[1714097253000,72.00000000],[1714097574000,72.60000000],[1714097894000,71.75000000],[1714098150000,71.00000000],[1714098470000,71.80000000],[1714098790000,72.60000000],[1714099110000,73.00000000],[1714099366000,72.40000000],[1714099686000,73.00000000],[1714100006000,73.25000000],[1714100262000,73.40000000],[1714100582000,73.40000000],[1714100902000,73.25000000],[1714101158000,74.60000000],[1714101494000,73.50000000],[1714101750000,72.40000000],[1714102070000,70.20000000],[1714102390000,70.60000000],[1714102710000,70.25000000],[1714102966000,69.00000000],[1714103286000,68.00000000],[1714103606000,67.25000000],[1714103862000,66.60000000],[1714104181000,67.40000000],[1714104501000,68.00000000],[1714104757000,68.00000000],[1714105077000,69.40000000],[1714105397000,71.25000000],[1714105652000,69.80000000],[1714105973000,68.60000000],[1714106293000,68.00000000],[1714106612000,68.75000000],[1714106869000,66.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: [[1714082422000,1015.8],[1714082550000,1015.8],[1714082870000,1015.7],[1714083190000,1015.7],[1714083510000,1015.7],[1714083766000,1015.7],[1714084086000,1015.6],[1714084406000,1015.6],[1714084662000,1015.5],[1714084981000,1015.5],[1714085301000,1015.7],[1714085557000,1015.7],[1714086054000,1015.7],[1714086181000,1015.6],[1714086501000,1015.7],[1714086757000,1015.6],[1714087077000,1015.5],[1714087397000,1015.5],[1714087652000,1015.7],[1714087973000,1015.7],[1714088293000,1015.7],[1714088612000,1015.8],[1714088869000,1015.8],[1714089189000,1015.8],[1714089509000,1015.8],[1714089765000,1015.7],[1714090085000,1015.7],[1714090405000,1015.6],[1714090661000,1015.7],[1714090981000,1015.8],[1714091301000,1015.7],[1714091557000,1015.7],[1714091877000,1015.6],[1714092197000,1015.6],[1714092452000,1015.7],[1714092773000,1015.7],[1714093093000,1015.9],[1714093412000,1015.8],[1714093669000,1015.8],[1714093989000,1015.8],[1714094309000,1015.7],[1714094565000,1015.7],[1714094886000,1015.6],[1714095206000,1015.7],[1714095462000,1015.7],[1714095782000,1015.7],[1714096102000,1015.7],[1714096358000,1015.7],[1714096678000,1015.9],[1714096998000,1015.9],[1714097253000,1015.8],[1714097574000,1015.9],[1714097894000,1015.9],[1714098150000,1015.9],[1714098470000,1015.9],[1714098790000,1016],[1714099110000,1016.1],[1714099366000,1016.1],[1714099686000,1016.1],[1714100006000,1016.2],[1714100262000,1016.1],[1714100582000,1016.1],[1714100902000,1016.1],[1714101158000,1016.2],[1714101494000,1016.3],[1714101750000,1016.3],[1714102070000,1016.1],[1714102390000,1016],[1714102710000,1016.2],[1714102966000,1016.1],[1714103286000,1016],[1714103606000,1016],[1714103862000,1016],[1714104181000,1016],[1714104501000,1016],[1714104757000,1016],[1714105077000,1016],[1714105397000,1016],[1714105652000,1016.1],[1714105973000,1016.1],[1714106293000,1016],[1714106612000,1016],[1714106869000,1016],], 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: [[1714082422000,2.7],[1714082550000,0.72],[1714082870000,0.936],[1714083190000,0.072],[1714083510000,1.44],[1714083766000,0.36],[1714084086000,2.736],[1714084406000,1.44],[1714084662000,1.008],[1714084981000,0.432],[1714085301000,1.17],[1714085557000,0],[1714086054000,0.36],[1714086181000,0.144],[1714086501000,0.54],[1714086757000,1.8],[1714087077000,1.944],[1714087397000,0.72],[1714087652000,1.368],[1714087973000,0.936],[1714088293000,2.376],[1714088612000,2.43],[1714088869000,0.936],[1714089189000,2.952],[1714089509000,3.51],[1714089765000,2.88],[1714090085000,3.024],[1714090405000,2.43],[1714090661000,2.592],[1714090981000,1.656],[1714091301000,0.72],[1714091557000,1.08],[1714091877000,2.16],[1714092197000,1.62],[1714092452000,2.016],[1714092773000,1.872],[1714093093000,4.032],[1714093412000,4.23],[1714093669000,4.608],[1714093989000,4.104],[1714094309000,5.4],[1714094565000,3.96],[1714094886000,4.536],[1714095206000,2.07],[1714095462000,1.152],[1714095782000,0.504],[1714096102000,0.09],[1714096358000,1.728],[1714096678000,1.296],[1714096998000,1.89],[1714097253000,1.944],[1714097574000,1.224],[1714097894000,2.43],[1714098150000,1.368],[1714098470000,1.296],[1714098790000,0.936],[1714099110000,2.25],[1714099366000,2.52],[1714099686000,0.864],[1714100006000,1.08],[1714100262000,1.656],[1714100582000,4.176],[1714100902000,2.88],[1714101158000,1.224],[1714101494000,4.32],[1714101750000,4.032],[1714102070000,4.248],[1714102390000,3.384],[1714102710000,2.79],[1714102966000,2.52],[1714103286000,2.52],[1714103606000,2.52],[1714103862000,1.44],[1714104181000,0],[1714104501000,0],[1714104757000,0],[1714105077000,0.648],[1714105397000,2.43],[1714105652000,2.376],[1714105973000,1.224],[1714106293000,1.296],[1714106612000,0],[1714106869000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1714082422000,3.78],[1714082550000,1.512],[1714082870000,1.008],[1714083190000,0.504],[1714083510000,1.89],[1714083766000,1.008],[1714084086000,3.528],[1714084406000,2.52],[1714084662000,1.008],[1714084981000,0.504],[1714085301000,1.89],[1714085557000,0],[1714086054000,1.26],[1714086181000,1.008],[1714086501000,0.63],[1714086757000,3.024],[1714087077000,2.52],[1714087397000,1.26],[1714087652000,2.52],[1714087973000,1.512],[1714088293000,3.024],[1714088612000,3.78],[1714088869000,1.512],[1714089189000,4.032],[1714089509000,5.04],[1714089765000,4.032],[1714090085000,3.528],[1714090405000,2.52],[1714090661000,3.024],[1714090981000,2.52],[1714091301000,1.26],[1714091557000,1.512],[1714091877000,3.024],[1714092197000,2.52],[1714092452000,2.016],[1714092773000,3.024],[1714093093000,5.04],[1714093412000,5.04],[1714093669000,5.04],[1714093989000,5.04],[1714094309000,6.3],[1714094565000,5.04],[1714094886000,5.544],[1714095206000,2.52],[1714095462000,2.016],[1714095782000,1.008],[1714096102000,0.63],[1714096358000,2.016],[1714096678000,2.52],[1714096998000,2.52],[1714097253000,2.016],[1714097574000,2.016],[1714097894000,2.52],[1714098150000,2.016],[1714098470000,1.512],[1714098790000,1.008],[1714099110000,2.52],[1714099366000,2.52],[1714099686000,1.512],[1714100006000,1.89],[1714100262000,2.52],[1714100582000,5.04],[1714100902000,3.78],[1714101158000,2.52],[1714101494000,5.04],[1714101750000,5.04],[1714102070000,5.04],[1714102390000,4.536],[1714102710000,4.41],[1714102966000,2.52],[1714103286000,2.52],[1714103606000,2.52],[1714103862000,2.52],[1714104181000,0],[1714104501000,0],[1714104757000,0],[1714105077000,1.512],[1714105397000,2.52],[1714105652000,3.528],[1714105973000,2.52],[1714106293000,2.016],[1714106612000,0],[1714106869000,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: [[1714082422000,300.00000000],[1714082550000,300.00000000],[1714082870000,300.00000000],[1714083190000,300.00000000],[1714083510000,284.75000000],[1714083766000,295.60000000],[1714084086000,306.00000000],[1714084406000,327.25000000],[1714084662000,338.00000000],[1714084981000,310.40000000],[1714085301000,310.75000000],[1714085557000,349.00000000],[1714086054000,350.00000000],[1714086181000,205.60000000],[1714086501000,341.00000000],[1714086757000,198.20000000],[1714087077000,155.40000000],[1714087397000,261.75000000],[1714087652000,204.00000000],[1714087973000,227.20000000],[1714088293000,251.60000000],[1714088612000,272.25000000],[1714088869000,235.80000000],[1714089189000,19.80000000],[1714089509000,96.00000000],[1714089765000,323.20000000],[1714090085000,297.00000000],[1714090405000,301.25000000],[1714090661000,297.00000000],[1714090981000,288.80000000],[1714091301000,289.00000000],[1714091557000,289.00000000],[1714091877000,289.00000000],[1714092197000,289.00000000],[1714092452000,291.20000000],[1714092773000,306.00000000],[1714093093000,321.00000000],[1714093412000,330.50000000],[1714093669000,338.80000000],[1714093989000,348.40000000],[1714094309000,339.50000000],[1714094565000,336.20000000],[1714094886000,333.80000000],[1714095206000,334.00000000],[1714095462000,334.00000000],[1714095782000,334.00000000],[1714096102000,334.00000000],[1714096358000,334.00000000],[1714096678000,333.60000000],[1714096998000,333.25000000],[1714097253000,333.00000000],[1714097574000,333.00000000],[1714097894000,333.00000000],[1714098150000,333.00000000],[1714098470000,333.00000000],[1714098790000,333.00000000],[1714099110000,333.00000000],[1714099366000,333.00000000],[1714099686000,333.00000000],[1714100006000,333.00000000],[1714100262000,332.80000000],[1714100582000,331.00000000],[1714100902000,331.25000000],[1714101158000,332.00000000],[1714101494000,330.00000000],[1714101750000,324.00000000],[1714102070000,326.40000000],[1714102390000,317.40000000],[1714102710000,315.50000000],[1714102966000,315.20000000],[1714103286000,316.00000000],[1714103606000,316.00000000],[1714103862000,316.00000000],[1714104181000,316.00000000],[1714104501000,316.00000000],[1714104757000,316.00000000],[1714105077000,316.00000000],[1714105397000,316.00000000],[1714105652000,316.00000000],[1714105973000,316.00000000],[1714106293000,316.00000000],[1714106612000,316.50000000],[1714106869000,316.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: [[1714082422000,0.00000000],[1714082550000,0.00000000],[1714082870000,0.00000000],[1714083190000,0.00000000],[1714083510000,0.00000000],[1714083766000,0.00000000],[1714084086000,0.00000000],[1714084406000,0.00000000],[1714084662000,0.00000000],[1714084981000,0.00000000],[1714085301000,0.00000000],[1714085557000,0.00000000],[1714086054000,0.00000000],[1714086181000,0.00000000],[1714086501000,0.00000000],[1714086757000,0.00000000],[1714087077000,0.00000000],[1714087397000,0.00000000],[1714087652000,0.00000000],[1714087973000,0.00000000],[1714088293000,0.00000000],[1714088612000,0.00000000],[1714088869000,0.00000000],[1714089189000,0.00000000],[1714089509000,0.00000000],[1714089765000,0.00000000],[1714090085000,0.00000000],[1714090405000,0.00000000],[1714090661000,0.00000000],[1714090981000,0.00000000],[1714091301000,0.00000000],[1714091557000,0.00000000],[1714091877000,0.00000000],[1714092197000,0.00000000],[1714092452000,0.00000000],[1714092773000,0.00000000],[1714093093000,0.00000000],[1714093412000,0.00000000],[1714093669000,0.00000000],[1714093989000,0.00000000],[1714094309000,0.00000000],[1714094565000,0.00000000],[1714094886000,0.00000000],[1714095206000,0.00000000],[1714095462000,0.00000000],[1714095782000,0.00000000],[1714096102000,0.00000000],[1714096358000,0.00000000],[1714096678000,0.00000000],[1714096998000,0.00000000],[1714097253000,0.00000000],[1714097574000,0.00000000],[1714097894000,0.00000000],[1714098150000,0.00000000],[1714098470000,0.00000000],[1714098790000,0.00000000],[1714099110000,0.00000000],[1714099366000,0.00000000],[1714099686000,0.00000000],[1714100006000,0.00000000],[1714100262000,0.00000000],[1714100582000,0.00000000],[1714100902000,0.00000000],[1714101158000,0.00000000],[1714101494000,0.75000000],[1714101750000,1.00000000],[1714102070000,2.20000000],[1714102390000,3.40000000],[1714102710000,5.00000000],[1714102966000,7.20000000],[1714103286000,10.40000000],[1714103606000,13.00000000],[1714103862000,16.00000000],[1714104181000,19.60000000],[1714104501000,23.50000000],[1714104757000,27.20000000],[1714105077000,32.00000000],[1714105397000,37.25000000],[1714105652000,43.00000000],[1714105973000,52.20000000],[1714106293000,72.60000000],[1714106612000,79.75000000],[1714106869000,87.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: [[1714082422000,0.00000000],[1714082550000,0.00000000],[1714082870000,0.00000000],[1714083190000,0.00000000],[1714083510000,0.00000000],[1714083766000,0.00000000],[1714084086000,0.00000000],[1714084406000,0.00000000],[1714084662000,0.00000000],[1714084981000,0.00000000],[1714085301000,0.00000000],[1714085557000,0.00000000],[1714086054000,0.00000000],[1714086181000,0.00000000],[1714086501000,0.00000000],[1714086757000,0.00000000],[1714087077000,0.00000000],[1714087397000,0.00000000],[1714087652000,0.00000000],[1714087973000,0.00000000],[1714088293000,0.00000000],[1714088612000,0.00000000],[1714088869000,0.00000000],[1714089189000,0.00000000],[1714089509000,0.00000000],[1714089765000,0.00000000],[1714090085000,0.00000000],[1714090405000,0.00000000],[1714090661000,0.00000000],[1714090981000,0.00000000],[1714091301000,0.00000000],[1714091557000,0.00000000],[1714091877000,0.00000000],[1714092197000,0.00000000],[1714092452000,0.00000000],[1714092773000,0.00000000],[1714093093000,0.00000000],[1714093412000,0.00000000],[1714093669000,0.00000000],[1714093989000,0.00000000],[1714094309000,0.00000000],[1714094565000,0.00000000],[1714094886000,0.00000000],[1714095206000,0.00000000],[1714095462000,0.00000000],[1714095782000,0.00000000],[1714096102000,0.00000000],[1714096358000,0.00000000],[1714096678000,0.00000000],[1714096998000,0.00000000],[1714097253000,0.00000000],[1714097574000,0.00000000],[1714097894000,0.00000000],[1714098150000,0.00000000],[1714098470000,0.00000000],[1714098790000,0.00000000],[1714099110000,0.00000000],[1714099366000,0.00000000],[1714099686000,0.00000000],[1714100006000,0.00000000],[1714100262000,0.00000000],[1714100582000,0.00000000],[1714100902000,0.00000000],[1714101158000,0.00000000],[1714101494000,0.00000000],[1714101750000,0.00000000],[1714102070000,0.00000000],[1714102390000,0.00000000],[1714102710000,0.00000000],[1714102966000,0.00000000],[1714103286000,0.00000000],[1714103606000,0.00000000],[1714103862000,0.00000000],[1714104181000,0.00000000],[1714104501000,0.00000000],[1714104757000,0.00000000],[1714105077000,0.00000000],[1714105397000,0.00000000],[1714105652000,0.00000000],[1714105973000,0.00000000],[1714106293000,0.00000000],[1714106612000,0.00000000],[1714106869000,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: [[1714082422000,0.00000000],[1714082550000,0.00000000],[1714082870000,0.00000000],[1714083190000,0.00000000],[1714083510000,0.00000000],[1714083766000,0.00000000],[1714084086000,0.00000000],[1714084406000,0.00000000],[1714084662000,0.00000000],[1714084981000,0.00000000],[1714085301000,0.00000000],[1714085557000,0.00000000],[1714086054000,0.00000000],[1714086181000,0.00000000],[1714086501000,0.00000000],[1714086757000,0.00000000],[1714087077000,0.00000000],[1714087397000,0.00000000],[1714087652000,0.00000000],[1714087973000,0.00000000],[1714088293000,0.00000000],[1714088612000,0.00000000],[1714088869000,0.00000000],[1714089189000,0.00000000],[1714089509000,0.00000000],[1714089765000,0.00000000],[1714090085000,0.00000000],[1714090405000,0.00000000],[1714090661000,0.00000000],[1714090981000,0.00000000],[1714091301000,0.00000000],[1714091557000,0.00000000],[1714091877000,0.00000000],[1714092197000,0.00000000],[1714092452000,0.00000000],[1714092773000,0.00000000],[1714093093000,0.00000000],[1714093412000,0.00000000],[1714093669000,0.00000000],[1714093989000,0.00000000],[1714094309000,0.00000000],[1714094565000,0.00000000],[1714094886000,0.00000000],[1714095206000,0.00000000],[1714095462000,0.00000000],[1714095782000,0.00000000],[1714096102000,0.00000000],[1714096358000,0.00000000],[1714096678000,0.00000000],[1714096998000,0.00000000],[1714097253000,0.00000000],[1714097574000,0.00000000],[1714097894000,0.00000000],[1714098150000,0.00000000],[1714098470000,0.00000000],[1714098790000,0.00000000],[1714099110000,0.00000000],[1714099366000,0.00000000],[1714099686000,0.00000000],[1714100006000,0.00000000],[1714100262000,0.00000000],[1714100582000,0.00000000],[1714100902000,0.00000000],[1714101158000,0.00000000],[1714101494000,0.00000000],[1714101750000,0.00000000],[1714102070000,0.00000000],[1714102390000,0.00000000],[1714102710000,0.00000000],[1714102966000,0.00000000],[1714103286000,0.00000000],[1714103606000,0.00000000],[1714103862000,0.00000000],[1714104181000,0.00000000],[1714104501000,0.00000000],[1714104757000,0.00000000],[1714105077000,0.00000000],[1714105397000,0.00000000],[1714105652000,0.00000000],[1714105973000,0.00000000],[1714106293000,0.00000000],[1714106612000,0.00000000],[1714106869000,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; }