var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1773615605000,9.70000000],[1773615796000,9.92500000],[1773616052000,9.80000000],[1773616373000,9.40000000],[1773616693000,9.08000000],[1773617012000,9.22500000],[1773617269000,9.06000000],[1773617589000,8.86000000],[1773617909000,8.95000000],[1773618165000,9.02000000],[1773618485000,9.02000000],[1773618804000,9.10000000],[1773619061000,9.24000000],[1773619381000,9.22000000],[1773619701000,8.72500000],[1773619954000,8.52000000],[1773620277000,8.06000000],[1773620597000,8.02500000],[1773620853000,8.44000000],[1773621173000,8.76000000],[1773621493000,9.12000000],[1773621813000,9.30000000],[1773622069000,8.80000000],[1773622389000,8.48000000],[1773622709000,8.37500000],[1773622965000,8.66000000],[1773623284000,8.86000000],[1773623605000,8.82500000],[1773623853000,8.90000000],[1773624165000,8.86000000],[1773624484000,8.80000000],[1773624804000,8.92500000],[1773625060000,8.94000000],[1773625381000,8.58000000],[1773625701000,8.10000000],[1773625954000,7.96000000],[1773626276000,7.86000000],[1773626597000,7.70000000],[1773626853000,7.54000000],[1773627172000,7.48000000],[1773627492000,7.40000000],[1773627812000,7.40000000],[1773628053000,7.26000000],[1773628355000,7.08000000],[1773628677000,6.86000000],[1773628997000,6.52500000],[1773629253000,6.72000000],[1773629573000,7.00000000],[1773629893000,7.14000000],[1773630213000,7.05000000],[1773630485000,6.84000000],[1773630805000,7.12500000],[1773631059000,7.30000000],[1773631379000,7.34000000],[1773631700000,7.35000000],[1773631953000,7.40000000],[1773632276000,7.36000000],[1773632596000,7.30000000],[1773632851000,7.46000000],[1773633172000,6.96000000],[1773633492000,6.70000000],[1773633812000,6.92500000],[1773634068000,7.08000000],[1773634387000,7.22000000],[1773634709000,7.30000000],[1773634965000,7.48000000],[1773635285000,7.52000000],[1773635605000,7.47500000],[1773635861000,6.98000000],[1773636180000,6.46000000],[1773636501000,6.42500000],[1773636757000,6.40000000],[1773637077000,6.20000000],[1773637397000,5.77500000],[1773637653000,5.38000000],[1773637973000,5.00000000],[1773638292000,4.76000000],[1773638612000,4.80000000],[1773638867000,4.86000000],[1773639188000,4.96000000],[1773639508000,5.05000000],[1773639764000,5.14000000],[1773640084000,5.36000000],[1773640404000,5.65000000],[1773640660000,5.90000000],[1773640980000,5.82000000],[1773641300000,5.82500000],[1773641552000,6.26000000],[1773641876000,6.56000000],[1773642196000,6.86666667],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1773615605000,-0],[1773615796000,-0],[1773616052000,0.1],[1773616373000,0.1],[1773616693000,-0.1],[1773617012000,-0.2],[1773617269000,-0.3],[1773617589000,-0.6],[1773617909000,-0.6],[1773618165000,-0.6],[1773618485000,-0.7],[1773618804000,-0.7],[1773619061000,-0.9],[1773619381000,-0.8],[1773619701000,-0.6],[1773619954000,-0.8],[1773620277000,-0.7],[1773620597000,-0.9],[1773620853000,-0.8],[1773621173000,-0.9],[1773621493000,-1],[1773621813000,-0.8],[1773622069000,-0.7],[1773622389000,-0.8],[1773622709000,-0.9],[1773622965000,-1],[1773623284000,-0.8],[1773623605000,-0.9],[1773623853000,-0.8],[1773624165000,-0.8],[1773624484000,-0.9],[1773624804000,-1],[1773625060000,-0.9],[1773625381000,-0.9],[1773625701000,-1],[1773625954000,-1],[1773626276000,-1],[1773626597000,-0.9],[1773626853000,-1],[1773627172000,-0.9],[1773627492000,-0.7],[1773627812000,-0.6],[1773628053000,-0.5],[1773628355000,-0.4],[1773628677000,-0.4],[1773628997000,-0.7],[1773629253000,-0.5],[1773629573000,-0.3],[1773629893000,-0.2],[1773630213000,-0.2],[1773630485000,-0.2],[1773630805000,-0.2],[1773631059000,-0],[1773631379000,0],[1773631700000,-0.2],[1773631953000,-0.2],[1773632276000,-0.1],[1773632596000,-0.2],[1773632851000,-0.2],[1773633172000,-0.3],[1773633492000,-0.4],[1773633812000,-0.4],[1773634068000,-0.2],[1773634387000,-0.3],[1773634709000,-0.3],[1773634965000,-0.3],[1773635285000,-0.3],[1773635605000,-0.2],[1773635861000,-0.2],[1773636180000,-0.6],[1773636501000,-0.6],[1773636757000,-0.7],[1773637077000,-0.5],[1773637397000,-0.6],[1773637653000,-0.7],[1773637973000,-0.6],[1773638292000,-0.8],[1773638612000,-0.8],[1773638867000,-0.7],[1773639188000,-0.5],[1773639508000,-0.3],[1773639764000,-0.2],[1773640084000,0.1],[1773640404000,0.3],[1773640660000,0.2],[1773640980000,0.3],[1773641300000,0.3],[1773641552000,0.5],[1773641876000,0.5],[1773642196000,0.5],], 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: [[1773615605000,51.00000000],[1773615796000,50.25000000],[1773616052000,51.20000000],[1773616373000,52.40000000],[1773616693000,53.00000000],[1773617012000,52.00000000],[1773617269000,52.40000000],[1773617589000,52.00000000],[1773617909000,51.50000000],[1773618165000,51.20000000],[1773618485000,51.00000000],[1773618804000,50.50000000],[1773619061000,49.60000000],[1773619381000,50.00000000],[1773619701000,52.25000000],[1773619954000,52.40000000],[1773620277000,54.40000000],[1773620597000,53.75000000],[1773620853000,52.60000000],[1773621173000,51.20000000],[1773621493000,49.60000000],[1773621813000,49.75000000],[1773622069000,51.60000000],[1773622389000,52.60000000],[1773622709000,52.25000000],[1773622965000,51.20000000],[1773623284000,51.00000000],[1773623605000,51.00000000],[1773623853000,51.00000000],[1773624165000,51.00000000],[1773624484000,50.80000000],[1773624804000,50.25000000],[1773625060000,50.60000000],[1773625381000,51.80000000],[1773625701000,53.00000000],[1773625954000,53.60000000],[1773626276000,54.00000000],[1773626597000,54.75000000],[1773626853000,55.00000000],[1773627172000,55.60000000],[1773627492000,56.60000000],[1773627812000,57.25000000],[1773628053000,58.00000000],[1773628355000,59.20000000],[1773628677000,60.20000000],[1773628997000,60.25000000],[1773629253000,60.20000000],[1773629573000,60.00000000],[1773629893000,60.00000000],[1773630213000,60.50000000],[1773630485000,61.00000000],[1773630805000,60.00000000],[1773631059000,60.00000000],[1773631379000,60.00000000],[1773631700000,59.25000000],[1773631953000,59.00000000],[1773632276000,59.40000000],[1773632596000,59.50000000],[1773632851000,58.60000000],[1773633172000,60.40000000],[1773633492000,61.00000000],[1773633812000,60.00000000],[1773634068000,60.00000000],[1773634387000,59.00000000],[1773634709000,59.00000000],[1773634965000,58.20000000],[1773635285000,58.00000000],[1773635605000,58.50000000],[1773635861000,60.40000000],[1773636180000,61.00000000],[1773636501000,61.00000000],[1773636757000,61.00000000],[1773637077000,62.40000000],[1773637397000,64.00000000],[1773637653000,65.40000000],[1773637973000,67.40000000],[1773638292000,67.80000000],[1773638612000,67.50000000],[1773638867000,67.80000000],[1773639188000,68.00000000],[1773639508000,68.75000000],[1773639764000,68.80000000],[1773640084000,69.20000000],[1773640404000,69.00000000],[1773640660000,67.00000000],[1773640980000,68.20000000],[1773641300000,68.00000000],[1773641552000,67.00000000],[1773641876000,65.40000000],[1773642196000,64.33333333],], 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: [[1773615605000,1017.8],[1773615796000,1017.6],[1773616052000,1017.7],[1773616373000,1017.8],[1773616693000,1017.9],[1773617012000,1017.9],[1773617269000,1017.9],[1773617589000,1018.2],[1773617909000,1018],[1773618165000,1018],[1773618485000,1018.1],[1773618804000,1018.1],[1773619061000,1018],[1773619381000,1018.1],[1773619701000,1018.2],[1773619954000,1018.1],[1773620277000,1018.2],[1773620597000,1018.2],[1773620853000,1018],[1773621173000,1018],[1773621493000,1017.9],[1773621813000,1017.8],[1773622069000,1017.9],[1773622389000,1017.9],[1773622709000,1017.8],[1773622965000,1017.8],[1773623284000,1017.7],[1773623605000,1017.7],[1773623853000,1017.7],[1773624165000,1017.7],[1773624484000,1017.6],[1773624804000,1017.6],[1773625060000,1017.6],[1773625381000,1017.6],[1773625701000,1017.7],[1773625954000,1017.7],[1773626276000,1017.7],[1773626597000,1017.8],[1773626853000,1017.9],[1773627172000,1017.8],[1773627492000,1017.8],[1773627812000,1017.9],[1773628053000,1017.9],[1773628355000,1017.9],[1773628677000,1018],[1773628997000,1018.1],[1773629253000,1017.9],[1773629573000,1018],[1773629893000,1017.9],[1773630213000,1018],[1773630485000,1018.1],[1773630805000,1017.9],[1773631059000,1017.9],[1773631379000,1018],[1773631700000,1017.9],[1773631953000,1017.9],[1773632276000,1018],[1773632596000,1018],[1773632851000,1018],[1773633172000,1018.1],[1773633492000,1018.2],[1773633812000,1018.2],[1773634068000,1018.2],[1773634387000,1018.1],[1773634709000,1018.2],[1773634965000,1018.1],[1773635285000,1018.2],[1773635605000,1018.3],[1773635861000,1018.4],[1773636180000,1018.5],[1773636501000,1018.6],[1773636757000,1018.5],[1773637077000,1018.6],[1773637397000,1018.9],[1773637653000,1019],[1773637973000,1019.1],[1773638292000,1019.3],[1773638612000,1019.3],[1773638867000,1019.2],[1773639188000,1019.3],[1773639508000,1019.2],[1773639764000,1019.3],[1773640084000,1019.2],[1773640404000,1019.1],[1773640660000,1019.3],[1773640980000,1019.4],[1773641300000,1019.5],[1773641552000,1019.3],[1773641876000,1019.2],[1773642196000,1019.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: [[1773615605000,3.24],[1773615796000,1.89],[1773616052000,1.728],[1773616373000,1.512],[1773616693000,2.592],[1773617012000,2.34],[1773617269000,1.368],[1773617589000,2.088],[1773617909000,3.51],[1773618165000,3.888],[1773618485000,3.312],[1773618804000,2.97],[1773619061000,2.88],[1773619381000,0.072],[1773619701000,0.9],[1773619954000,0.504],[1773620277000,1.728],[1773620597000,2.61],[1773620853000,4.608],[1773621173000,3.888],[1773621493000,2.16],[1773621813000,0.72],[1773622069000,1.44],[1773622389000,2.16],[1773622709000,2.52],[1773622965000,4.104],[1773623284000,4.032],[1773623605000,4.05],[1773623853000,2.52],[1773624165000,3.312],[1773624484000,3.384],[1773624804000,1.26],[1773625060000,0.144],[1773625381000,0],[1773625701000,0.9],[1773625954000,2.16],[1773626276000,2.088],[1773626597000,1.26],[1773626853000,0.72],[1773627172000,0.864],[1773627492000,1.656],[1773627812000,1.89],[1773628053000,0.936],[1773628355000,1.512],[1773628677000,0],[1773628997000,0.09],[1773629253000,2.52],[1773629573000,2.664],[1773629893000,1.44],[1773630213000,0],[1773630485000,1.008],[1773630805000,2.52],[1773631059000,0.936],[1773631379000,1.224],[1773631700000,2.79],[1773631953000,2.736],[1773632276000,4.032],[1773632596000,3.78],[1773632851000,1.584],[1773633172000,0.144],[1773633492000,1.44],[1773633812000,2.52],[1773634068000,2.016],[1773634387000,2.16],[1773634709000,2.52],[1773634965000,2.448],[1773635285000,2.376],[1773635605000,2.25],[1773635861000,0.792],[1773636180000,0.72],[1773636501000,1.44],[1773636757000,0.504],[1773637077000,1.44],[1773637397000,3.06],[1773637653000,2.448],[1773637973000,1.296],[1773638292000,1.44],[1773638612000,0],[1773638867000,0.72],[1773639188000,0.144],[1773639508000,0.81],[1773639764000,0.576],[1773640084000,0.072],[1773640404000,0.72],[1773640660000,1.368],[1773640980000,2.376],[1773641300000,0.09],[1773641552000,0.504],[1773641876000,0.288],[1773642196000,1.199999988],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1773615605000,4.200000012],[1773615796000,2.52],[1773616052000,2.016],[1773616373000,2.016],[1773616693000,3.024],[1773617012000,3.78],[1773617269000,2.016],[1773617589000,3.024],[1773617909000,3.78],[1773618165000,4.536],[1773618485000,4.032],[1773618804000,3.78],[1773619061000,3.528],[1773619381000,0.504],[1773619701000,2.52],[1773619954000,0.504],[1773620277000,2.52],[1773620597000,3.15],[1773620853000,5.04],[1773621173000,4.536],[1773621493000,3.024],[1773621813000,1.26],[1773622069000,1.512],[1773622389000,3.528],[1773622709000,2.52],[1773622965000,5.04],[1773623284000,5.04],[1773623605000,5.04],[1773623853000,3.528],[1773624165000,4.032],[1773624484000,5.04],[1773624804000,1.89],[1773625060000,0.504],[1773625381000,0],[1773625701000,2.52],[1773625954000,2.52],[1773626276000,2.52],[1773626597000,2.52],[1773626853000,2.016],[1773627172000,2.016],[1773627492000,2.52],[1773627812000,2.52],[1773628053000,2.52],[1773628355000,2.52],[1773628677000,0],[1773628997000,0.63],[1773629253000,3.024],[1773629573000,3.528],[1773629893000,2.016],[1773630213000,0],[1773630485000,1.008],[1773630805000,2.52],[1773631059000,2.016],[1773631379000,2.52],[1773631700000,4.41],[1773631953000,4.032],[1773632276000,5.04],[1773632596000,5.04],[1773632851000,2.52],[1773633172000,1.008],[1773633492000,2.52],[1773633812000,2.52],[1773634068000,2.52],[1773634387000,2.52],[1773634709000,3.78],[1773634965000,2.52],[1773635285000,2.52],[1773635605000,2.52],[1773635861000,2.016],[1773636180000,2.016],[1773636501000,2.52],[1773636757000,2.016],[1773637077000,2.52],[1773637397000,3.78],[1773637653000,4.032],[1773637973000,1.512],[1773638292000,2.016],[1773638612000,0],[1773638867000,1.008],[1773639188000,1.008],[1773639508000,1.89],[1773639764000,1.008],[1773640084000,0.504],[1773640404000,1.26],[1773640660000,2.016],[1773640980000,3.024],[1773641300000,0.63],[1773641552000,0.504],[1773641876000,2.016],[1773642196000,1.680000012],], 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: [[1773615605000,324.33333333],[1773615796000,325.25000000],[1773616052000,324.20000000],[1773616373000,337.80000000],[1773616693000,339.00000000],[1773617012000,343.00000000],[1773617269000,344.40000000],[1773617589000,340.80000000],[1773617909000,339.50000000],[1773618165000,344.00000000],[1773618485000,333.60000000],[1773618804000,333.00000000],[1773619061000,333.20000000],[1773619381000,335.00000000],[1773619701000,342.00000000],[1773619954000,342.00000000],[1773620277000,339.80000000],[1773620597000,333.00000000],[1773620853000,333.60000000],[1773621173000,333.00000000],[1773621493000,337.00000000],[1773621813000,343.00000000],[1773622069000,347.00000000],[1773622389000,344.20000000],[1773622709000,342.00000000],[1773622965000,343.80000000],[1773623284000,342.80000000],[1773623605000,346.00000000],[1773623853000,343.40000000],[1773624165000,341.80000000],[1773624484000,339.00000000],[1773624804000,340.00000000],[1773625060000,340.80000000],[1773625381000,340.80000000],[1773625701000,340.00000000],[1773625954000,339.20000000],[1773626276000,339.00000000],[1773626597000,338.50000000],[1773626853000,338.20000000],[1773627172000,338.00000000],[1773627492000,337.60000000],[1773627812000,336.75000000],[1773628053000,336.40000000],[1773628355000,336.00000000],[1773628677000,336.80000000],[1773628997000,337.00000000],[1773629253000,335.80000000],[1773629573000,334.00000000],[1773629893000,334.00000000],[1773630213000,335.00000000],[1773630485000,335.00000000],[1773630805000,334.25000000],[1773631059000,334.00000000],[1773631379000,334.00000000],[1773631700000,333.50000000],[1773631953000,333.00000000],[1773632276000,333.00000000],[1773632596000,332.75000000],[1773632851000,333.40000000],[1773633172000,334.00000000],[1773633492000,334.00000000],[1773633812000,334.50000000],[1773634068000,334.00000000],[1773634387000,334.00000000],[1773634709000,333.25000000],[1773634965000,333.00000000],[1773635285000,333.00000000],[1773635605000,333.00000000],[1773635861000,333.00000000],[1773636180000,333.00000000],[1773636501000,333.00000000],[1773636757000,333.00000000],[1773637077000,332.40000000],[1773637397000,310.50000000],[1773637653000,232.40000000],[1773637973000,220.20000000],[1773638292000,235.00000000],[1773638612000,236.00000000],[1773638867000,209.20000000],[1773639188000,219.80000000],[1773639508000,217.00000000],[1773639764000,225.00000000],[1773640084000,231.00000000],[1773640404000,230.25000000],[1773640660000,217.80000000],[1773640980000,193.20000000],[1773641300000,193.00000000],[1773641552000,192.00000000],[1773641876000,192.00000000],[1773642196000,192.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: [[1773615605000,0.00000000],[1773615796000,0.00000000],[1773616052000,0.00000000],[1773616373000,0.00000000],[1773616693000,0.00000000],[1773617012000,0.00000000],[1773617269000,0.00000000],[1773617589000,0.00000000],[1773617909000,0.00000000],[1773618165000,0.00000000],[1773618485000,0.00000000],[1773618804000,0.00000000],[1773619061000,0.00000000],[1773619381000,0.00000000],[1773619701000,0.00000000],[1773619954000,0.00000000],[1773620277000,0.00000000],[1773620597000,0.00000000],[1773620853000,0.00000000],[1773621173000,0.00000000],[1773621493000,0.00000000],[1773621813000,0.00000000],[1773622069000,0.00000000],[1773622389000,0.00000000],[1773622709000,0.00000000],[1773622965000,0.00000000],[1773623284000,0.00000000],[1773623605000,0.00000000],[1773623853000,0.00000000],[1773624165000,0.00000000],[1773624484000,0.00000000],[1773624804000,0.00000000],[1773625060000,0.00000000],[1773625381000,0.00000000],[1773625701000,0.00000000],[1773625954000,0.00000000],[1773626276000,0.00000000],[1773626597000,0.00000000],[1773626853000,0.00000000],[1773627172000,0.00000000],[1773627492000,0.00000000],[1773627812000,0.00000000],[1773628053000,0.00000000],[1773628355000,0.00000000],[1773628677000,0.00000000],[1773628997000,0.00000000],[1773629253000,0.00000000],[1773629573000,0.00000000],[1773629893000,0.00000000],[1773630213000,0.00000000],[1773630485000,0.00000000],[1773630805000,0.00000000],[1773631059000,0.00000000],[1773631379000,0.00000000],[1773631700000,0.00000000],[1773631953000,0.00000000],[1773632276000,0.00000000],[1773632596000,0.00000000],[1773632851000,0.00000000],[1773633172000,0.00000000],[1773633492000,0.00000000],[1773633812000,0.00000000],[1773634068000,0.00000000],[1773634387000,0.00000000],[1773634709000,0.00000000],[1773634965000,0.00000000],[1773635285000,0.00000000],[1773635605000,0.00000000],[1773635861000,0.00000000],[1773636180000,1.00000000],[1773636501000,1.25000000],[1773636757000,2.40000000],[1773637077000,4.20000000],[1773637397000,6.00000000],[1773637653000,8.80000000],[1773637973000,11.60000000],[1773638292000,15.60000000],[1773638612000,19.25000000],[1773638867000,22.80000000],[1773639188000,26.60000000],[1773639508000,29.25000000],[1773639764000,36.20000000],[1773640084000,42.80000000],[1773640404000,49.00000000],[1773640660000,48.80000000],[1773640980000,43.40000000],[1773641300000,46.00000000],[1773641552000,48.60000000],[1773641876000,52.00000000],[1773642196000,54.66666667],], 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: [[1773615605000,0.00000000],[1773615796000,0.00000000],[1773616052000,0.00000000],[1773616373000,0.00000000],[1773616693000,0.00000000],[1773617012000,0.00000000],[1773617269000,0.00000000],[1773617589000,0.00000000],[1773617909000,0.00000000],[1773618165000,0.00000000],[1773618485000,0.00000000],[1773618804000,0.00000000],[1773619061000,0.00000000],[1773619381000,0.00000000],[1773619701000,0.00000000],[1773619954000,0.00000000],[1773620277000,0.00000000],[1773620597000,0.00000000],[1773620853000,0.00000000],[1773621173000,0.00000000],[1773621493000,0.00000000],[1773621813000,0.00000000],[1773622069000,0.00000000],[1773622389000,0.00000000],[1773622709000,0.00000000],[1773622965000,0.00000000],[1773623284000,0.00000000],[1773623605000,0.00000000],[1773623853000,0.00000000],[1773624165000,0.00000000],[1773624484000,0.00000000],[1773624804000,0.00000000],[1773625060000,0.00000000],[1773625381000,0.00000000],[1773625701000,0.00000000],[1773625954000,0.00000000],[1773626276000,0.00000000],[1773626597000,0.00000000],[1773626853000,0.00000000],[1773627172000,0.00000000],[1773627492000,0.00000000],[1773627812000,0.00000000],[1773628053000,0.00000000],[1773628355000,0.00000000],[1773628677000,0.00000000],[1773628997000,0.00000000],[1773629253000,0.00000000],[1773629573000,0.00000000],[1773629893000,0.00000000],[1773630213000,0.00000000],[1773630485000,0.00000000],[1773630805000,0.00000000],[1773631059000,0.00000000],[1773631379000,0.00000000],[1773631700000,0.00000000],[1773631953000,0.00000000],[1773632276000,0.00000000],[1773632596000,0.00000000],[1773632851000,0.00000000],[1773633172000,0.00000000],[1773633492000,0.00000000],[1773633812000,0.00000000],[1773634068000,0.00000000],[1773634387000,0.00000000],[1773634709000,0.00000000],[1773634965000,0.00000000],[1773635285000,0.00000000],[1773635605000,0.00000000],[1773635861000,0.00000000],[1773636180000,0.00000000],[1773636501000,0.00000000],[1773636757000,0.00000000],[1773637077000,0.00000000],[1773637397000,0.00000000],[1773637653000,0.00000000],[1773637973000,0.00000000],[1773638292000,0.00000000],[1773638612000,0.00000000],[1773638867000,0.00000000],[1773639188000,0.00000000],[1773639508000,0.00000000],[1773639764000,0.00000000],[1773640084000,0.00000000],[1773640404000,0.00000000],[1773640660000,0.00000000],[1773640980000,0.00000000],[1773641300000,0.00000000],[1773641552000,0.00000000],[1773641876000,0.00000000],[1773642196000,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: [[1773615605000,0.00000000],[1773615796000,0.00000000],[1773616052000,0.00000000],[1773616373000,0.00000000],[1773616693000,0.00000000],[1773617012000,0.00000000],[1773617269000,0.00000000],[1773617589000,0.00000000],[1773617909000,0.00000000],[1773618165000,0.00000000],[1773618485000,0.00000000],[1773618804000,0.00000000],[1773619061000,0.00000000],[1773619381000,0.00000000],[1773619701000,0.00000000],[1773619954000,0.00000000],[1773620277000,0.00000000],[1773620597000,0.00000000],[1773620853000,0.00000000],[1773621173000,0.00000000],[1773621493000,0.00000000],[1773621813000,0.00000000],[1773622069000,0.00000000],[1773622389000,0.00000000],[1773622709000,0.00000000],[1773622965000,0.00000000],[1773623284000,0.00000000],[1773623605000,0.00000000],[1773623853000,0.00000000],[1773624165000,0.00000000],[1773624484000,0.00000000],[1773624804000,0.00000000],[1773625060000,0.00000000],[1773625381000,0.00000000],[1773625701000,0.00000000],[1773625954000,0.00000000],[1773626276000,0.00000000],[1773626597000,0.00000000],[1773626853000,0.00000000],[1773627172000,0.00000000],[1773627492000,0.00000000],[1773627812000,0.00000000],[1773628053000,0.00000000],[1773628355000,0.00000000],[1773628677000,0.00000000],[1773628997000,0.00000000],[1773629253000,0.00000000],[1773629573000,0.00000000],[1773629893000,0.00000000],[1773630213000,0.00000000],[1773630485000,0.00000000],[1773630805000,0.00000000],[1773631059000,0.00000000],[1773631379000,0.00000000],[1773631700000,0.00000000],[1773631953000,0.00000000],[1773632276000,0.00000000],[1773632596000,0.00000000],[1773632851000,0.00000000],[1773633172000,0.00000000],[1773633492000,0.00000000],[1773633812000,0.00000000],[1773634068000,0.00000000],[1773634387000,0.00000000],[1773634709000,0.00000000],[1773634965000,0.00000000],[1773635285000,0.00000000],[1773635605000,0.00000000],[1773635861000,0.00000000],[1773636180000,0.00000000],[1773636501000,0.00000000],[1773636757000,0.00000000],[1773637077000,0.00000000],[1773637397000,0.00000000],[1773637653000,0.00000000],[1773637973000,0.00000000],[1773638292000,0.00000000],[1773638612000,0.00000000],[1773638867000,0.00000000],[1773639188000,0.00000000],[1773639508000,0.00000000],[1773639764000,0.00000000],[1773640084000,0.00000000],[1773640404000,0.00000000],[1773640660000,0.00000000],[1773640980000,0.00000000],[1773641300000,0.00000000],[1773641552000,0.00000000],[1773641876000,0.00000000],[1773642196000,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; }