var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1754863232000,22.65000000],[1754863360000,22.58000000],[1754863680000,22.70000000],[1754864000000,22.75000000],[1754864253000,22.70000000],[1754864576000,22.54000000],[1754864896000,22.35000000],[1754865152000,22.16000000],[1754865472000,22.18000000],[1754865808000,22.20000000],[1754866064000,22.26000000],[1754866384000,22.12000000],[1754866704000,21.92500000],[1754866960000,21.88000000],[1754867280000,21.58000000],[1754867600000,21.37500000],[1754867855000,21.12000000],[1754868176000,21.04000000],[1754868496000,20.85000000],[1754868752000,20.80000000],[1754869072000,20.68000000],[1754869408000,20.52500000],[1754869664000,20.54000000],[1754869984000,20.60000000],[1754870304000,20.67500000],[1754870560000,20.58000000],[1754870880000,20.60000000],[1754871200000,20.60000000],[1754871456000,20.64000000],[1754871776000,20.62000000],[1754872096000,20.52500000],[1754872352000,20.58000000],[1754872672000,20.62000000],[1754873001000,20.60000000],[1754873264000,20.60000000],[1754873584000,20.54000000],[1754873904000,20.50000000],[1754874160000,20.52000000],[1754874480000,20.54000000],[1754874800000,20.50000000],[1754875056000,20.40000000],[1754875376000,20.36000000],[1754875698000,20.30000000],[1754875952000,20.26000000],[1754876272000,20.24000000],[1754876591000,20.18000000],[1754876911000,20.12500000],[1754877167000,20.04000000],[1754877487000,20.00000000],[1754877807000,19.90000000],[1754878063000,19.80000000],[1754878383000,19.76000000],[1754878703000,19.70000000],[1754878959000,19.60000000],[1754879279000,19.50000000],[1754879599000,19.37500000],[1754879851000,19.32000000],[1754880175000,19.38000000],[1754880495000,19.30000000],[1754880751000,19.26000000],[1754881071000,19.10000000],[1754881391000,19.02000000],[1754881712000,19.02500000],[1754881967000,18.90000000],[1754882287000,18.90000000],[1754882607000,18.90000000],[1754882851000,18.80000000],[1754883167000,18.70000000],[1754883487000,18.56000000],[1754883807000,18.40000000],[1754884063000,18.00000000],[1754884383000,17.82000000],[1754884703000,17.80000000],[1754884951000,17.96000000],[1754885279000,17.94000000],[1754885599000,18.17500000],[1754885851000,18.24000000],[1754886175000,18.62000000],[1754886495000,18.93333333],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1754863232000,15.9],[1754863360000,15.7],[1754863680000,15.6],[1754864000000,15.6],[1754864253000,15.6],[1754864576000,15.4],[1754864896000,15.4],[1754865152000,15.2],[1754865472000,15],[1754865808000,14.9],[1754866064000,14.9],[1754866384000,14.9],[1754866704000,14.8],[1754866960000,14.8],[1754867280000,14.8],[1754867600000,14.7],[1754867855000,14.5],[1754868176000,14.6],[1754868496000,14.5],[1754868752000,14.4],[1754869072000,14.3],[1754869408000,14.1],[1754869664000,13.9],[1754869984000,13.7],[1754870304000,13.6],[1754870560000,13.4],[1754870880000,13.2],[1754871200000,13],[1754871456000,12.9],[1754871776000,12.8],[1754872096000,12.6],[1754872352000,12.6],[1754872672000,12.4],[1754873001000,12.5],[1754873264000,12.3],[1754873584000,12.2],[1754873904000,12.2],[1754874160000,12],[1754874480000,12.1],[1754874800000,12],[1754875056000,11.8],[1754875376000,12],[1754875698000,12],[1754875952000,11.9],[1754876272000,11.9],[1754876591000,11.9],[1754876911000,11.8],[1754877167000,11.9],[1754877487000,12],[1754877807000,11.9],[1754878063000,11.9],[1754878383000,11.8],[1754878703000,11.8],[1754878959000,11.8],[1754879279000,11.8],[1754879599000,11.9],[1754879851000,11.7],[1754880175000,11.8],[1754880495000,11.7],[1754880751000,11.8],[1754881071000,11.6],[1754881391000,11.6],[1754881712000,11.8],[1754881967000,11.7],[1754882287000,11.7],[1754882607000,11.7],[1754882851000,11.6],[1754883167000,11.7],[1754883487000,11.7],[1754883807000,11.8],[1754884063000,11.6],[1754884383000,11.8],[1754884703000,11.6],[1754884951000,11.7],[1754885279000,11.5],[1754885599000,11.7],[1754885851000,11.8],[1754886175000,11.6],[1754886495000,11.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: [[1754863232000,66.00000000],[1754863360000,65.40000000],[1754863680000,64.40000000],[1754864000000,64.00000000],[1754864253000,64.20000000],[1754864576000,64.00000000],[1754864896000,64.75000000],[1754865152000,65.00000000],[1754865472000,64.00000000],[1754865808000,63.50000000],[1754866064000,63.20000000],[1754866384000,63.80000000],[1754866704000,64.00000000],[1754866960000,64.20000000],[1754867280000,65.40000000],[1754867600000,66.00000000],[1754867855000,66.20000000],[1754868176000,66.60000000],[1754868496000,67.00000000],[1754868752000,67.00000000],[1754869072000,67.00000000],[1754869408000,66.75000000],[1754869664000,65.80000000],[1754869984000,64.80000000],[1754870304000,64.25000000],[1754870560000,63.80000000],[1754870880000,62.80000000],[1754871200000,62.00000000],[1754871456000,61.40000000],[1754871776000,61.20000000],[1754872096000,60.75000000],[1754872352000,60.20000000],[1754872672000,59.60000000],[1754873001000,59.75000000],[1754873264000,59.00000000],[1754873584000,59.00000000],[1754873904000,59.00000000],[1754874160000,58.40000000],[1754874480000,58.40000000],[1754874800000,58.25000000],[1754875056000,58.00000000],[1754875376000,58.80000000],[1754875698000,59.00000000],[1754875952000,59.00000000],[1754876272000,59.00000000],[1754876591000,59.00000000],[1754876911000,59.00000000],[1754877167000,59.80000000],[1754877487000,60.00000000],[1754877807000,60.00000000],[1754878063000,60.40000000],[1754878383000,60.20000000],[1754878703000,60.50000000],[1754878959000,61.00000000],[1754879279000,61.40000000],[1754879599000,62.00000000],[1754879851000,61.60000000],[1754880175000,61.80000000],[1754880495000,61.75000000],[1754880751000,62.00000000],[1754881071000,62.00000000],[1754881391000,62.40000000],[1754881712000,63.00000000],[1754881967000,63.00000000],[1754882287000,63.00000000],[1754882607000,63.00000000],[1754882851000,63.00000000],[1754883167000,64.00000000],[1754883487000,64.60000000],[1754883807000,65.50000000],[1754884063000,66.60000000],[1754884383000,68.20000000],[1754884703000,67.25000000],[1754884951000,67.00000000],[1754885279000,66.20000000],[1754885599000,66.00000000],[1754885851000,66.20000000],[1754886175000,63.80000000],[1754886495000,62.66666667],], 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: [[1754863232000,1024.6],[1754863360000,1024.6],[1754863680000,1024.6],[1754864000000,1024.7],[1754864253000,1024.8],[1754864576000,1024.8],[1754864896000,1024.8],[1754865152000,1024.9],[1754865472000,1024.9],[1754865808000,1025],[1754866064000,1025],[1754866384000,1024.9],[1754866704000,1025.1],[1754866960000,1024.9],[1754867280000,1025],[1754867600000,1025.2],[1754867855000,1025.1],[1754868176000,1025.1],[1754868496000,1025.3],[1754868752000,1025.1],[1754869072000,1025.1],[1754869408000,1025.3],[1754869664000,1025.2],[1754869984000,1025.3],[1754870304000,1025.3],[1754870560000,1025.2],[1754870880000,1025.3],[1754871200000,1025.3],[1754871456000,1025.3],[1754871776000,1025.4],[1754872096000,1025.3],[1754872352000,1025.5],[1754872672000,1025.4],[1754873001000,1025.5],[1754873264000,1025.4],[1754873584000,1025.5],[1754873904000,1025.6],[1754874160000,1025.5],[1754874480000,1025.6],[1754874800000,1025.7],[1754875056000,1025.6],[1754875376000,1025.6],[1754875698000,1025.6],[1754875952000,1025.6],[1754876272000,1025.6],[1754876591000,1025.6],[1754876911000,1025.7],[1754877167000,1025.7],[1754877487000,1025.7],[1754877807000,1025.7],[1754878063000,1025.7],[1754878383000,1025.8],[1754878703000,1025.7],[1754878959000,1025.9],[1754879279000,1025.8],[1754879599000,1026],[1754879851000,1025.9],[1754880175000,1026],[1754880495000,1026],[1754880751000,1026],[1754881071000,1025.9],[1754881391000,1026.1],[1754881712000,1026],[1754881967000,1026],[1754882287000,1026.1],[1754882607000,1026.1],[1754882851000,1026.1],[1754883167000,1026.1],[1754883487000,1026.2],[1754883807000,1026.1],[1754884063000,1026.2],[1754884383000,1026.1],[1754884703000,1026.2],[1754884951000,1026.2],[1754885279000,1026.2],[1754885599000,1026.2],[1754885851000,1026.3],[1754886175000,1026.2],[1754886495000,1026.2],], 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: [[1754863232000,3.96],[1754863360000,4.176],[1754863680000,6.48],[1754864000000,6.57],[1754864253000,6.768],[1754864576000,8.712],[1754864896000,7.47],[1754865152000,6.768],[1754865472000,6.408],[1754865808000,6.03],[1754866064000,6.48],[1754866384000,6.408],[1754866704000,6.39],[1754866960000,7.704],[1754867280000,8.496],[1754867600000,6.84],[1754867855000,6.984],[1754868176000,7.2],[1754868496000,7.92],[1754868752000,8.64],[1754869072000,7.2],[1754869408000,7.74],[1754869664000,6.984],[1754869984000,8.712],[1754870304000,8.73],[1754870560000,9],[1754870880000,7.992],[1754871200000,7.74],[1754871456000,10.08],[1754871776000,7.128],[1754872096000,10.89],[1754872352000,9.576],[1754872672000,10.152],[1754873001000,9.9],[1754873264000,10.224],[1754873584000,9.432],[1754873904000,12.42],[1754874160000,12.528],[1754874480000,9.576],[1754874800000,13.14],[1754875056000,12.312],[1754875376000,9.288],[1754875698000,9],[1754875952000,11.16],[1754876272000,9.648],[1754876591000,10.584],[1754876911000,12.69],[1754877167000,13.032],[1754877487000,14.04],[1754877807000,14.13],[1754878063000,11.376],[1754878383000,10.08],[1754878703000,6.93],[1754878959000,6.984],[1754879279000,8.136],[1754879599000,7.47],[1754879851000,5.112],[1754880175000,4.032],[1754880495000,5.4],[1754880751000,4.248],[1754881071000,4.176],[1754881391000,4.464],[1754881712000,2.34],[1754881967000,3.168],[1754882287000,4.896],[1754882607000,3.15],[1754882851000,2.592],[1754883167000,1.8],[1754883487000,1.512],[1754883807000,0.72],[1754884063000,1.728],[1754884383000,0.072],[1754884703000,1.08],[1754884951000,0.72],[1754885279000,0],[1754885599000,0],[1754885851000,0.288],[1754886175000,0],[1754886495000,0.72],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1754863232000,5.04],[1754863360000,5.544],[1754863680000,8.136],[1754864000000,7.56],[1754864253000,8.568],[1754864576000,10.728],[1754864896000,9.54],[1754865152000,9.072],[1754865472000,8.064],[1754865808000,8.82],[1754866064000,8.064],[1754866384000,8.064],[1754866704000,8.19],[1754866960000,10.656],[1754867280000,11.232],[1754867600000,9.54],[1754867855000,9.144],[1754868176000,8.568],[1754868496000,10.89],[1754868752000,10.656],[1754869072000,9.576],[1754869408000,10.17],[1754869664000,8.568],[1754869984000,10.728],[1754870304000,12.15],[1754870560000,11.232],[1754870880000,10.728],[1754871200000,9.45],[1754871456000,12.312],[1754871776000,8.64],[1754872096000,14.76],[1754872352000,12.888],[1754872672000,14.4],[1754873001000,14.85],[1754873264000,13.32],[1754873584000,12.312],[1754873904000,15.39],[1754874160000,15.984],[1754874480000,13.392],[1754874800000,16.02],[1754875056000,15.984],[1754875376000,12.816],[1754875698000,12.24],[1754875952000,15.912],[1754876272000,12.312],[1754876591000,14.904],[1754876911000,17.28],[1754877167000,18],[1754877487000,17.496],[1754877807000,18.63],[1754878063000,13.896],[1754878383000,14.472],[1754878703000,8.19],[1754878959000,9.648],[1754879279000,11.232],[1754879599000,9.45],[1754879851000,7.056],[1754880175000,5.04],[1754880495000,8.19],[1754880751000,5.544],[1754881071000,5.04],[1754881391000,7.128],[1754881712000,3.15],[1754881967000,5.544],[1754882287000,6.552],[1754882607000,5.04],[1754882851000,3.024],[1754883167000,3.024],[1754883487000,2.52],[1754883807000,1.26],[1754884063000,3.024],[1754884383000,0.504],[1754884703000,1.26],[1754884951000,1.008],[1754885279000,0],[1754885599000,0],[1754885851000,0.504],[1754886175000,0],[1754886495000,0.839999988],], 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: [[1754863232000,102.00000000],[1754863360000,85.80000000],[1754863680000,82.80000000],[1754864000000,60.75000000],[1754864253000,68.80000000],[1754864576000,61.20000000],[1754864896000,73.00000000],[1754865152000,52.60000000],[1754865472000,51.00000000],[1754865808000,56.75000000],[1754866064000,74.00000000],[1754866384000,76.80000000],[1754866704000,41.25000000],[1754866960000,42.60000000],[1754867280000,47.00000000],[1754867600000,46.75000000],[1754867855000,47.40000000],[1754868176000,77.00000000],[1754868496000,132.50000000],[1754868752000,64.60000000],[1754869072000,59.60000000],[1754869408000,57.75000000],[1754869664000,57.40000000],[1754869984000,44.00000000],[1754870304000,32.00000000],[1754870560000,46.80000000],[1754870880000,53.00000000],[1754871200000,28.50000000],[1754871456000,41.20000000],[1754871776000,74.80000000],[1754872096000,130.50000000],[1754872352000,52.60000000],[1754872672000,48.40000000],[1754873001000,49.00000000],[1754873264000,33.00000000],[1754873584000,40.80000000],[1754873904000,41.50000000],[1754874160000,65.80000000],[1754874480000,48.20000000],[1754874800000,46.25000000],[1754875056000,40.20000000],[1754875376000,33.00000000],[1754875698000,69.25000000],[1754875952000,59.20000000],[1754876272000,58.60000000],[1754876591000,62.40000000],[1754876911000,47.50000000],[1754877167000,104.80000000],[1754877487000,30.80000000],[1754877807000,28.50000000],[1754878063000,56.20000000],[1754878383000,68.80000000],[1754878703000,44.25000000],[1754878959000,57.80000000],[1754879279000,52.80000000],[1754879599000,54.50000000],[1754879851000,76.00000000],[1754880175000,87.20000000],[1754880495000,60.00000000],[1754880751000,59.20000000],[1754881071000,142.60000000],[1754881391000,72.40000000],[1754881712000,105.25000000],[1754881967000,114.60000000],[1754882287000,79.60000000],[1754882607000,99.50000000],[1754882851000,123.00000000],[1754883167000,133.60000000],[1754883487000,160.80000000],[1754883807000,167.50000000],[1754884063000,175.60000000],[1754884383000,171.60000000],[1754884703000,159.00000000],[1754884951000,157.80000000],[1754885279000,154.20000000],[1754885599000,154.25000000],[1754885851000,151.60000000],[1754886175000,148.00000000],[1754886495000,130.33333333],], 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: [[1754863232000,0.00000000],[1754863360000,0.00000000],[1754863680000,0.00000000],[1754864000000,0.00000000],[1754864253000,0.00000000],[1754864576000,0.00000000],[1754864896000,0.00000000],[1754865152000,0.00000000],[1754865472000,0.00000000],[1754865808000,0.00000000],[1754866064000,0.00000000],[1754866384000,0.00000000],[1754866704000,0.00000000],[1754866960000,0.00000000],[1754867280000,0.00000000],[1754867600000,0.00000000],[1754867855000,0.00000000],[1754868176000,0.00000000],[1754868496000,0.00000000],[1754868752000,0.00000000],[1754869072000,0.00000000],[1754869408000,0.00000000],[1754869664000,0.00000000],[1754869984000,0.00000000],[1754870304000,0.00000000],[1754870560000,0.00000000],[1754870880000,0.00000000],[1754871200000,0.00000000],[1754871456000,0.00000000],[1754871776000,0.00000000],[1754872096000,0.00000000],[1754872352000,0.00000000],[1754872672000,0.00000000],[1754873001000,0.00000000],[1754873264000,0.00000000],[1754873584000,0.00000000],[1754873904000,0.00000000],[1754874160000,0.00000000],[1754874480000,0.00000000],[1754874800000,0.00000000],[1754875056000,0.00000000],[1754875376000,0.00000000],[1754875698000,0.00000000],[1754875952000,0.00000000],[1754876272000,0.00000000],[1754876591000,0.00000000],[1754876911000,0.00000000],[1754877167000,0.00000000],[1754877487000,0.00000000],[1754877807000,0.00000000],[1754878063000,0.00000000],[1754878383000,0.00000000],[1754878703000,0.00000000],[1754878959000,0.00000000],[1754879279000,0.00000000],[1754879599000,0.00000000],[1754879851000,0.00000000],[1754880175000,0.00000000],[1754880495000,0.00000000],[1754880751000,0.00000000],[1754881071000,0.00000000],[1754881391000,0.00000000],[1754881712000,0.00000000],[1754881967000,0.00000000],[1754882287000,0.00000000],[1754882607000,0.00000000],[1754882851000,0.00000000],[1754883167000,0.20000000],[1754883487000,2.00000000],[1754883807000,4.00000000],[1754884063000,5.60000000],[1754884383000,9.20000000],[1754884703000,12.25000000],[1754884951000,15.60000000],[1754885279000,19.60000000],[1754885599000,23.00000000],[1754885851000,25.40000000],[1754886175000,29.60000000],[1754886495000,33.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: [[1754863232000,0.00000000],[1754863360000,0.00000000],[1754863680000,0.00000000],[1754864000000,0.00000000],[1754864253000,0.00000000],[1754864576000,0.00000000],[1754864896000,0.00000000],[1754865152000,0.00000000],[1754865472000,0.00000000],[1754865808000,0.00000000],[1754866064000,0.00000000],[1754866384000,0.00000000],[1754866704000,0.00000000],[1754866960000,0.00000000],[1754867280000,0.00000000],[1754867600000,0.00000000],[1754867855000,0.00000000],[1754868176000,0.00000000],[1754868496000,0.00000000],[1754868752000,0.00000000],[1754869072000,0.00000000],[1754869408000,0.00000000],[1754869664000,0.00000000],[1754869984000,0.00000000],[1754870304000,0.00000000],[1754870560000,0.00000000],[1754870880000,0.00000000],[1754871200000,0.00000000],[1754871456000,0.00000000],[1754871776000,0.00000000],[1754872096000,0.00000000],[1754872352000,0.00000000],[1754872672000,0.00000000],[1754873001000,0.00000000],[1754873264000,0.00000000],[1754873584000,0.00000000],[1754873904000,0.00000000],[1754874160000,0.00000000],[1754874480000,0.00000000],[1754874800000,0.00000000],[1754875056000,0.00000000],[1754875376000,0.00000000],[1754875698000,0.00000000],[1754875952000,0.00000000],[1754876272000,0.00000000],[1754876591000,0.00000000],[1754876911000,0.00000000],[1754877167000,0.00000000],[1754877487000,0.00000000],[1754877807000,0.00000000],[1754878063000,0.00000000],[1754878383000,0.00000000],[1754878703000,0.00000000],[1754878959000,0.00000000],[1754879279000,0.00000000],[1754879599000,0.00000000],[1754879851000,0.00000000],[1754880175000,0.00000000],[1754880495000,0.00000000],[1754880751000,0.00000000],[1754881071000,0.00000000],[1754881391000,0.00000000],[1754881712000,0.00000000],[1754881967000,0.00000000],[1754882287000,0.00000000],[1754882607000,0.00000000],[1754882851000,0.00000000],[1754883167000,0.00000000],[1754883487000,0.00000000],[1754883807000,0.00000000],[1754884063000,0.00000000],[1754884383000,0.00000000],[1754884703000,0.00000000],[1754884951000,0.00000000],[1754885279000,0.00000000],[1754885599000,0.00000000],[1754885851000,0.00000000],[1754886175000,0.00000000],[1754886495000,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: [[1754863232000,0.00000000],[1754863360000,0.00000000],[1754863680000,0.00000000],[1754864000000,0.00000000],[1754864253000,0.00000000],[1754864576000,0.00000000],[1754864896000,0.00000000],[1754865152000,0.00000000],[1754865472000,0.00000000],[1754865808000,0.00000000],[1754866064000,0.00000000],[1754866384000,0.00000000],[1754866704000,0.00000000],[1754866960000,0.00000000],[1754867280000,0.00000000],[1754867600000,0.00000000],[1754867855000,0.00000000],[1754868176000,0.00000000],[1754868496000,0.00000000],[1754868752000,0.00000000],[1754869072000,0.00000000],[1754869408000,0.00000000],[1754869664000,0.00000000],[1754869984000,0.00000000],[1754870304000,0.00000000],[1754870560000,0.00000000],[1754870880000,0.00000000],[1754871200000,0.00000000],[1754871456000,0.00000000],[1754871776000,0.00000000],[1754872096000,0.00000000],[1754872352000,0.00000000],[1754872672000,0.00000000],[1754873001000,0.00000000],[1754873264000,0.00000000],[1754873584000,0.00000000],[1754873904000,0.00000000],[1754874160000,0.00000000],[1754874480000,0.00000000],[1754874800000,0.00000000],[1754875056000,0.00000000],[1754875376000,0.00000000],[1754875698000,0.00000000],[1754875952000,0.00000000],[1754876272000,0.00000000],[1754876591000,0.00000000],[1754876911000,0.00000000],[1754877167000,0.00000000],[1754877487000,0.00000000],[1754877807000,0.00000000],[1754878063000,0.00000000],[1754878383000,0.00000000],[1754878703000,0.00000000],[1754878959000,0.00000000],[1754879279000,0.00000000],[1754879599000,0.00000000],[1754879851000,0.00000000],[1754880175000,0.00000000],[1754880495000,0.00000000],[1754880751000,0.00000000],[1754881071000,0.00000000],[1754881391000,0.00000000],[1754881712000,0.00000000],[1754881967000,0.00000000],[1754882287000,0.00000000],[1754882607000,0.00000000],[1754882851000,0.00000000],[1754883167000,0.00000000],[1754883487000,0.00000000],[1754883807000,0.00000000],[1754884063000,0.00000000],[1754884383000,0.00000000],[1754884703000,0.00000000],[1754884951000,0.00000000],[1754885279000,0.00000000],[1754885599000,0.00000000],[1754885851000,0.00000000],[1754886175000,0.00000000],[1754886495000,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; }