var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1746050456000,11.55000000],[1746050568000,11.36000000],[1746050872000,10.90000000],[1746051176000,10.44000000],[1746051451000,10.32000000],[1746051768000,10.36000000],[1746052072000,10.46000000],[1746052376000,10.32000000],[1746052664000,10.30000000],[1746052968000,10.12000000],[1746053272000,10.00000000],[1746053576000,10.00000000],[1746053864000,10.10000000],[1746054168000,10.18000000],[1746054472000,9.86000000],[1746054776000,9.70000000],[1746055064000,9.76000000],[1746055368000,9.70000000],[1746055672000,9.38000000],[1746055976000,9.02000000],[1746056264000,9.00000000],[1746056568000,9.08000000],[1746056872000,8.90000000],[1746057176000,8.80000000],[1746057464000,8.78000000],[1746057768000,8.64000000],[1746058072000,8.48000000],[1746058376000,8.30000000],[1746058664000,8.20000000],[1746058968000,8.02000000],[1746059272000,8.00000000],[1746059576000,7.96000000],[1746059864000,7.88000000],[1746060168000,7.74000000],[1746060472000,7.80000000],[1746060760000,7.74000000],[1746061064000,7.78000000],[1746061368000,7.80000000],[1746061672000,7.72000000],[1746061976000,7.74000000],[1746062264000,7.80000000],[1746062568000,7.74000000],[1746062872000,7.66000000],[1746063176000,7.52000000],[1746063464000,7.28000000],[1746063768000,7.24000000],[1746064072000,7.18000000],[1746064376000,7.08000000],[1746064664000,7.00000000],[1746064968000,7.02000000],[1746065272000,7.12000000],[1746065576000,7.16000000],[1746065864000,7.16000000],[1746066168000,7.10000000],[1746066472000,7.10000000],[1746066776000,7.10000000],[1746067064000,7.10000000],[1746067368000,7.02000000],[1746067672000,6.92000000],[1746067976000,6.90000000],[1746068251000,6.90000000],[1746068568000,6.88000000],[1746068872000,6.50000000],[1746069176000,6.22000000],[1746069464000,6.26000000],[1746069768000,6.28000000],[1746070072000,6.40000000],[1746070376000,6.40000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1746050456000,7.2],[1746050568000,7.2],[1746050872000,7.1],[1746051176000,7],[1746051451000,7.1],[1746051768000,7.1],[1746052072000,7.1],[1746052376000,7],[1746052664000,7],[1746052968000,7],[1746053272000,7],[1746053576000,7],[1746053864000,7.1],[1746054168000,7.1],[1746054472000,7],[1746054776000,7],[1746055064000,7.1],[1746055368000,7],[1746055672000,6.9],[1746055976000,6.7],[1746056264000,6.9],[1746056568000,6.9],[1746056872000,6.8],[1746057176000,6.9],[1746057464000,6.9],[1746057768000,6.9],[1746058072000,6.9],[1746058376000,6.7],[1746058664000,6.8],[1746058968000,6.6],[1746059272000,6.7],[1746059576000,6.7],[1746059864000,6.6],[1746060168000,6.5],[1746060472000,6.7],[1746060760000,6.7],[1746061064000,6.7],[1746061368000,6.7],[1746061672000,6.6],[1746061976000,6.7],[1746062264000,6.7],[1746062568000,6.7],[1746062872000,6.6],[1746063176000,6.4],[1746063464000,6.3],[1746063768000,6.3],[1746064072000,6.3],[1746064376000,6.3],[1746064664000,6.2],[1746064968000,6.4],[1746065272000,6.5],[1746065576000,6.6],[1746065864000,6.4],[1746066168000,6.3],[1746066472000,6.3],[1746066776000,6.3],[1746067064000,6.3],[1746067368000,6.3],[1746067672000,6.2],[1746067976000,6.3],[1746068251000,6.3],[1746068568000,6.3],[1746068872000,5.9],[1746069176000,5.6],[1746069464000,5.7],[1746069768000,5.8],[1746070072000,6],[1746070376000,6],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1746050456000,75.00000000],[1746050568000,76.00000000],[1746050872000,77.40000000],[1746051176000,79.60000000],[1746051451000,80.80000000],[1746051768000,80.40000000],[1746052072000,80.00000000],[1746052376000,80.00000000],[1746052664000,80.00000000],[1746052968000,81.00000000],[1746053272000,81.60000000],[1746053576000,82.00000000],[1746053864000,81.80000000],[1746054168000,81.20000000],[1746054472000,82.60000000],[1746054776000,83.60000000],[1746055064000,83.40000000],[1746055368000,83.40000000],[1746055672000,84.40000000],[1746055976000,85.80000000],[1746056264000,87.00000000],[1746056568000,86.40000000],[1746056872000,86.80000000],[1746057176000,88.00000000],[1746057464000,88.20000000],[1746057768000,89.00000000],[1746058072000,89.80000000],[1746058376000,90.00000000],[1746058664000,91.00000000],[1746058968000,91.00000000],[1746059272000,91.60000000],[1746059576000,92.00000000],[1746059864000,92.00000000],[1746060168000,92.20000000],[1746060472000,93.00000000],[1746060760000,93.00000000],[1746061064000,93.00000000],[1746061368000,93.00000000],[1746061672000,93.00000000],[1746061976000,93.00000000],[1746062264000,93.00000000],[1746062568000,93.00000000],[1746062872000,93.00000000],[1746063176000,93.00000000],[1746063464000,93.40000000],[1746063768000,94.00000000],[1746064072000,94.00000000],[1746064376000,95.00000000],[1746064664000,95.00000000],[1746064968000,96.00000000],[1746065272000,96.00000000],[1746065576000,96.00000000],[1746065864000,95.20000000],[1746066168000,95.00000000],[1746066472000,95.00000000],[1746066776000,95.00000000],[1746067064000,95.00000000],[1746067368000,95.00000000],[1746067672000,95.00000000],[1746067976000,96.00000000],[1746068251000,96.00000000],[1746068568000,96.00000000],[1746068872000,95.80000000],[1746069176000,96.00000000],[1746069464000,96.20000000],[1746069768000,97.00000000],[1746070072000,97.00000000],[1746070376000,97.00000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1746050456000,1019.4],[1746050568000,1019.4],[1746050872000,1019.5],[1746051176000,1019.5],[1746051451000,1019.5],[1746051768000,1019.6],[1746052072000,1019.5],[1746052376000,1019.5],[1746052664000,1019.5],[1746052968000,1019.5],[1746053272000,1019.5],[1746053576000,1019.5],[1746053864000,1019.6],[1746054168000,1019.5],[1746054472000,1019.7],[1746054776000,1019.6],[1746055064000,1019.5],[1746055368000,1019.4],[1746055672000,1019.5],[1746055976000,1019.5],[1746056264000,1019.5],[1746056568000,1019.5],[1746056872000,1019.5],[1746057176000,1019.5],[1746057464000,1019.6],[1746057768000,1019.6],[1746058072000,1019.6],[1746058376000,1019.6],[1746058664000,1019.6],[1746058968000,1019.6],[1746059272000,1019.6],[1746059576000,1019.6],[1746059864000,1019.6],[1746060168000,1019.6],[1746060472000,1019.7],[1746060760000,1019.7],[1746061064000,1019.7],[1746061368000,1019.7],[1746061672000,1019.8],[1746061976000,1019.8],[1746062264000,1019.7],[1746062568000,1019.7],[1746062872000,1019.8],[1746063176000,1019.8],[1746063464000,1019.8],[1746063768000,1019.8],[1746064072000,1019.7],[1746064376000,1019.7],[1746064664000,1019.7],[1746064968000,1019.7],[1746065272000,1019.7],[1746065576000,1019.7],[1746065864000,1019.7],[1746066168000,1019.6],[1746066472000,1019.6],[1746066776000,1019.6],[1746067064000,1019.6],[1746067368000,1019.6],[1746067672000,1019.6],[1746067976000,1019.7],[1746068251000,1019.7],[1746068568000,1019.7],[1746068872000,1019.7],[1746069176000,1019.7],[1746069464000,1019.8],[1746069768000,1019.8],[1746070072000,1019.8],[1746070376000,1019.9],], 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: [[1746050456000,0],[1746050568000,0],[1746050872000,0],[1746051176000,0],[1746051451000,0],[1746051768000,0],[1746052072000,0.216],[1746052376000,0],[1746052664000,0],[1746052968000,0],[1746053272000,0],[1746053576000,0],[1746053864000,0],[1746054168000,0],[1746054472000,0],[1746054776000,0],[1746055064000,0],[1746055368000,0],[1746055672000,0],[1746055976000,0],[1746056264000,0],[1746056568000,0],[1746056872000,0],[1746057176000,0],[1746057464000,0],[1746057768000,0],[1746058072000,0],[1746058376000,0],[1746058664000,0],[1746058968000,0],[1746059272000,0],[1746059576000,0],[1746059864000,0],[1746060168000,0],[1746060472000,0],[1746060760000,0],[1746061064000,0],[1746061368000,0],[1746061672000,0],[1746061976000,0],[1746062264000,0],[1746062568000,0],[1746062872000,0],[1746063176000,0],[1746063464000,0],[1746063768000,0],[1746064072000,0],[1746064376000,0],[1746064664000,0],[1746064968000,0],[1746065272000,0],[1746065576000,0],[1746065864000,0],[1746066168000,0],[1746066472000,0],[1746066776000,0],[1746067064000,0],[1746067368000,0],[1746067672000,0],[1746067976000,0],[1746068251000,0],[1746068568000,0],[1746068872000,0],[1746069176000,0],[1746069464000,0],[1746069768000,0],[1746070072000,0],[1746070376000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1746050456000,0],[1746050568000,0],[1746050872000,0],[1746051176000,0],[1746051451000,0],[1746051768000,0],[1746052072000,0.36],[1746052376000,0],[1746052664000,0],[1746052968000,0],[1746053272000,0],[1746053576000,0],[1746053864000,0],[1746054168000,0],[1746054472000,0],[1746054776000,0],[1746055064000,0],[1746055368000,0],[1746055672000,0],[1746055976000,0],[1746056264000,0],[1746056568000,0],[1746056872000,0],[1746057176000,0],[1746057464000,0],[1746057768000,0],[1746058072000,0],[1746058376000,0],[1746058664000,0],[1746058968000,0],[1746059272000,0],[1746059576000,0],[1746059864000,0],[1746060168000,0],[1746060472000,0],[1746060760000,0],[1746061064000,0],[1746061368000,0],[1746061672000,0],[1746061976000,0],[1746062264000,0],[1746062568000,0],[1746062872000,0],[1746063176000,0],[1746063464000,0],[1746063768000,0],[1746064072000,0],[1746064376000,0],[1746064664000,0],[1746064968000,0],[1746065272000,0],[1746065576000,0],[1746065864000,0],[1746066168000,0],[1746066472000,0],[1746066776000,0],[1746067064000,0],[1746067368000,0],[1746067672000,0],[1746067976000,0],[1746068251000,0],[1746068568000,0],[1746068872000,0],[1746069176000,0],[1746069464000,0],[1746069768000,0],[1746070072000,0],[1746070376000,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: [[1746050456000,51.00000000],[1746050568000,52.00000000],[1746050872000,52.80000000],[1746051176000,52.60000000],[1746051451000,52.00000000],[1746051768000,111.00000000],[1746052072000,42.00000000],[1746052376000,163.00000000],[1746052664000,66.40000000],[1746052968000,76.00000000],[1746053272000,76.00000000],[1746053576000,52.60000000],[1746053864000,39.00000000],[1746054168000,46.60000000],[1746054472000,62.00000000],[1746054776000,57.60000000],[1746055064000,47.60000000],[1746055368000,44.60000000],[1746055672000,40.80000000],[1746055976000,60.80000000],[1746056264000,56.60000000],[1746056568000,49.60000000],[1746056872000,46.80000000],[1746057176000,50.00000000],[1746057464000,57.20000000],[1746057768000,58.20000000],[1746058072000,57.80000000],[1746058376000,58.00000000],[1746058664000,57.80000000],[1746058968000,57.80000000],[1746059272000,58.00000000],[1746059576000,58.00000000],[1746059864000,58.00000000],[1746060168000,58.00000000],[1746060472000,58.00000000],[1746060760000,58.00000000],[1746061064000,57.00000000],[1746061368000,57.20000000],[1746061672000,57.20000000],[1746061976000,42.40000000],[1746062264000,46.00000000],[1746062568000,46.80000000],[1746062872000,47.20000000],[1746063176000,64.60000000],[1746063464000,64.00000000],[1746063768000,64.00000000],[1746064072000,64.00000000],[1746064376000,63.00000000],[1746064664000,62.00000000],[1746064968000,55.00000000],[1746065272000,51.60000000],[1746065576000,48.20000000],[1746065864000,45.00000000],[1746066168000,45.00000000],[1746066472000,44.00000000],[1746066776000,44.60000000],[1746067064000,45.80000000],[1746067368000,46.00000000],[1746067672000,46.00000000],[1746067976000,46.00000000],[1746068251000,45.80000000],[1746068568000,46.00000000],[1746068872000,46.00000000],[1746069176000,46.00000000],[1746069464000,46.00000000],[1746069768000,46.00000000],[1746070072000,46.00000000],[1746070376000,46.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: [[1746050456000,0.00000000],[1746050568000,0.00000000],[1746050872000,0.00000000],[1746051176000,0.00000000],[1746051451000,0.00000000],[1746051768000,0.00000000],[1746052072000,0.00000000],[1746052376000,0.00000000],[1746052664000,0.00000000],[1746052968000,0.00000000],[1746053272000,0.00000000],[1746053576000,0.00000000],[1746053864000,0.00000000],[1746054168000,0.00000000],[1746054472000,0.00000000],[1746054776000,0.00000000],[1746055064000,0.00000000],[1746055368000,0.00000000],[1746055672000,0.00000000],[1746055976000,0.00000000],[1746056264000,0.00000000],[1746056568000,0.00000000],[1746056872000,0.00000000],[1746057176000,0.00000000],[1746057464000,0.00000000],[1746057768000,0.00000000],[1746058072000,0.00000000],[1746058376000,0.00000000],[1746058664000,0.00000000],[1746058968000,0.00000000],[1746059272000,0.00000000],[1746059576000,0.00000000],[1746059864000,0.00000000],[1746060168000,0.00000000],[1746060472000,0.00000000],[1746060760000,0.00000000],[1746061064000,0.00000000],[1746061368000,0.00000000],[1746061672000,0.00000000],[1746061976000,0.00000000],[1746062264000,0.00000000],[1746062568000,0.00000000],[1746062872000,0.00000000],[1746063176000,0.00000000],[1746063464000,0.00000000],[1746063768000,0.00000000],[1746064072000,0.00000000],[1746064376000,0.00000000],[1746064664000,0.00000000],[1746064968000,0.00000000],[1746065272000,0.00000000],[1746065576000,0.00000000],[1746065864000,0.00000000],[1746066168000,0.00000000],[1746066472000,0.00000000],[1746066776000,0.00000000],[1746067064000,0.00000000],[1746067368000,0.00000000],[1746067672000,0.00000000],[1746067976000,0.00000000],[1746068251000,0.00000000],[1746068568000,0.00000000],[1746068872000,0.00000000],[1746069176000,0.00000000],[1746069464000,0.40000000],[1746069768000,1.80000000],[1746070072000,3.80000000],[1746070376000,5.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: [[1746050456000,0.00000000],[1746050568000,0.00000000],[1746050872000,0.00000000],[1746051176000,0.00000000],[1746051451000,0.00000000],[1746051768000,0.00000000],[1746052072000,0.00000000],[1746052376000,0.00000000],[1746052664000,0.00000000],[1746052968000,0.00000000],[1746053272000,0.00000000],[1746053576000,0.00000000],[1746053864000,0.00000000],[1746054168000,0.00000000],[1746054472000,0.00000000],[1746054776000,0.00000000],[1746055064000,0.00000000],[1746055368000,0.00000000],[1746055672000,0.00000000],[1746055976000,0.00000000],[1746056264000,0.00000000],[1746056568000,0.00000000],[1746056872000,0.00000000],[1746057176000,0.00000000],[1746057464000,0.00000000],[1746057768000,0.00000000],[1746058072000,0.00000000],[1746058376000,0.00000000],[1746058664000,0.00000000],[1746058968000,0.00000000],[1746059272000,0.00000000],[1746059576000,0.00000000],[1746059864000,0.00000000],[1746060168000,0.00000000],[1746060472000,0.00000000],[1746060760000,0.00000000],[1746061064000,0.00000000],[1746061368000,0.00000000],[1746061672000,0.00000000],[1746061976000,0.00000000],[1746062264000,0.00000000],[1746062568000,0.00000000],[1746062872000,0.00000000],[1746063176000,0.00000000],[1746063464000,0.00000000],[1746063768000,0.00000000],[1746064072000,0.00000000],[1746064376000,0.00000000],[1746064664000,0.00000000],[1746064968000,0.00000000],[1746065272000,0.00000000],[1746065576000,0.00000000],[1746065864000,0.00000000],[1746066168000,0.00000000],[1746066472000,0.00000000],[1746066776000,0.00000000],[1746067064000,0.00000000],[1746067368000,0.00000000],[1746067672000,0.00000000],[1746067976000,0.00000000],[1746068251000,0.00000000],[1746068568000,0.00000000],[1746068872000,0.00000000],[1746069176000,0.00000000],[1746069464000,0.00000000],[1746069768000,0.00000000],[1746070072000,0.00000000],[1746070376000,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: [[1746050456000,0.00000000],[1746050568000,0.00000000],[1746050872000,0.00000000],[1746051176000,0.00000000],[1746051451000,0.00000000],[1746051768000,0.00000000],[1746052072000,0.00000000],[1746052376000,0.00000000],[1746052664000,0.00000000],[1746052968000,0.00000000],[1746053272000,0.00000000],[1746053576000,0.00000000],[1746053864000,0.00000000],[1746054168000,0.00000000],[1746054472000,0.00000000],[1746054776000,0.00000000],[1746055064000,0.00000000],[1746055368000,0.00000000],[1746055672000,0.00000000],[1746055976000,0.00000000],[1746056264000,0.00000000],[1746056568000,0.00000000],[1746056872000,0.00000000],[1746057176000,0.00000000],[1746057464000,0.00000000],[1746057768000,0.00000000],[1746058072000,0.00000000],[1746058376000,0.00000000],[1746058664000,0.00000000],[1746058968000,0.00000000],[1746059272000,0.00000000],[1746059576000,0.00000000],[1746059864000,0.00000000],[1746060168000,0.00000000],[1746060472000,0.00000000],[1746060760000,0.00000000],[1746061064000,0.00000000],[1746061368000,0.00000000],[1746061672000,0.00000000],[1746061976000,0.00000000],[1746062264000,0.00000000],[1746062568000,0.00000000],[1746062872000,0.00000000],[1746063176000,0.00000000],[1746063464000,0.00000000],[1746063768000,0.00000000],[1746064072000,0.00000000],[1746064376000,0.00000000],[1746064664000,0.00000000],[1746064968000,0.00000000],[1746065272000,0.00000000],[1746065576000,0.00000000],[1746065864000,0.00000000],[1746066168000,0.00000000],[1746066472000,0.00000000],[1746066776000,0.00000000],[1746067064000,0.00000000],[1746067368000,0.00000000],[1746067672000,0.00000000],[1746067976000,0.00000000],[1746068251000,0.00000000],[1746068568000,0.00000000],[1746068872000,0.00000000],[1746069176000,0.00000000],[1746069464000,0.00000000],[1746069768000,0.00000000],[1746070072000,0.00000000],[1746070376000,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; }