var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1777068011000,4.43333333],[1777068204000,4.40000000],[1777068460000,4.56000000],[1777068780000,4.86000000],[1777069100000,4.80000000],[1777069356000,4.12000000],[1777069676000,4.18000000],[1777069995000,4.27500000],[1777070252000,4.10000000],[1777070572000,3.78000000],[1777070892000,3.66000000],[1777071212000,3.82500000],[1777071467000,3.78000000],[1777071788000,3.96000000],[1777072107000,3.82500000],[1777072364000,4.00000000],[1777072684000,4.02000000],[1777073004000,4.15000000],[1777073260000,3.78000000],[1777073580000,3.50000000],[1777073900000,3.35000000],[1777074156000,3.10000000],[1777074476000,3.06000000],[1777074796000,3.02500000],[1777075052000,2.86000000],[1777075372000,2.54000000],[1777075692000,2.64000000],[1777076012000,2.72500000],[1777076268000,2.82000000],[1777076588000,2.34000000],[1777076908000,2.57500000],[1777077164000,2.46000000],[1777077484000,2.42000000],[1777077804000,2.65000000],[1777078060000,2.70000000],[1777078380000,2.44000000],[1777078700000,2.22500000],[1777078956000,1.92000000],[1777079276000,1.80000000],[1777079596000,1.72500000],[1777079853000,1.70000000],[1777080172000,1.60000000],[1777080492000,1.44000000],[1777080812000,1.50000000],[1777081068000,1.40000000],[1777081388000,1.84000000],[1777081708000,1.75000000],[1777081964000,1.50000000],[1777082284000,1.24000000],[1777082604000,1.07500000],[1777082860000,1.00000000],[1777083180000,0.96000000],[1777083500000,1.05000000],[1777083756000,0.88000000],[1777084076000,0.78000000],[1777084396000,0.75000000],[1777084652000,0.62000000],[1777084972000,0.44000000],[1777085292000,0.30000000],[1777085612000,0.40000000],[1777085868000,0.12000000],[1777086188000,0.28000000],[1777086508000,0.60000000],[1777086764000,0.54000000],[1777087084000,0.30000000],[1777087404000,0.12500000],[1777087660000,0.32500000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1777068011000,2],[1777068204000,2.1],[1777068460000,2.2],[1777068780000,2.4],[1777069100000,2.2],[1777069356000,1.7],[1777069676000,2],[1777069995000,2.1],[1777070252000,1.9],[1777070572000,1.7],[1777070892000,1.7],[1777071212000,1.9],[1777071467000,1.8],[1777071788000,1.9],[1777072107000,1.8],[1777072364000,1.8],[1777072684000,1.9],[1777073004000,1.9],[1777073260000,1.6],[1777073580000,1.5],[1777073900000,1.4],[1777074156000,1.2],[1777074476000,1.4],[1777074796000,1.3],[1777075052000,1.2],[1777075372000,0.9],[1777075692000,1.1],[1777076012000,1.2],[1777076268000,1.3],[1777076588000,0.8],[1777076908000,1.1],[1777077164000,1],[1777077484000,1],[1777077804000,1.3],[1777078060000,1.2],[1777078380000,0.9],[1777078700000,0.7],[1777078956000,0.4],[1777079276000,0.4],[1777079596000,0.4],[1777079853000,0.5],[1777080172000,0.4],[1777080492000,0.3],[1777080812000,0.4],[1777081068000,0.4],[1777081388000,0.8],[1777081708000,0.7],[1777081964000,0.5],[1777082284000,0.2],[1777082604000,0.1],[1777082860000,-0],[1777083180000,-0],[1777083500000,0.2],[1777083756000,-0.1],[1777084076000,-0.1],[1777084396000,-0.1],[1777084652000,-0.2],[1777084972000,-0.4],[1777085292000,-0.6],[1777085612000,-0.5],[1777085868000,-0.7],[1777086188000,-0.5],[1777086508000,-0.1],[1777086764000,-0.2],[1777087084000,-0.4],[1777087404000,-0.6],[1777087660000,-0.4],], 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: [[1777068011000,84.33333333],[1777068204000,85.00000000],[1777068460000,85.00000000],[1777068780000,84.00000000],[1777069100000,83.75000000],[1777069356000,84.60000000],[1777069676000,86.00000000],[1777069995000,86.00000000],[1777070252000,86.00000000],[1777070572000,86.20000000],[1777070892000,87.20000000],[1777071212000,87.25000000],[1777071467000,86.80000000],[1777071788000,86.60000000],[1777072107000,86.50000000],[1777072364000,86.00000000],[1777072684000,86.00000000],[1777073004000,85.75000000],[1777073260000,85.60000000],[1777073580000,86.80000000],[1777073900000,87.00000000],[1777074156000,87.80000000],[1777074476000,88.80000000],[1777074796000,88.50000000],[1777075052000,89.00000000],[1777075372000,89.00000000],[1777075692000,90.00000000],[1777076012000,90.00000000],[1777076268000,90.00000000],[1777076588000,90.00000000],[1777076908000,90.00000000],[1777077164000,90.00000000],[1777077484000,90.60000000],[1777077804000,90.75000000],[1777078060000,90.00000000],[1777078380000,90.00000000],[1777078700000,90.00000000],[1777078956000,90.00000000],[1777079276000,90.60000000],[1777079596000,91.00000000],[1777079853000,91.60000000],[1777080172000,92.00000000],[1777080492000,92.00000000],[1777080812000,92.50000000],[1777081068000,93.00000000],[1777081388000,93.00000000],[1777081708000,93.00000000],[1777081964000,93.00000000],[1777082284000,93.00000000],[1777082604000,93.00000000],[1777082860000,93.00000000],[1777083180000,93.20000000],[1777083500000,94.00000000],[1777083756000,93.40000000],[1777084076000,94.00000000],[1777084396000,94.00000000],[1777084652000,94.00000000],[1777084972000,94.00000000],[1777085292000,94.00000000],[1777085612000,94.00000000],[1777085868000,94.00000000],[1777086188000,94.80000000],[1777086508000,95.00000000],[1777086764000,95.00000000],[1777087084000,95.00000000],[1777087404000,95.00000000],[1777087660000,95.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: [[1777068011000,1017.2],[1777068204000,1017.2],[1777068460000,1017.1],[1777068780000,1017.1],[1777069100000,1017.2],[1777069356000,1017.3],[1777069676000,1017.3],[1777069995000,1017.3],[1777070252000,1017.3],[1777070572000,1017.4],[1777070892000,1017.2],[1777071212000,1017.3],[1777071467000,1017.3],[1777071788000,1017.3],[1777072107000,1017.4],[1777072364000,1017.2],[1777072684000,1017.3],[1777073004000,1017.3],[1777073260000,1017.4],[1777073580000,1017.4],[1777073900000,1017.4],[1777074156000,1017.2],[1777074476000,1017.4],[1777074796000,1017.4],[1777075052000,1017.4],[1777075372000,1017.3],[1777075692000,1017.3],[1777076012000,1017.2],[1777076268000,1017.2],[1777076588000,1017.1],[1777076908000,1017],[1777077164000,1017],[1777077484000,1017],[1777077804000,1017],[1777078060000,1016.9],[1777078380000,1017],[1777078700000,1017],[1777078956000,1017],[1777079276000,1017.1],[1777079596000,1017],[1777079853000,1017.1],[1777080172000,1017],[1777080492000,1017],[1777080812000,1017.1],[1777081068000,1017],[1777081388000,1017],[1777081708000,1017],[1777081964000,1017.1],[1777082284000,1017.1],[1777082604000,1017.1],[1777082860000,1017],[1777083180000,1017.1],[1777083500000,1017],[1777083756000,1017],[1777084076000,1017],[1777084396000,1017],[1777084652000,1017],[1777084972000,1017.1],[1777085292000,1017.2],[1777085612000,1017.1],[1777085868000,1017.2],[1777086188000,1017.2],[1777086508000,1017.2],[1777086764000,1017.1],[1777087084000,1017.2],[1777087404000,1017.3],[1777087660000,1017.3],], 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: [[1777068011000,0],[1777068204000,0],[1777068460000,0.072],[1777068780000,0.072],[1777069100000,0.54],[1777069356000,0],[1777069676000,0],[1777069995000,0.63],[1777070252000,0],[1777070572000,0.504],[1777070892000,0.648],[1777071212000,0.18],[1777071467000,0.216],[1777071788000,0.432],[1777072107000,1.35],[1777072364000,0.936],[1777072684000,0.864],[1777073004000,0.72],[1777073260000,0.36],[1777073580000,0],[1777073900000,0],[1777074156000,1.224],[1777074476000,0.288],[1777074796000,0.09],[1777075052000,0],[1777075372000,0.072],[1777075692000,0],[1777076012000,0.09],[1777076268000,0],[1777076588000,0],[1777076908000,0],[1777077164000,0],[1777077484000,0],[1777077804000,0.54],[1777078060000,0],[1777078380000,0],[1777078700000,0],[1777078956000,0],[1777079276000,0],[1777079596000,0],[1777079853000,0],[1777080172000,0],[1777080492000,0],[1777080812000,0],[1777081068000,0],[1777081388000,0.36],[1777081708000,0],[1777081964000,0],[1777082284000,0],[1777082604000,0],[1777082860000,0],[1777083180000,0],[1777083500000,0],[1777083756000,0.072],[1777084076000,0],[1777084396000,0],[1777084652000,0],[1777084972000,0],[1777085292000,0],[1777085612000,0],[1777085868000,0],[1777086188000,0],[1777086508000,0],[1777086764000,0],[1777087084000,0],[1777087404000,0],[1777087660000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1777068011000,0],[1777068204000,0],[1777068460000,0.504],[1777068780000,0.504],[1777069100000,0.63],[1777069356000,0],[1777069676000,0],[1777069995000,0.63],[1777070252000,0],[1777070572000,0.504],[1777070892000,1.008],[1777071212000,1.26],[1777071467000,1.008],[1777071788000,0.504],[1777072107000,2.52],[1777072364000,1.008],[1777072684000,1.512],[1777073004000,1.26],[1777073260000,1.008],[1777073580000,0],[1777073900000,0],[1777074156000,1.512],[1777074476000,0.504],[1777074796000,0.63],[1777075052000,0],[1777075372000,0.504],[1777075692000,0],[1777076012000,0.63],[1777076268000,0],[1777076588000,0],[1777076908000,0],[1777077164000,0],[1777077484000,0],[1777077804000,0.63],[1777078060000,0],[1777078380000,0],[1777078700000,0],[1777078956000,0],[1777079276000,0],[1777079596000,0],[1777079853000,0],[1777080172000,0],[1777080492000,0],[1777080812000,0],[1777081068000,0],[1777081388000,1.008],[1777081708000,0],[1777081964000,0],[1777082284000,0],[1777082604000,0],[1777082860000,0],[1777083180000,0],[1777083500000,0],[1777083756000,0.504],[1777084076000,0],[1777084396000,0],[1777084652000,0],[1777084972000,0],[1777085292000,0],[1777085612000,0],[1777085868000,0],[1777086188000,0],[1777086508000,0],[1777086764000,0],[1777087084000,0],[1777087404000,0],[1777087660000,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: [[1777068011000,5.66666667],[1777068204000,10.75000000],[1777068460000,348.40000000],[1777068780000,132.20000000],[1777069100000,14.25000000],[1777069356000,97.80000000],[1777069676000,354.60000000],[1777069995000,157.25000000],[1777070252000,271.40000000],[1777070572000,86.40000000],[1777070892000,112.80000000],[1777071212000,259.75000000],[1777071467000,158.40000000],[1777071788000,228.00000000],[1777072107000,113.50000000],[1777072364000,237.80000000],[1777072684000,171.80000000],[1777073004000,96.00000000],[1777073260000,77.40000000],[1777073580000,72.40000000],[1777073900000,1.50000000],[1777074156000,106.00000000],[1777074476000,338.80000000],[1777074796000,180.00000000],[1777075052000,5.80000000],[1777075372000,10.60000000],[1777075692000,151.40000000],[1777076012000,337.75000000],[1777076268000,79.00000000],[1777076588000,7.00000000],[1777076908000,6.00000000],[1777077164000,6.00000000],[1777077484000,208.00000000],[1777077804000,337.50000000],[1777078060000,352.60000000],[1777078380000,356.60000000],[1777078700000,179.00000000],[1777078956000,0.00000000],[1777079276000,1.40000000],[1777079596000,6.00000000],[1777079853000,6.00000000],[1777080172000,6.00000000],[1777080492000,6.00000000],[1777080812000,6.00000000],[1777081068000,4.00000000],[1777081388000,76.60000000],[1777081708000,10.50000000],[1777081964000,6.40000000],[1777082284000,6.00000000],[1777082604000,7.25000000],[1777082860000,8.00000000],[1777083180000,77.40000000],[1777083500000,267.75000000],[1777083756000,11.40000000],[1777084076000,11.00000000],[1777084396000,11.00000000],[1777084652000,11.00000000],[1777084972000,11.00000000],[1777085292000,11.40000000],[1777085612000,12.75000000],[1777085868000,14.60000000],[1777086188000,9.40000000],[1777086508000,3.25000000],[1777086764000,3.80000000],[1777087084000,4.00000000],[1777087404000,4.00000000],[1777087660000,7.25000000],], 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: [[1777068011000,0.00000000],[1777068204000,0.00000000],[1777068460000,0.00000000],[1777068780000,0.00000000],[1777069100000,0.00000000],[1777069356000,0.00000000],[1777069676000,0.00000000],[1777069995000,0.00000000],[1777070252000,0.00000000],[1777070572000,0.00000000],[1777070892000,0.00000000],[1777071212000,0.00000000],[1777071467000,0.00000000],[1777071788000,0.00000000],[1777072107000,0.00000000],[1777072364000,0.00000000],[1777072684000,0.00000000],[1777073004000,0.00000000],[1777073260000,0.00000000],[1777073580000,0.00000000],[1777073900000,0.00000000],[1777074156000,0.00000000],[1777074476000,0.00000000],[1777074796000,0.00000000],[1777075052000,0.00000000],[1777075372000,0.00000000],[1777075692000,0.00000000],[1777076012000,0.00000000],[1777076268000,0.00000000],[1777076588000,0.00000000],[1777076908000,0.00000000],[1777077164000,0.00000000],[1777077484000,0.00000000],[1777077804000,0.00000000],[1777078060000,0.00000000],[1777078380000,0.00000000],[1777078700000,0.00000000],[1777078956000,0.00000000],[1777079276000,0.00000000],[1777079596000,0.00000000],[1777079853000,0.00000000],[1777080172000,0.00000000],[1777080492000,0.00000000],[1777080812000,0.00000000],[1777081068000,0.00000000],[1777081388000,0.00000000],[1777081708000,0.00000000],[1777081964000,0.00000000],[1777082284000,0.00000000],[1777082604000,0.00000000],[1777082860000,0.00000000],[1777083180000,0.00000000],[1777083500000,0.00000000],[1777083756000,0.00000000],[1777084076000,0.00000000],[1777084396000,0.00000000],[1777084652000,0.00000000],[1777084972000,0.00000000],[1777085292000,0.00000000],[1777085612000,0.00000000],[1777085868000,0.00000000],[1777086188000,0.00000000],[1777086508000,0.00000000],[1777086764000,0.00000000],[1777087084000,0.00000000],[1777087404000,0.00000000],[1777087660000,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: [[1777068011000,0.00000000],[1777068204000,0.00000000],[1777068460000,0.00000000],[1777068780000,0.00000000],[1777069100000,0.00000000],[1777069356000,0.00000000],[1777069676000,0.00000000],[1777069995000,0.00000000],[1777070252000,0.00000000],[1777070572000,0.00000000],[1777070892000,0.00000000],[1777071212000,0.00000000],[1777071467000,0.00000000],[1777071788000,0.00000000],[1777072107000,0.00000000],[1777072364000,0.00000000],[1777072684000,0.00000000],[1777073004000,0.00000000],[1777073260000,0.00000000],[1777073580000,0.00000000],[1777073900000,0.00000000],[1777074156000,0.00000000],[1777074476000,0.00000000],[1777074796000,0.00000000],[1777075052000,0.00000000],[1777075372000,0.00000000],[1777075692000,0.00000000],[1777076012000,0.00000000],[1777076268000,0.00000000],[1777076588000,0.00000000],[1777076908000,0.00000000],[1777077164000,0.00000000],[1777077484000,0.00000000],[1777077804000,0.00000000],[1777078060000,0.00000000],[1777078380000,0.00000000],[1777078700000,0.00000000],[1777078956000,0.00000000],[1777079276000,0.00000000],[1777079596000,0.00000000],[1777079853000,0.00000000],[1777080172000,0.00000000],[1777080492000,0.00000000],[1777080812000,0.00000000],[1777081068000,0.00000000],[1777081388000,0.00000000],[1777081708000,0.00000000],[1777081964000,0.00000000],[1777082284000,0.00000000],[1777082604000,0.00000000],[1777082860000,0.00000000],[1777083180000,0.00000000],[1777083500000,0.00000000],[1777083756000,0.00000000],[1777084076000,0.00000000],[1777084396000,0.00000000],[1777084652000,0.00000000],[1777084972000,0.00000000],[1777085292000,0.00000000],[1777085612000,0.00000000],[1777085868000,0.00000000],[1777086188000,0.00000000],[1777086508000,0.00000000],[1777086764000,0.00000000],[1777087084000,0.00000000],[1777087404000,0.00000000],[1777087660000,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: [[1777068011000,0.00000000],[1777068204000,0.00000000],[1777068460000,0.00000000],[1777068780000,0.00000000],[1777069100000,0.00000000],[1777069356000,0.00000000],[1777069676000,0.00000000],[1777069995000,0.00000000],[1777070252000,0.00000000],[1777070572000,0.00000000],[1777070892000,0.00000000],[1777071212000,0.00000000],[1777071467000,0.00000000],[1777071788000,0.00000000],[1777072107000,0.00000000],[1777072364000,0.00000000],[1777072684000,0.00000000],[1777073004000,0.00000000],[1777073260000,0.00000000],[1777073580000,0.00000000],[1777073900000,0.00000000],[1777074156000,0.00000000],[1777074476000,0.00000000],[1777074796000,0.00000000],[1777075052000,0.00000000],[1777075372000,0.00000000],[1777075692000,0.00000000],[1777076012000,0.00000000],[1777076268000,0.00000000],[1777076588000,0.00000000],[1777076908000,0.00000000],[1777077164000,0.00000000],[1777077484000,0.00000000],[1777077804000,0.00000000],[1777078060000,0.00000000],[1777078380000,0.00000000],[1777078700000,0.00000000],[1777078956000,0.00000000],[1777079276000,0.00000000],[1777079596000,0.00000000],[1777079853000,0.00000000],[1777080172000,0.00000000],[1777080492000,0.00000000],[1777080812000,0.00000000],[1777081068000,0.00000000],[1777081388000,0.00000000],[1777081708000,0.00000000],[1777081964000,0.00000000],[1777082284000,0.00000000],[1777082604000,0.00000000],[1777082860000,0.00000000],[1777083180000,0.00000000],[1777083500000,0.00000000],[1777083756000,0.00000000],[1777084076000,0.00000000],[1777084396000,0.00000000],[1777084652000,0.00000000],[1777084972000,0.00000000],[1777085292000,0.00000000],[1777085612000,0.00000000],[1777085868000,0.00000000],[1777086188000,0.00000000],[1777086508000,0.00000000],[1777086764000,0.00000000],[1777087084000,0.00000000],[1777087404000,0.00000000],[1777087660000,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; }