var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1745445661000,10.25000000],[1745445754000,10.20000000],[1745446064000,10.20000000],[1745446374000,10.20000000],[1745446653000,10.20000000],[1745446963000,10.14000000],[1745447273000,10.08000000],[1745447552000,10.00000000],[1745447862000,10.00000000],[1745448172000,10.00000000],[1745448451000,10.00000000],[1745448761000,10.00000000],[1745449071000,9.94000000],[1745449350000,9.82000000],[1745449660000,9.80000000],[1745449970000,9.80000000],[1745450280000,9.80000000],[1745450559000,9.80000000],[1745450869000,9.78000000],[1745451179000,9.70000000],[1745451458000,9.80000000],[1745451755000,9.80000000],[1745452065000,9.80000000],[1745452375000,9.80000000],[1745452654000,9.80000000],[1745452964000,9.80000000],[1745453274000,9.76000000],[1745453553000,9.78000000],[1745453863000,9.70000000],[1745454173000,9.76000000],[1745454452000,9.70000000],[1745454762000,9.70000000],[1745455072000,9.70000000],[1745455352000,9.70000000],[1745455661000,9.70000000],[1745455971000,9.66000000],[1745456250000,9.70000000],[1745456560000,9.68000000],[1745456870000,9.60000000],[1745457211000,9.57500000],[1745457459000,9.58000000],[1745457770000,9.56000000],[1745458080000,9.60000000],[1745458359000,9.68000000],[1745458669000,9.70000000],[1745458979000,9.70000000],[1745459258000,9.70000000],[1745459568000,9.58000000],[1745459878000,9.50000000],[1745460157000,9.44000000],[1745460467000,9.40000000],[1745460777000,9.40000000],[1745461056000,9.40000000],[1745461366000,9.40000000],[1745461676000,9.40000000],[1745461955000,9.34000000],[1745462265000,9.28000000],[1745462575000,9.20000000],[1745462885000,9.30000000],[1745463164000,9.24000000],[1745463474000,9.28000000],[1745463753000,9.30000000],[1745464063000,9.30000000],[1745464373000,9.30000000],[1745464652000,9.30000000],[1745464962000,9.30000000],[1745465272000,9.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1745445661000,10.1],[1745445754000,10],[1745446064000,10],[1745446374000,10],[1745446653000,10],[1745446963000,10],[1745447273000,9.9],[1745447552000,9.8],[1745447862000,9.8],[1745448172000,9.8],[1745448451000,9.8],[1745448761000,9.8],[1745449071000,9.8],[1745449350000,9.7],[1745449660000,9.6],[1745449970000,9.6],[1745450280000,9.6],[1745450559000,9.6],[1745450869000,9.6],[1745451179000,9.5],[1745451458000,9.6],[1745451755000,9.6],[1745452065000,9.6],[1745452375000,9.6],[1745452654000,9.6],[1745452964000,9.6],[1745453274000,9.6],[1745453553000,9.6],[1745453863000,9.5],[1745454173000,9.6],[1745454452000,9.5],[1745454762000,9.5],[1745455072000,9.5],[1745455352000,9.5],[1745455661000,9.5],[1745455971000,9.5],[1745456250000,9.5],[1745456560000,9.5],[1745456870000,9.4],[1745457211000,9.4],[1745457459000,9.4],[1745457770000,9.4],[1745458080000,9.4],[1745458359000,9.5],[1745458669000,9.5],[1745458979000,9.5],[1745459258000,9.5],[1745459568000,9.4],[1745459878000,9.3],[1745460157000,9.3],[1745460467000,9.2],[1745460777000,9.2],[1745461056000,9.2],[1745461366000,9.2],[1745461676000,9.2],[1745461955000,9.2],[1745462265000,9.1],[1745462575000,9],[1745462885000,9.1],[1745463164000,9.1],[1745463474000,9.1],[1745463753000,9.1],[1745464063000,9.1],[1745464373000,9.1],[1745464652000,9.1],[1745464962000,9.1],[1745465272000,9.1],], 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: [[1745445661000,99.00000000],[1745445754000,99.00000000],[1745446064000,99.00000000],[1745446374000,99.00000000],[1745446653000,99.00000000],[1745446963000,99.00000000],[1745447273000,99.00000000],[1745447552000,99.00000000],[1745447862000,99.00000000],[1745448172000,99.00000000],[1745448451000,99.00000000],[1745448761000,99.00000000],[1745449071000,99.00000000],[1745449350000,99.00000000],[1745449660000,99.00000000],[1745449970000,99.00000000],[1745450280000,99.00000000],[1745450559000,99.00000000],[1745450869000,99.00000000],[1745451179000,99.00000000],[1745451458000,99.00000000],[1745451755000,99.00000000],[1745452065000,99.00000000],[1745452375000,99.00000000],[1745452654000,99.00000000],[1745452964000,99.00000000],[1745453274000,99.00000000],[1745453553000,99.00000000],[1745453863000,99.00000000],[1745454173000,99.00000000],[1745454452000,99.00000000],[1745454762000,99.00000000],[1745455072000,99.00000000],[1745455352000,99.00000000],[1745455661000,99.00000000],[1745455971000,99.00000000],[1745456250000,99.00000000],[1745456560000,99.00000000],[1745456870000,99.00000000],[1745457211000,99.00000000],[1745457459000,99.00000000],[1745457770000,99.00000000],[1745458080000,99.00000000],[1745458359000,99.00000000],[1745458669000,99.00000000],[1745458979000,99.00000000],[1745459258000,99.00000000],[1745459568000,99.00000000],[1745459878000,99.00000000],[1745460157000,99.00000000],[1745460467000,99.00000000],[1745460777000,99.00000000],[1745461056000,99.00000000],[1745461366000,99.00000000],[1745461676000,99.00000000],[1745461955000,99.00000000],[1745462265000,99.00000000],[1745462575000,99.00000000],[1745462885000,99.00000000],[1745463164000,99.00000000],[1745463474000,99.00000000],[1745463753000,99.00000000],[1745464063000,99.00000000],[1745464373000,99.00000000],[1745464652000,99.00000000],[1745464962000,99.00000000],[1745465272000,99.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: [[1745445661000,1011.9],[1745445754000,1011.8],[1745446064000,1011.7],[1745446374000,1011.7],[1745446653000,1011.7],[1745446963000,1011.7],[1745447273000,1011.6],[1745447552000,1011.7],[1745447862000,1011.6],[1745448172000,1011.7],[1745448451000,1011.5],[1745448761000,1011.5],[1745449071000,1011.5],[1745449350000,1011.5],[1745449660000,1011.5],[1745449970000,1011.5],[1745450280000,1011.5],[1745450559000,1011.5],[1745450869000,1011.4],[1745451179000,1011.5],[1745451458000,1011.5],[1745451755000,1011.4],[1745452065000,1011.3],[1745452375000,1011.3],[1745452654000,1011.2],[1745452964000,1011],[1745453274000,1011.1],[1745453553000,1011.1],[1745453863000,1011],[1745454173000,1011],[1745454452000,1011],[1745454762000,1010.9],[1745455072000,1010.8],[1745455352000,1010.9],[1745455661000,1011],[1745455971000,1010.9],[1745456250000,1011],[1745456560000,1011],[1745456870000,1011],[1745457211000,1011],[1745457459000,1010.9],[1745457770000,1010.8],[1745458080000,1010.8],[1745458359000,1010.8],[1745458669000,1010.8],[1745458979000,1010.8],[1745459258000,1010.8],[1745459568000,1010.7],[1745459878000,1010.8],[1745460157000,1010.7],[1745460467000,1010.7],[1745460777000,1010.6],[1745461056000,1010.7],[1745461366000,1010.7],[1745461676000,1010.6],[1745461955000,1010.6],[1745462265000,1010.5],[1745462575000,1010.5],[1745462885000,1010.4],[1745463164000,1010.5],[1745463474000,1010.3],[1745463753000,1010.5],[1745464063000,1010.4],[1745464373000,1010.4],[1745464652000,1010.4],[1745464962000,1010.4],[1745465272000,1010.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: [[1745445661000,0],[1745445754000,0],[1745446064000,0],[1745446374000,0],[1745446653000,0],[1745446963000,0],[1745447273000,0],[1745447552000,0],[1745447862000,0],[1745448172000,0],[1745448451000,0],[1745448761000,0],[1745449071000,0],[1745449350000,0],[1745449660000,0],[1745449970000,0],[1745450280000,0],[1745450559000,0],[1745450869000,0],[1745451179000,0],[1745451458000,0],[1745451755000,0],[1745452065000,0],[1745452375000,0],[1745452654000,0],[1745452964000,0],[1745453274000,0],[1745453553000,0],[1745453863000,0],[1745454173000,0],[1745454452000,0],[1745454762000,0],[1745455072000,0],[1745455352000,0],[1745455661000,0],[1745455971000,0],[1745456250000,0],[1745456560000,0],[1745456870000,0],[1745457211000,0],[1745457459000,0],[1745457770000,0],[1745458080000,0],[1745458359000,0],[1745458669000,0],[1745458979000,0],[1745459258000,0],[1745459568000,0],[1745459878000,0.144],[1745460157000,1.296],[1745460467000,0.144],[1745460777000,0],[1745461056000,0.72],[1745461366000,0.288],[1745461676000,0.504],[1745461955000,0.36],[1745462265000,0.792],[1745462575000,0.288],[1745462885000,0.576],[1745463164000,0.72],[1745463474000,1.008],[1745463753000,1.224],[1745464063000,0.648],[1745464373000,0.432],[1745464652000,0],[1745464962000,0],[1745465272000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1745445661000,0],[1745445754000,0],[1745446064000,0],[1745446374000,0],[1745446653000,0],[1745446963000,0],[1745447273000,0],[1745447552000,0],[1745447862000,0],[1745448172000,0],[1745448451000,0],[1745448761000,0],[1745449071000,0],[1745449350000,0],[1745449660000,0],[1745449970000,0],[1745450280000,0],[1745450559000,0],[1745450869000,0],[1745451179000,0],[1745451458000,0],[1745451755000,0],[1745452065000,0],[1745452375000,0],[1745452654000,0],[1745452964000,0],[1745453274000,0],[1745453553000,0],[1745453863000,0],[1745454173000,0],[1745454452000,0],[1745454762000,0],[1745455072000,0],[1745455352000,0],[1745455661000,0],[1745455971000,0],[1745456250000,0],[1745456560000,0],[1745456870000,0],[1745457211000,0],[1745457459000,0],[1745457770000,0],[1745458080000,0],[1745458359000,0],[1745458669000,0],[1745458979000,0],[1745459258000,0],[1745459568000,0],[1745459878000,0.72],[1745460157000,1.8],[1745460467000,1.08],[1745460777000,0],[1745461056000,1.8],[1745461366000,1.08],[1745461676000,1.08],[1745461955000,1.44],[1745462265000,1.8],[1745462575000,1.44],[1745462885000,1.8],[1745463164000,1.8],[1745463474000,1.8],[1745463753000,1.8],[1745464063000,1.8],[1745464373000,1.08],[1745464652000,0],[1745464962000,0],[1745465272000,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: [[1745445661000,90.00000000],[1745445754000,90.20000000],[1745446064000,91.00000000],[1745446374000,90.00000000],[1745446653000,90.20000000],[1745446963000,90.60000000],[1745447273000,90.20000000],[1745447552000,90.80000000],[1745447862000,90.60000000],[1745448172000,90.20000000],[1745448451000,90.00000000],[1745448761000,90.20000000],[1745449071000,91.00000000],[1745449350000,91.00000000],[1745449660000,91.00000000],[1745449970000,91.00000000],[1745450280000,91.00000000],[1745450559000,91.00000000],[1745450869000,91.20000000],[1745451179000,91.20000000],[1745451458000,91.00000000],[1745451755000,91.00000000],[1745452065000,91.00000000],[1745452375000,91.00000000],[1745452654000,91.00000000],[1745452964000,91.00000000],[1745453274000,91.00000000],[1745453553000,91.00000000],[1745453863000,91.00000000],[1745454173000,91.00000000],[1745454452000,91.00000000],[1745454762000,91.00000000],[1745455072000,91.00000000],[1745455352000,91.00000000],[1745455661000,91.00000000],[1745455971000,91.00000000],[1745456250000,91.00000000],[1745456560000,91.00000000],[1745456870000,91.00000000],[1745457211000,91.00000000],[1745457459000,91.00000000],[1745457770000,91.00000000],[1745458080000,91.00000000],[1745458359000,91.00000000],[1745458669000,91.00000000],[1745458979000,91.00000000],[1745459258000,91.00000000],[1745459568000,91.00000000],[1745459878000,91.00000000],[1745460157000,91.00000000],[1745460467000,91.00000000],[1745460777000,91.00000000],[1745461056000,91.00000000],[1745461366000,91.00000000],[1745461676000,91.00000000],[1745461955000,91.00000000],[1745462265000,91.00000000],[1745462575000,91.00000000],[1745462885000,91.00000000],[1745463164000,91.00000000],[1745463474000,91.00000000],[1745463753000,91.00000000],[1745464063000,91.00000000],[1745464373000,91.00000000],[1745464652000,91.00000000],[1745464962000,91.00000000],[1745465272000,91.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: [[1745445661000,0.00000000],[1745445754000,0.00000000],[1745446064000,0.00000000],[1745446374000,0.00000000],[1745446653000,0.00000000],[1745446963000,0.00000000],[1745447273000,0.00000000],[1745447552000,0.00000000],[1745447862000,0.00000000],[1745448172000,0.00000000],[1745448451000,0.00000000],[1745448761000,0.00000000],[1745449071000,0.00000000],[1745449350000,0.00000000],[1745449660000,0.00000000],[1745449970000,0.00000000],[1745450280000,0.00000000],[1745450559000,0.00000000],[1745450869000,0.00000000],[1745451179000,0.00000000],[1745451458000,0.00000000],[1745451755000,0.00000000],[1745452065000,0.00000000],[1745452375000,0.00000000],[1745452654000,0.00000000],[1745452964000,0.00000000],[1745453274000,0.00000000],[1745453553000,0.00000000],[1745453863000,0.00000000],[1745454173000,0.00000000],[1745454452000,0.00000000],[1745454762000,0.00000000],[1745455072000,0.00000000],[1745455352000,0.00000000],[1745455661000,0.00000000],[1745455971000,0.00000000],[1745456250000,0.00000000],[1745456560000,0.00000000],[1745456870000,0.00000000],[1745457211000,0.00000000],[1745457459000,0.00000000],[1745457770000,0.00000000],[1745458080000,0.00000000],[1745458359000,0.00000000],[1745458669000,0.00000000],[1745458979000,0.00000000],[1745459258000,0.00000000],[1745459568000,0.00000000],[1745459878000,0.00000000],[1745460157000,0.00000000],[1745460467000,0.00000000],[1745460777000,0.00000000],[1745461056000,0.00000000],[1745461366000,0.00000000],[1745461676000,0.00000000],[1745461955000,0.00000000],[1745462265000,0.00000000],[1745462575000,0.00000000],[1745462885000,0.00000000],[1745463164000,0.00000000],[1745463474000,0.00000000],[1745463753000,0.00000000],[1745464063000,0.00000000],[1745464373000,0.00000000],[1745464652000,0.00000000],[1745464962000,0.00000000],[1745465272000,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: [[1745445661000,0.00000000],[1745445754000,0.00000000],[1745446064000,0.00000000],[1745446374000,0.00000000],[1745446653000,0.00000000],[1745446963000,0.00000000],[1745447273000,0.00000000],[1745447552000,0.00000000],[1745447862000,0.00000000],[1745448172000,0.00000000],[1745448451000,0.00000000],[1745448761000,0.00000000],[1745449071000,0.00000000],[1745449350000,0.00000000],[1745449660000,0.00000000],[1745449970000,0.00000000],[1745450280000,0.00000000],[1745450559000,0.00000000],[1745450869000,0.00000000],[1745451179000,0.00000000],[1745451458000,0.00000000],[1745451755000,0.00000000],[1745452065000,0.00000000],[1745452375000,0.00000000],[1745452654000,0.00000000],[1745452964000,0.00000000],[1745453274000,0.00000000],[1745453553000,0.00000000],[1745453863000,0.00000000],[1745454173000,0.00000000],[1745454452000,0.00000000],[1745454762000,0.00000000],[1745455072000,0.00000000],[1745455352000,0.00000000],[1745455661000,0.00000000],[1745455971000,0.00000000],[1745456250000,0.00000000],[1745456560000,0.00000000],[1745456870000,0.00000000],[1745457211000,0.00000000],[1745457459000,0.00000000],[1745457770000,0.00000000],[1745458080000,0.00000000],[1745458359000,0.00000000],[1745458669000,0.00000000],[1745458979000,0.00000000],[1745459258000,0.00000000],[1745459568000,0.00000000],[1745459878000,0.00000000],[1745460157000,0.00000000],[1745460467000,0.00000000],[1745460777000,0.00000000],[1745461056000,0.00000000],[1745461366000,0.00000000],[1745461676000,0.00000000],[1745461955000,0.00000000],[1745462265000,0.00000000],[1745462575000,0.00000000],[1745462885000,0.00000000],[1745463164000,0.00000000],[1745463474000,0.00000000],[1745463753000,0.00000000],[1745464063000,0.00000000],[1745464373000,0.00000000],[1745464652000,0.00000000],[1745464962000,0.00000000],[1745465272000,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: [[1745445661000,0.00000000],[1745445754000,0.00000000],[1745446064000,0.00000000],[1745446374000,0.00000000],[1745446653000,0.00000000],[1745446963000,0.00000000],[1745447273000,0.00000000],[1745447552000,0.00000000],[1745447862000,0.00000000],[1745448172000,0.00000000],[1745448451000,0.00000000],[1745448761000,0.00000000],[1745449071000,0.00000000],[1745449350000,0.00000000],[1745449660000,0.00000000],[1745449970000,0.00000000],[1745450280000,0.00000000],[1745450559000,0.00000000],[1745450869000,0.00000000],[1745451179000,0.00000000],[1745451458000,0.00000000],[1745451755000,0.00000000],[1745452065000,0.00000000],[1745452375000,0.00000000],[1745452654000,0.00000000],[1745452964000,0.00000000],[1745453274000,0.00000000],[1745453553000,0.00000000],[1745453863000,0.00000000],[1745454173000,0.00000000],[1745454452000,0.00000000],[1745454762000,0.00000000],[1745455072000,0.00000000],[1745455352000,0.00000000],[1745455661000,0.00000000],[1745455971000,0.00000000],[1745456250000,0.00000000],[1745456560000,0.00000000],[1745456870000,0.00000000],[1745457211000,0.00000000],[1745457459000,0.00000000],[1745457770000,0.00000000],[1745458080000,0.00000000],[1745458359000,0.00000000],[1745458669000,0.00000000],[1745458979000,0.00000000],[1745459258000,0.00000000],[1745459568000,0.00000000],[1745459878000,0.00000000],[1745460157000,0.00000000],[1745460467000,0.00000000],[1745460777000,0.00000000],[1745461056000,0.00000000],[1745461366000,0.00000000],[1745461676000,0.00000000],[1745461955000,0.00000000],[1745462265000,0.00000000],[1745462575000,0.00000000],[1745462885000,0.00000000],[1745463164000,0.00000000],[1745463474000,0.00000000],[1745463753000,0.00000000],[1745464063000,0.00000000],[1745464373000,0.00000000],[1745464652000,0.00000000],[1745464962000,0.00000000],[1745465272000,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; }