var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1775512822000,7.95000000],[1775513126000,7.70000000],[1775513253000,7.54000000],[1775513606000,7.74000000],[1775513879000,7.35000000],[1775514230000,7.26000000],[1775514614000,8.03333333],[1775514790000,8.20000000],[1775515190000,7.76666667],[1775515382000,7.68000000],[1775515686000,8.00000000],[1775516327000,7.30000000],[1775516630000,6.70000000],[1775516902000,6.80000000],[1775517206000,6.52500000],[1775517510000,6.70000000],[1775517750000,6.40000000],[1775518102000,5.90000000],[1775518406000,5.76666667],[1775518678000,5.44285714],[1775518950000,6.05000000],[1775519302000,6.40000000],[1775519574000,6.83750000],[1775519878000,7.18571429],[1775520150000,7.02500000],[1775520502000,6.90000000],[1775520774000,6.43750000],[1775521078000,5.27142857],[1775521350000,4.08750000],[1775521702000,3.21428571],[1775521974000,2.95000000],[1775522278000,3.22857143],[1775522550000,3.72500000],[1775522902000,3.65714286],[1775523174000,3.26250000],[1775523478000,3.31250000],[1775523750000,2.98333333],[1775524102000,2.58000000],[1775524374000,3.30000000],[1775524694000,3.32500000],[1775524950000,3.50000000],[1775525334000,4.20000000],[1775525590000,3.64000000],[1775525910000,3.93333333],[1775526326000,3.16666667],[1775526453000,3.51666667],[1775526806000,3.82000000],[1775527110000,3.22500000],[1775527350000,3.20000000],[1775527734000,2.42500000],[1775527974000,2.72500000],[1775528278000,3.06666667],[1775528550000,2.98750000],[1775528903000,2.50000000],[1775529174000,2.08571429],[1775529478000,2.80000000],[1775529750000,2.60000000],[1775530070000,2.74000000],[1775530406000,2.35000000],[1775530678000,1.87142857],[1775530951000,1.60000000],[1775531302000,1.84285714],[1775531574000,2.31250000],[1775531878000,1.58571429],[1775532150000,1.65714286],[1775532502000,1.74285714],[1775532774000,1.36000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1775512822000,-6.2],[1775513126000,-6.3],[1775513253000,-6.3],[1775513606000,-5.8],[1775513879000,-6.1],[1775514230000,-6.3],[1775514614000,-6.3],[1775514790000,-6.1],[1775515190000,-6.1],[1775515382000,-6],[1775515686000,-5.7],[1775516327000,-5],[1775516630000,-6],[1775516902000,-5.3],[1775517206000,-6.2],[1775517510000,-5.9],[1775517750000,-5.8],[1775518102000,-6],[1775518406000,-4.9],[1775518678000,-5.5],[1775518950000,-6],[1775519302000,-6],[1775519574000,-5.9],[1775519878000,-5.6],[1775520150000,-5.5],[1775520502000,-5.4],[1775520774000,-4.5],[1775521078000,-3.9],[1775521350000,-3.8],[1775521702000,-4.1],[1775521974000,-4.2],[1775522278000,-4.5],[1775522550000,-4.7],[1775522902000,-4.3],[1775523174000,-4.4],[1775523478000,-4.6],[1775523750000,-3.8],[1775524102000,-4.4],[1775524374000,-4.8],[1775524694000,-4.7],[1775524950000,-4.6],[1775525334000,-3.9],[1775525590000,-5],[1775525910000,-4],[1775526326000,-4.2],[1775526453000,-4.7],[1775526806000,-4.2],[1775527110000,-4.3],[1775527350000,-3.9],[1775527734000,-4],[1775527974000,-4.6],[1775528278000,-4.1],[1775528550000,-4.4],[1775528903000,-3.6],[1775529174000,-4.2],[1775529478000,-4.2],[1775529750000,-4.1],[1775530070000,-4.1],[1775530406000,-3.8],[1775530678000,-3.7],[1775530951000,-3.9],[1775531302000,-4.1],[1775531574000,-3.9],[1775531878000,-3.8],[1775532150000,-4.1],[1775532502000,-3.8],[1775532774000,-3.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: [[1775512822000,36.25000000],[1775513126000,36.75000000],[1775513253000,37.20000000],[1775513606000,38.00000000],[1775513879000,38.25000000],[1775514230000,37.80000000],[1775514614000,36.00000000],[1775514790000,36.00000000],[1775515190000,37.00000000],[1775515382000,37.60000000],[1775515686000,37.75000000],[1775516327000,41.50000000],[1775516630000,40.20000000],[1775516902000,42.20000000],[1775517206000,40.00000000],[1775517510000,40.40000000],[1775517750000,41.60000000],[1775518102000,42.60000000],[1775518406000,46.66666667],[1775518678000,45.71428571],[1775518950000,42.12500000],[1775519302000,41.16666667],[1775519574000,40.00000000],[1775519878000,40.14285714],[1775520150000,41.00000000],[1775520502000,41.57142857],[1775520774000,45.75000000],[1775521078000,52.00000000],[1775521350000,56.75000000],[1775521702000,59.00000000],[1775521974000,59.62500000],[1775522278000,57.28571429],[1775522550000,54.50000000],[1775522902000,56.28571429],[1775523174000,57.62500000],[1775523478000,56.50000000],[1775523750000,61.33333333],[1775524102000,60.40000000],[1775524374000,55.66666667],[1775524694000,56.25000000],[1775524950000,56.00000000],[1775525334000,56.00000000],[1775525590000,53.60000000],[1775525910000,56.66666667],[1775526326000,58.66666667],[1775526453000,55.50000000],[1775526806000,56.40000000],[1775527110000,58.00000000],[1775527350000,60.16666667],[1775527734000,62.75000000],[1775527974000,59.12500000],[1775528278000,59.50000000],[1775528550000,58.87500000],[1775528903000,64.28571429],[1775529174000,63.28571429],[1775529478000,60.28571429],[1775529750000,61.71428571],[1775530070000,61.00000000],[1775530406000,64.16666667],[1775530678000,66.85714286],[1775530951000,67.22222222],[1775531302000,64.85714286],[1775531574000,63.87500000],[1775531878000,67.71428571],[1775532150000,66.14285714],[1775532502000,67.00000000],[1775532774000,69.60000000],], 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: [[1775512822000,1024],[1775513126000,1024.1],[1775513253000,1024],[1775513606000,1024.1],[1775513879000,1024.2],[1775514230000,1024.2],[1775514614000,1024.2],[1775514790000,1024.1],[1775515190000,1024.3],[1775515382000,1024.3],[1775515686000,1024.2],[1775516327000,1024.3],[1775516630000,1024.6],[1775516902000,1024.6],[1775517206000,1024.7],[1775517510000,1024.6],[1775517750000,1024.7],[1775518102000,1024.6],[1775518406000,1024.7],[1775518678000,1024.8],[1775518950000,1024.7],[1775519302000,1024.6],[1775519574000,1024.7],[1775519878000,1024.6],[1775520150000,1024.5],[1775520502000,1024.5],[1775520774000,1024.6],[1775521078000,1024.7],[1775521350000,1024.9],[1775521702000,1025.1],[1775521974000,1025.1],[1775522278000,1025.1],[1775522550000,1025],[1775522902000,1024.9],[1775523174000,1025.1],[1775523478000,1025.1],[1775523750000,1025.2],[1775524102000,1025.3],[1775524374000,1025],[1775524694000,1025],[1775524950000,1025],[1775525334000,1024.8],[1775525590000,1025.1],[1775525910000,1024.9],[1775526326000,1025.1],[1775526453000,1025],[1775526806000,1025],[1775527110000,1025.1],[1775527350000,1025.2],[1775527734000,1025.2],[1775527974000,1025.2],[1775528278000,1025.1],[1775528550000,1025.1],[1775528903000,1025.2],[1775529174000,1025.3],[1775529478000,1025.2],[1775529750000,1025.1],[1775530070000,1025.2],[1775530406000,1025.2],[1775530678000,1025.3],[1775530951000,1025.3],[1775531302000,1025.3],[1775531574000,1025.2],[1775531878000,1025.3],[1775532150000,1025.2],[1775532502000,1025.2],[1775532774000,1025.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: [[1775512822000,0.09],[1775513126000,0],[1775513253000,0.072],[1775513606000,0.864],[1775513879000,0.63],[1775514230000,2.664],[1775514614000,0.479999988],[1775514790000,1.08],[1775515190000,0.119999988],[1775515382000,2.16],[1775515686000,3.06],[1775516327000,0],[1775516630000,0.648],[1775516902000,0],[1775517206000,0],[1775517510000,0],[1775517750000,0],[1775518102000,0],[1775518406000,0],[1775518678000,0.205714296],[1775518950000,0],[1775519302000,0.420000012],[1775519574000,0.405],[1775519878000,1.851428556],[1775520150000,2.25],[1775520502000,0.565714296],[1775520774000,0.09],[1775521078000,0.051428556],[1775521350000,0],[1775521702000,0],[1775521974000,0],[1775522278000,0.102857148],[1775522550000,0],[1775522902000,0.051428556],[1775523174000,0],[1775523478000,0],[1775523750000,0.299999988],[1775524102000,0],[1775524374000,0],[1775524694000,0],[1775524950000,0],[1775525334000,1.320000012],[1775525590000,0],[1775525910000,0],[1775526326000,0],[1775526453000,0.119999988],[1775526806000,1.296],[1775527110000,0.45],[1775527350000,0.36],[1775527734000,0],[1775527974000,0.09],[1775528278000,0.420000012],[1775528550000,0.135],[1775528903000,1.234285704],[1775529174000,0.102857148],[1775529478000,0.668571444],[1775529750000,0.411428556],[1775530070000,0.576],[1775530406000,0.839999988],[1775530678000,0],[1775530951000,0],[1775531302000,0],[1775531574000,0.675],[1775531878000,0],[1775532150000,0.051428556],[1775532502000,0],[1775532774000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1775512822000,0.63],[1775513126000,0],[1775513253000,0.504],[1775513606000,1.512],[1775513879000,0.63],[1775514230000,3.024],[1775514614000,0.839999988],[1775514790000,1.26],[1775515190000,0.839999988],[1775515382000,3.024],[1775515686000,3.78],[1775516327000,0],[1775516630000,1.008],[1775516902000,0],[1775517206000,0],[1775517510000,0],[1775517750000,0],[1775518102000,0],[1775518406000,0],[1775518678000,0.36],[1775518950000,0],[1775519302000,0.839999988],[1775519574000,0.63],[1775519878000,2.16],[1775520150000,2.52],[1775520502000,2.16],[1775520774000,0.63],[1775521078000,0.36],[1775521350000,0],[1775521702000,0],[1775521974000,0],[1775522278000,0.72],[1775522550000,0],[1775522902000,0.36],[1775523174000,0],[1775523478000,0],[1775523750000,0.839999988],[1775524102000,0],[1775524374000,0],[1775524694000,0],[1775524950000,0],[1775525334000,1.680000012],[1775525590000,0],[1775525910000,0],[1775526326000,0],[1775526453000,0.420000012],[1775526806000,2.016],[1775527110000,1.26],[1775527350000,0.420000012],[1775527734000,0],[1775527974000,0.63],[1775528278000,0.420000012],[1775528550000,0.63],[1775528903000,1.44],[1775529174000,0.72],[1775529478000,1.08],[1775529750000,0.72],[1775530070000,1.008],[1775530406000,2.099999988],[1775530678000,0],[1775530951000,0],[1775531302000,0],[1775531574000,0.945],[1775531878000,0],[1775532150000,0.36],[1775532502000,0],[1775532774000,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: [[1775512822000,322.00000000],[1775513126000,308.25000000],[1775513253000,302.80000000],[1775513606000,294.80000000],[1775513879000,304.50000000],[1775514230000,313.40000000],[1775514614000,308.66666667],[1775514790000,284.00000000],[1775515190000,323.00000000],[1775515382000,220.80000000],[1775515686000,268.25000000],[1775516327000,293.25000000],[1775516630000,322.00000000],[1775516902000,303.20000000],[1775517206000,304.75000000],[1775517510000,314.60000000],[1775517750000,313.00000000],[1775518102000,309.80000000],[1775518406000,309.33333333],[1775518678000,318.71428571],[1775518950000,320.87500000],[1775519302000,333.33333333],[1775519574000,345.25000000],[1775519878000,348.42857143],[1775520150000,350.87500000],[1775520502000,339.71428571],[1775520774000,317.25000000],[1775521078000,309.42857143],[1775521350000,310.50000000],[1775521702000,304.00000000],[1775521974000,310.00000000],[1775522278000,334.28571429],[1775522550000,329.50000000],[1775522902000,307.85714286],[1775523174000,306.62500000],[1775523478000,303.00000000],[1775523750000,295.50000000],[1775524102000,312.60000000],[1775524374000,317.66666667],[1775524694000,308.75000000],[1775524950000,301.00000000],[1775525334000,291.00000000],[1775525590000,323.00000000],[1775525910000,310.66666667],[1775526326000,315.66666667],[1775526453000,312.83333333],[1775526806000,296.00000000],[1775527110000,303.00000000],[1775527350000,295.00000000],[1775527734000,301.25000000],[1775527974000,303.62500000],[1775528278000,295.83333333],[1775528550000,308.62500000],[1775528903000,288.28571429],[1775529174000,303.85714286],[1775529478000,310.71428571],[1775529750000,299.00000000],[1775530070000,296.60000000],[1775530406000,289.50000000],[1775530678000,289.28571429],[1775530951000,298.77777778],[1775531302000,302.00000000],[1775531574000,292.75000000],[1775531878000,291.00000000],[1775532150000,297.14285714],[1775532502000,297.85714286],[1775532774000,297.80000000],], 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: [[1775512822000,0.00000000],[1775513126000,0.00000000],[1775513253000,0.00000000],[1775513606000,0.00000000],[1775513879000,0.00000000],[1775514230000,0.00000000],[1775514614000,0.00000000],[1775514790000,0.00000000],[1775515190000,0.00000000],[1775515382000,0.00000000],[1775515686000,0.00000000],[1775516327000,0.00000000],[1775516630000,0.00000000],[1775516902000,0.00000000],[1775517206000,0.00000000],[1775517510000,0.00000000],[1775517750000,0.00000000],[1775518102000,0.00000000],[1775518406000,0.00000000],[1775518678000,0.00000000],[1775518950000,0.00000000],[1775519302000,0.00000000],[1775519574000,0.00000000],[1775519878000,0.00000000],[1775520150000,0.00000000],[1775520502000,0.00000000],[1775520774000,0.00000000],[1775521078000,0.00000000],[1775521350000,0.00000000],[1775521702000,0.00000000],[1775521974000,0.00000000],[1775522278000,0.00000000],[1775522550000,0.00000000],[1775522902000,0.00000000],[1775523174000,0.00000000],[1775523478000,0.00000000],[1775523750000,0.00000000],[1775524102000,0.00000000],[1775524374000,0.00000000],[1775524694000,0.00000000],[1775524950000,0.00000000],[1775525334000,0.00000000],[1775525590000,0.00000000],[1775525910000,0.00000000],[1775526326000,0.00000000],[1775526453000,0.00000000],[1775526806000,0.00000000],[1775527110000,0.00000000],[1775527350000,0.00000000],[1775527734000,0.00000000],[1775527974000,0.00000000],[1775528278000,0.00000000],[1775528550000,0.00000000],[1775528903000,0.00000000],[1775529174000,0.00000000],[1775529478000,0.00000000],[1775529750000,0.00000000],[1775530070000,0.00000000],[1775530406000,0.00000000],[1775530678000,0.00000000],[1775530951000,0.00000000],[1775531302000,0.00000000],[1775531574000,0.00000000],[1775531878000,0.00000000],[1775532150000,0.00000000],[1775532502000,0.00000000],[1775532774000,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: [[1775512822000,0.00000000],[1775513126000,0.00000000],[1775513253000,0.00000000],[1775513606000,0.00000000],[1775513879000,0.00000000],[1775514230000,0.00000000],[1775514614000,0.00000000],[1775514790000,0.00000000],[1775515190000,0.00000000],[1775515382000,0.00000000],[1775515686000,0.00000000],[1775516327000,0.00000000],[1775516630000,0.00000000],[1775516902000,0.00000000],[1775517206000,0.00000000],[1775517510000,0.00000000],[1775517750000,0.00000000],[1775518102000,0.00000000],[1775518406000,0.00000000],[1775518678000,0.00000000],[1775518950000,0.00000000],[1775519302000,0.00000000],[1775519574000,0.00000000],[1775519878000,0.00000000],[1775520150000,0.00000000],[1775520502000,0.00000000],[1775520774000,0.00000000],[1775521078000,0.00000000],[1775521350000,0.00000000],[1775521702000,0.00000000],[1775521974000,0.00000000],[1775522278000,0.00000000],[1775522550000,0.00000000],[1775522902000,0.00000000],[1775523174000,0.00000000],[1775523478000,0.00000000],[1775523750000,0.00000000],[1775524102000,0.00000000],[1775524374000,0.00000000],[1775524694000,0.00000000],[1775524950000,0.00000000],[1775525334000,0.00000000],[1775525590000,0.00000000],[1775525910000,0.00000000],[1775526326000,0.00000000],[1775526453000,0.00000000],[1775526806000,0.00000000],[1775527110000,0.00000000],[1775527350000,0.00000000],[1775527734000,0.00000000],[1775527974000,0.00000000],[1775528278000,0.00000000],[1775528550000,0.00000000],[1775528903000,0.00000000],[1775529174000,0.00000000],[1775529478000,0.00000000],[1775529750000,0.00000000],[1775530070000,0.00000000],[1775530406000,0.00000000],[1775530678000,0.00000000],[1775530951000,0.00000000],[1775531302000,0.00000000],[1775531574000,0.00000000],[1775531878000,0.00000000],[1775532150000,0.00000000],[1775532502000,0.00000000],[1775532774000,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: [[1775512822000,0.00000000],[1775513126000,0.00000000],[1775513253000,0.00000000],[1775513606000,0.00000000],[1775513879000,0.00000000],[1775514230000,0.00000000],[1775514614000,0.00000000],[1775514790000,0.00000000],[1775515190000,0.00000000],[1775515382000,0.00000000],[1775515686000,0.00000000],[1775516327000,0.00000000],[1775516630000,0.00000000],[1775516902000,0.00000000],[1775517206000,0.00000000],[1775517510000,0.00000000],[1775517750000,0.00000000],[1775518102000,0.00000000],[1775518406000,0.00000000],[1775518678000,0.00000000],[1775518950000,0.00000000],[1775519302000,0.00000000],[1775519574000,0.00000000],[1775519878000,0.00000000],[1775520150000,0.00000000],[1775520502000,0.00000000],[1775520774000,0.00000000],[1775521078000,0.00000000],[1775521350000,0.00000000],[1775521702000,0.00000000],[1775521974000,0.00000000],[1775522278000,0.00000000],[1775522550000,0.00000000],[1775522902000,0.00000000],[1775523174000,0.00000000],[1775523478000,0.00000000],[1775523750000,0.00000000],[1775524102000,0.00000000],[1775524374000,0.00000000],[1775524694000,0.00000000],[1775524950000,0.00000000],[1775525334000,0.00000000],[1775525590000,0.00000000],[1775525910000,0.00000000],[1775526326000,0.00000000],[1775526453000,0.00000000],[1775526806000,0.00000000],[1775527110000,0.00000000],[1775527350000,0.00000000],[1775527734000,0.00000000],[1775527974000,0.00000000],[1775528278000,0.00000000],[1775528550000,0.00000000],[1775528903000,0.00000000],[1775529174000,0.00000000],[1775529478000,0.00000000],[1775529750000,0.00000000],[1775530070000,0.00000000],[1775530406000,0.00000000],[1775530678000,0.00000000],[1775530951000,0.00000000],[1775531302000,0.00000000],[1775531574000,0.00000000],[1775531878000,0.00000000],[1775532150000,0.00000000],[1775532502000,0.00000000],[1775532774000,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; }