var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1765580430000,1.90000000],[1765580573000,1.81666667],[1765580909000,1.90000000],[1765581229000,1.80000000],[1765581549000,1.80000000],[1765581805000,1.80000000],[1765582189000,1.80000000],[1765582381000,1.72500000],[1765582701000,1.67500000],[1765583149000,1.70000000],[1765583277000,1.62500000],[1765583597000,1.60000000],[1765584109000,1.60000000],[1765584173000,1.60000000],[1765584493000,1.68000000],[1765585069000,1.60000000],[1765585389000,1.60000000],[1765585709000,1.60000000],[1765586029000,1.65000000],[1765586413000,1.60000000],[1765586605000,1.60000000],[1765587053000,1.50000000],[1765587389000,1.60000000],[1765587469000,1.54000000],[1765587773000,1.48000000],[1765588109000,1.40000000],[1765588429000,1.50000000],[1765588749000,1.50000000],[1765589005000,1.50000000],[1765589389000,1.50000000],[1765589581000,1.50000000],[1765589870000,1.50000000],[1765590206000,1.50000000],[1765590493000,1.50000000],[1765591070000,1.50000000],[1765591454000,1.50000000],[1765591709000,1.50000000],[1765592029000,1.50000000],[1765592349000,1.57500000],[1765592605000,1.60000000],[1765592989000,1.60000000],[1765593181000,1.50000000],[1765593501000,1.50000000],[1765593949000,1.50000000],[1765594141000,1.50000000],[1765594669000,1.50000000],[1765595117000,1.50000000],[1765595309000,1.50000000],[1765595629000,1.50000000],[1765595949000,1.60000000],[1765596205000,1.60000000],[1765596589000,1.60000000],[1765596845000,1.50000000],[1765597101000,1.50000000],[1765597549000,1.60000000],[1765597677000,1.60000000],[1765598061000,1.60000000],[1765598509000,1.60000000],[1765598573000,1.62500000],[1765599053000,1.65000000],[1765599181000,1.60000000],[1765599453000,1.60000000],[1765599790000,1.60000000],[1765600077000,1.60000000],[1765600351000,1.54285714],[1765600652000,1.51250000],[1765600973000,1.60000000],[1765601310000,1.60000000],[1765601552000,1.60000000],[1765601852000,1.62857143],[1765602174000,1.70000000],[1765602477000,1.61250000],[1765602751000,1.62000000],[1765603052000,1.60000000],[1765603373000,1.61111111],[1765603714000,1.63333333],[1765603983000,1.60000000],[1765604254000,1.60000000],[1765604574000,1.60000000],[1765604877000,1.60000000],[1765605151000,1.60000000],[1765605452000,1.60000000],[1765605773000,1.60000000],[1765606077000,1.60000000],[1765606381000,1.60000000],[1765606701000,1.56250000],[1765607006000,1.50000000],[1765607277000,1.50000000],[1765607582000,1.52857143],[1765607852000,1.60000000],[1765608189000,1.50000000],[1765608493000,1.50000000],[1765608861000,1.50000000],[1765609102000,1.50000000],[1765609453000,1.50000000],[1765609709000,1.60000000],[1765610029000,1.60000000],[1765610285000,1.63333333],[1765610605000,1.70000000],[1765610909000,1.70000000],[1765611181000,1.70000000],[1765611501000,1.70000000],[1765611949000,1.70000000],[1765612077000,1.70000000],[1765612669000,1.80000000],[1765612989000,1.80000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1765580430000,1.8],[1765580573000,1.7],[1765580909000,1.8],[1765581229000,1.7],[1765581549000,1.7],[1765581805000,1.7],[1765582189000,1.7],[1765582381000,1.6],[1765582701000,1.5],[1765583149000,1.6],[1765583277000,1.5],[1765583597000,1.5],[1765584109000,1.5],[1765584173000,1.5],[1765584493000,1.5],[1765585069000,1.5],[1765585389000,1.5],[1765585709000,1.5],[1765586029000,1.5],[1765586413000,1.5],[1765586605000,1.5],[1765587053000,1.4],[1765587389000,1.5],[1765587469000,1.4],[1765587773000,1.3],[1765588109000,1.3],[1765588429000,1.4],[1765588749000,1.4],[1765589005000,1.4],[1765589389000,1.4],[1765589581000,1.4],[1765589870000,1.4],[1765590206000,1.4],[1765590493000,1.4],[1765591070000,1.4],[1765591454000,1.4],[1765591709000,1.4],[1765592029000,1.4],[1765592349000,1.4],[1765592605000,1.5],[1765592989000,1.5],[1765593181000,1.4],[1765593501000,1.4],[1765593949000,1.4],[1765594141000,1.4],[1765594669000,1.4],[1765595117000,1.4],[1765595309000,1.4],[1765595629000,1.4],[1765595949000,1.5],[1765596205000,1.5],[1765596589000,1.5],[1765596845000,1.4],[1765597101000,1.4],[1765597549000,1.5],[1765597677000,1.5],[1765598061000,1.5],[1765598509000,1.5],[1765598573000,1.5],[1765599053000,1.5],[1765599181000,1.5],[1765599453000,1.5],[1765599790000,1.5],[1765600077000,1.5],[1765600351000,1.4],[1765600652000,1.4],[1765600973000,1.5],[1765601310000,1.5],[1765601552000,1.5],[1765601852000,1.5],[1765602174000,1.6],[1765602477000,1.5],[1765602751000,1.5],[1765603052000,1.5],[1765603373000,1.5],[1765603714000,1.5],[1765603983000,1.5],[1765604254000,1.5],[1765604574000,1.5],[1765604877000,1.5],[1765605151000,1.5],[1765605452000,1.5],[1765605773000,1.5],[1765606077000,1.5],[1765606381000,1.5],[1765606701000,1.4],[1765607006000,1.4],[1765607277000,1.4],[1765607582000,1.4],[1765607852000,1.5],[1765608189000,1.4],[1765608493000,1.4],[1765608861000,1.4],[1765609102000,1.4],[1765609453000,1.4],[1765609709000,1.5],[1765610029000,1.5],[1765610285000,1.5],[1765610605000,1.6],[1765610909000,1.6],[1765611181000,1.6],[1765611501000,1.6],[1765611949000,1.6],[1765612077000,1.6],[1765612669000,1.7],[1765612989000,1.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: [[1765580430000,99.00000000],[1765580573000,99.00000000],[1765580909000,99.00000000],[1765581229000,99.00000000],[1765581549000,99.00000000],[1765581805000,99.00000000],[1765582189000,99.00000000],[1765582381000,99.00000000],[1765582701000,99.00000000],[1765583149000,99.00000000],[1765583277000,99.00000000],[1765583597000,99.00000000],[1765584109000,99.00000000],[1765584173000,99.00000000],[1765584493000,99.00000000],[1765585069000,99.00000000],[1765585389000,99.00000000],[1765585709000,99.00000000],[1765586029000,99.00000000],[1765586413000,99.00000000],[1765586605000,99.00000000],[1765587053000,99.00000000],[1765587389000,99.00000000],[1765587469000,99.00000000],[1765587773000,99.00000000],[1765588109000,99.00000000],[1765588429000,99.00000000],[1765588749000,99.00000000],[1765589005000,99.00000000],[1765589389000,99.00000000],[1765589581000,99.00000000],[1765589870000,99.00000000],[1765590206000,99.00000000],[1765590493000,99.00000000],[1765591070000,99.00000000],[1765591454000,99.00000000],[1765591709000,99.00000000],[1765592029000,99.00000000],[1765592349000,99.00000000],[1765592605000,99.00000000],[1765592989000,99.00000000],[1765593181000,99.00000000],[1765593501000,99.00000000],[1765593949000,99.00000000],[1765594141000,99.00000000],[1765594669000,99.00000000],[1765595117000,99.00000000],[1765595309000,99.00000000],[1765595629000,99.00000000],[1765595949000,99.00000000],[1765596205000,99.00000000],[1765596589000,99.00000000],[1765596845000,99.00000000],[1765597101000,99.00000000],[1765597549000,99.00000000],[1765597677000,99.00000000],[1765598061000,99.00000000],[1765598509000,99.00000000],[1765598573000,99.00000000],[1765599053000,99.00000000],[1765599181000,99.00000000],[1765599453000,99.00000000],[1765599790000,99.00000000],[1765600077000,99.00000000],[1765600351000,99.00000000],[1765600652000,99.00000000],[1765600973000,99.00000000],[1765601310000,99.00000000],[1765601552000,99.00000000],[1765601852000,99.00000000],[1765602174000,99.00000000],[1765602477000,99.00000000],[1765602751000,99.00000000],[1765603052000,99.00000000],[1765603373000,99.00000000],[1765603714000,99.00000000],[1765603983000,99.00000000],[1765604254000,99.00000000],[1765604574000,99.00000000],[1765604877000,99.00000000],[1765605151000,99.00000000],[1765605452000,99.00000000],[1765605773000,99.00000000],[1765606077000,99.00000000],[1765606381000,99.00000000],[1765606701000,99.00000000],[1765607006000,99.00000000],[1765607277000,99.00000000],[1765607582000,99.00000000],[1765607852000,99.00000000],[1765608189000,99.00000000],[1765608493000,99.00000000],[1765608861000,99.00000000],[1765609102000,99.00000000],[1765609453000,99.00000000],[1765609709000,99.00000000],[1765610029000,99.00000000],[1765610285000,99.00000000],[1765610605000,99.00000000],[1765610909000,99.00000000],[1765611181000,99.00000000],[1765611501000,99.00000000],[1765611949000,99.00000000],[1765612077000,99.00000000],[1765612669000,99.00000000],[1765612989000,99.00000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1765580430000,1030.1],[1765580573000,1030.3],[1765580909000,1030.4],[1765581229000,1030.2],[1765581549000,1030.2],[1765581805000,1030.2],[1765582189000,1030.2],[1765582381000,1030.2],[1765582701000,1030.2],[1765583149000,1030.2],[1765583277000,1030.1],[1765583597000,1030.1],[1765584109000,1029.9],[1765584173000,1030.2],[1765584493000,1030.2],[1765585069000,1030.3],[1765585389000,1030.2],[1765585709000,1030.1],[1765586029000,1030.2],[1765586413000,1030.2],[1765586605000,1030.3],[1765587053000,1030.3],[1765587389000,1030.1],[1765587469000,1030.1],[1765587773000,1030.3],[1765588109000,1030.2],[1765588429000,1030.3],[1765588749000,1030.3],[1765589005000,1030.4],[1765589389000,1030.3],[1765589581000,1030.3],[1765589870000,1030.2],[1765590206000,1030.3],[1765590493000,1030.3],[1765591070000,1030.2],[1765591454000,1030.2],[1765591709000,1030.3],[1765592029000,1030.1],[1765592349000,1030],[1765592605000,1030],[1765592989000,1029.9],[1765593181000,1030],[1765593501000,1030],[1765593949000,1029.8],[1765594141000,1029.8],[1765594669000,1029.9],[1765595117000,1029.8],[1765595309000,1029.7],[1765595629000,1029.6],[1765595949000,1029.9],[1765596205000,1030],[1765596589000,1029.9],[1765596845000,1029.8],[1765597101000,1029.8],[1765597549000,1029.9],[1765597677000,1029.9],[1765598061000,1029.9],[1765598509000,1030.1],[1765598573000,1029.8],[1765599053000,1029.9],[1765599181000,1030],[1765599453000,1030],[1765599790000,1030.1],[1765600077000,1030.1],[1765600351000,1030.1],[1765600652000,1030.2],[1765600973000,1030.1],[1765601310000,1030.1],[1765601552000,1030.2],[1765601852000,1030.1],[1765602174000,1030.2],[1765602477000,1030.3],[1765602751000,1030.3],[1765603052000,1030.5],[1765603373000,1030.5],[1765603714000,1030.4],[1765603983000,1030.5],[1765604254000,1030.5],[1765604574000,1030.6],[1765604877000,1030.5],[1765605151000,1030.6],[1765605452000,1030.5],[1765605773000,1030.7],[1765606077000,1030.7],[1765606381000,1030.7],[1765606701000,1030.7],[1765607006000,1030.7],[1765607277000,1030.8],[1765607582000,1030.8],[1765607852000,1030.9],[1765608189000,1031.1],[1765608493000,1031.1],[1765608861000,1031.2],[1765609102000,1031.3],[1765609453000,1031.4],[1765609709000,1031.3],[1765610029000,1031.4],[1765610285000,1031.3],[1765610605000,1031.5],[1765610909000,1031.5],[1765611181000,1031.5],[1765611501000,1031.4],[1765611949000,1031.3],[1765612077000,1031.3],[1765612669000,1031.5],[1765612989000,1031.6],], 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: [[1765580430000,0],[1765580573000,0],[1765580909000,0],[1765581229000,0.576],[1765581549000,0],[1765581805000,0],[1765582189000,0.839999988],[1765582381000,1.44],[1765582701000,1.71],[1765583149000,0.18],[1765583277000,0.99],[1765583597000,0],[1765584109000,0],[1765584173000,0],[1765584493000,0.432],[1765585069000,0],[1765585389000,0],[1765585709000,0],[1765586029000,0],[1765586413000,0.479999988],[1765586605000,0],[1765587053000,0],[1765587389000,0],[1765587469000,0],[1765587773000,0],[1765588109000,0],[1765588429000,0],[1765588749000,0],[1765589005000,0.72],[1765589389000,0],[1765589581000,0],[1765589870000,0],[1765590206000,0],[1765590493000,0],[1765591070000,0],[1765591454000,0],[1765591709000,0],[1765592029000,0],[1765592349000,0.18],[1765592605000,0],[1765592989000,0.18],[1765593181000,0],[1765593501000,0],[1765593949000,0],[1765594141000,0],[1765594669000,0.36],[1765595117000,0],[1765595309000,0],[1765595629000,0],[1765595949000,0],[1765596205000,0.18],[1765596589000,0],[1765596845000,0],[1765597101000,0],[1765597549000,0],[1765597677000,0],[1765598061000,0],[1765598509000,0],[1765598573000,0],[1765599053000,0],[1765599181000,0],[1765599453000,0],[1765599790000,0.54],[1765600077000,0.060000012],[1765600351000,0.462857148],[1765600652000,0.225],[1765600973000,0.039999996],[1765601310000,0.36],[1765601552000,0],[1765601852000,0.102857148],[1765602174000,0],[1765602477000,0.09],[1765602751000,0.288],[1765603052000,0.411428556],[1765603373000,0.079999992],[1765603714000,0.240000012],[1765603983000,0],[1765604254000,0],[1765604574000,0],[1765604877000,0],[1765605151000,0],[1765605452000,0],[1765605773000,0.079999992],[1765606077000,0],[1765606381000,0.205714296],[1765606701000,1.485],[1765607006000,0],[1765607277000,0],[1765607582000,0],[1765607852000,0.072],[1765608189000,0.240000012],[1765608493000,0],[1765608861000,0],[1765609102000,0],[1765609453000,0],[1765609709000,0],[1765610029000,0],[1765610285000,0],[1765610605000,0.18],[1765610909000,0.240000012],[1765611181000,1.008],[1765611501000,0.839999988],[1765611949000,2.52],[1765612077000,0.81],[1765612669000,0],[1765612989000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1765580430000,0],[1765580573000,0],[1765580909000,0],[1765581229000,1.008],[1765581549000,0],[1765581805000,0],[1765582189000,1.680000012],[1765582381000,2.52],[1765582701000,1.89],[1765583149000,1.26],[1765583277000,1.26],[1765583597000,0],[1765584109000,0],[1765584173000,0],[1765584493000,1.008],[1765585069000,0],[1765585389000,0],[1765585709000,0],[1765586029000,0],[1765586413000,0.839999988],[1765586605000,0],[1765587053000,0],[1765587389000,0],[1765587469000,0],[1765587773000,0],[1765588109000,0],[1765588429000,0],[1765588749000,0],[1765589005000,0.839999988],[1765589389000,0],[1765589581000,0],[1765589870000,0],[1765590206000,0],[1765590493000,0],[1765591070000,0],[1765591454000,0],[1765591709000,0],[1765592029000,0],[1765592349000,0.63],[1765592605000,0],[1765592989000,1.26],[1765593181000,0],[1765593501000,0],[1765593949000,0],[1765594141000,0],[1765594669000,0.63],[1765595117000,0],[1765595309000,0],[1765595629000,0],[1765595949000,0],[1765596205000,1.26],[1765596589000,0],[1765596845000,0],[1765597101000,0],[1765597549000,0],[1765597677000,0],[1765598061000,0],[1765598509000,0],[1765598573000,0],[1765599053000,0],[1765599181000,0],[1765599453000,0],[1765599790000,2.099999988],[1765600077000,0.420000012],[1765600351000,1.8],[1765600652000,1.26],[1765600973000,0.280000008],[1765601310000,0.72],[1765601552000,0],[1765601852000,0.72],[1765602174000,0],[1765602477000,0.63],[1765602751000,0.504],[1765603052000,1.44],[1765603373000,0.280000008],[1765603714000,1.26],[1765603983000,0],[1765604254000,0],[1765604574000,0],[1765604877000,0],[1765605151000,0],[1765605452000,0],[1765605773000,0.560000016],[1765606077000,0],[1765606381000,0.36],[1765606701000,2.52],[1765607006000,0],[1765607277000,0],[1765607582000,0],[1765607852000,0.504],[1765608189000,1.26],[1765608493000,0],[1765608861000,0],[1765609102000,0],[1765609453000,0],[1765609709000,0],[1765610029000,0],[1765610285000,0],[1765610605000,1.26],[1765610909000,1.680000012],[1765611181000,2.016],[1765611501000,1.680000012],[1765611949000,3.78],[1765612077000,1.89],[1765612669000,0],[1765612989000,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: [[1765580430000,43.00000000],[1765580573000,70.33333333],[1765580909000,20.00000000],[1765581229000,202.00000000],[1765581549000,10.75000000],[1765581805000,17.50000000],[1765582189000,238.66666667],[1765582381000,311.50000000],[1765582701000,329.00000000],[1765583149000,356.00000000],[1765583277000,339.25000000],[1765583597000,99.00000000],[1765584109000,31.00000000],[1765584173000,66.83333333],[1765584493000,145.00000000],[1765585069000,16.00000000],[1765585389000,47.00000000],[1765585709000,0.00000000],[1765586029000,37.25000000],[1765586413000,172.66666667],[1765586605000,72.00000000],[1765587053000,60.00000000],[1765587389000,56.00000000],[1765587469000,72.20000000],[1765587773000,58.80000000],[1765588109000,74.00000000],[1765588429000,59.33333333],[1765588749000,7.00000000],[1765589005000,108.33333333],[1765589389000,43.00000000],[1765589581000,65.80000000],[1765589870000,80.33333333],[1765590206000,70.20000000],[1765590493000,65.00000000],[1765591070000,76.16666667],[1765591454000,74.00000000],[1765591709000,75.00000000],[1765592029000,75.00000000],[1765592349000,88.75000000],[1765592605000,74.50000000],[1765592989000,92.50000000],[1765593181000,71.50000000],[1765593501000,80.00000000],[1765593949000,71.00000000],[1765594141000,63.33333333],[1765594669000,72.00000000],[1765595117000,76.50000000],[1765595309000,70.00000000],[1765595629000,79.00000000],[1765595949000,69.50000000],[1765596205000,53.00000000],[1765596589000,66.00000000],[1765596845000,79.00000000],[1765597101000,63.00000000],[1765597549000,67.00000000],[1765597677000,50.75000000],[1765598061000,56.66666667],[1765598509000,36.00000000],[1765598573000,103.75000000],[1765599053000,106.00000000],[1765599181000,131.50000000],[1765599453000,90.57142857],[1765599790000,95.16666667],[1765600077000,72.16666667],[1765600351000,100.28571429],[1765600652000,86.50000000],[1765600973000,109.77777778],[1765601310000,68.71428571],[1765601552000,52.28571429],[1765601852000,65.14285714],[1765602174000,67.57142857],[1765602477000,72.50000000],[1765602751000,110.00000000],[1765603052000,95.00000000],[1765603373000,74.66666667],[1765603714000,81.16666667],[1765603983000,91.28571429],[1765604254000,90.87500000],[1765604574000,72.85714286],[1765604877000,62.00000000],[1765605151000,89.87500000],[1765605452000,82.33333333],[1765605773000,80.55555556],[1765606077000,75.77777778],[1765606381000,86.42857143],[1765606701000,77.37500000],[1765607006000,72.57142857],[1765607277000,73.14285714],[1765607582000,70.14285714],[1765607852000,69.80000000],[1765608189000,117.00000000],[1765608493000,83.00000000],[1765608861000,85.00000000],[1765609102000,47.00000000],[1765609453000,60.50000000],[1765609709000,87.00000000],[1765610029000,75.66666667],[1765610285000,79.66666667],[1765610605000,93.50000000],[1765610909000,86.33333333],[1765611181000,95.40000000],[1765611501000,93.66666667],[1765611949000,92.50000000],[1765612077000,77.25000000],[1765612669000,104.33333333],[1765612989000,215.50000000],], 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: [[1765580430000,0.00000000],[1765580573000,0.00000000],[1765580909000,0.00000000],[1765581229000,0.00000000],[1765581549000,0.00000000],[1765581805000,0.00000000],[1765582189000,0.00000000],[1765582381000,0.00000000],[1765582701000,0.00000000],[1765583149000,0.00000000],[1765583277000,0.00000000],[1765583597000,0.00000000],[1765584109000,0.00000000],[1765584173000,0.00000000],[1765584493000,0.00000000],[1765585069000,0.00000000],[1765585389000,0.00000000],[1765585709000,0.00000000],[1765586029000,0.00000000],[1765586413000,0.00000000],[1765586605000,0.00000000],[1765587053000,0.00000000],[1765587389000,0.00000000],[1765587469000,0.00000000],[1765587773000,0.00000000],[1765588109000,0.00000000],[1765588429000,0.00000000],[1765588749000,0.00000000],[1765589005000,0.00000000],[1765589389000,0.00000000],[1765589581000,0.00000000],[1765589870000,0.00000000],[1765590206000,0.00000000],[1765590493000,0.00000000],[1765591070000,0.00000000],[1765591454000,0.00000000],[1765591709000,0.00000000],[1765592029000,0.00000000],[1765592349000,0.00000000],[1765592605000,0.00000000],[1765592989000,0.00000000],[1765593181000,0.00000000],[1765593501000,0.00000000],[1765593949000,0.00000000],[1765594141000,0.00000000],[1765594669000,0.00000000],[1765595117000,0.00000000],[1765595309000,0.00000000],[1765595629000,0.00000000],[1765595949000,0.00000000],[1765596205000,0.00000000],[1765596589000,0.00000000],[1765596845000,0.00000000],[1765597101000,0.00000000],[1765597549000,0.00000000],[1765597677000,0.00000000],[1765598061000,0.00000000],[1765598509000,0.00000000],[1765598573000,0.00000000],[1765599053000,0.00000000],[1765599181000,0.00000000],[1765599453000,0.00000000],[1765599790000,0.00000000],[1765600077000,0.00000000],[1765600351000,0.00000000],[1765600652000,0.00000000],[1765600973000,0.00000000],[1765601310000,0.00000000],[1765601552000,0.00000000],[1765601852000,0.00000000],[1765602174000,0.00000000],[1765602477000,0.00000000],[1765602751000,0.00000000],[1765603052000,0.00000000],[1765603373000,0.00000000],[1765603714000,0.00000000],[1765603983000,0.00000000],[1765604254000,0.00000000],[1765604574000,0.00000000],[1765604877000,0.00000000],[1765605151000,0.00000000],[1765605452000,0.00000000],[1765605773000,0.00000000],[1765606077000,0.00000000],[1765606381000,0.00000000],[1765606701000,0.00000000],[1765607006000,0.00000000],[1765607277000,0.00000000],[1765607582000,0.00000000],[1765607852000,0.00000000],[1765608189000,0.50000000],[1765608493000,1.33333333],[1765608861000,0.50000000],[1765609102000,2.00000000],[1765609453000,3.00000000],[1765609709000,3.50000000],[1765610029000,3.33333333],[1765610285000,3.00000000],[1765610605000,5.00000000],[1765610909000,8.00000000],[1765611181000,13.20000000],[1765611501000,14.00000000],[1765611949000,23.50000000],[1765612077000,26.25000000],[1765612669000,24.33333333],[1765612989000,28.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: [[1765580430000,0.00000000],[1765580573000,0.00000000],[1765580909000,0.00000000],[1765581229000,0.00000000],[1765581549000,0.00000000],[1765581805000,0.00000000],[1765582189000,0.00000000],[1765582381000,0.00000000],[1765582701000,0.00000000],[1765583149000,0.00000000],[1765583277000,0.00000000],[1765583597000,0.00000000],[1765584109000,0.00000000],[1765584173000,0.00000000],[1765584493000,0.00000000],[1765585069000,0.00000000],[1765585389000,0.00000000],[1765585709000,0.00000000],[1765586029000,0.00000000],[1765586413000,0.00000000],[1765586605000,0.00000000],[1765587053000,0.00000000],[1765587389000,0.00000000],[1765587469000,0.00000000],[1765587773000,0.00000000],[1765588109000,0.00000000],[1765588429000,0.00000000],[1765588749000,0.00000000],[1765589005000,0.00000000],[1765589389000,0.00000000],[1765589581000,0.00000000],[1765589870000,0.00000000],[1765590206000,0.00000000],[1765590493000,0.00000000],[1765591070000,0.00000000],[1765591454000,0.00000000],[1765591709000,0.00000000],[1765592029000,0.00000000],[1765592349000,0.00000000],[1765592605000,0.00000000],[1765592989000,0.00000000],[1765593181000,0.00000000],[1765593501000,0.00000000],[1765593949000,0.00000000],[1765594141000,0.00000000],[1765594669000,0.00000000],[1765595117000,0.00000000],[1765595309000,0.00000000],[1765595629000,0.00000000],[1765595949000,0.00000000],[1765596205000,0.00000000],[1765596589000,0.00000000],[1765596845000,0.00000000],[1765597101000,0.00000000],[1765597549000,0.00000000],[1765597677000,0.00000000],[1765598061000,0.00000000],[1765598509000,0.00000000],[1765598573000,0.00000000],[1765599053000,0.00000000],[1765599181000,0.00000000],[1765599453000,0.00000000],[1765599790000,0.00000000],[1765600077000,0.00000000],[1765600351000,0.00000000],[1765600652000,0.00000000],[1765600973000,0.00000000],[1765601310000,0.00000000],[1765601552000,0.00000000],[1765601852000,0.00000000],[1765602174000,0.00000000],[1765602477000,0.00000000],[1765602751000,0.00000000],[1765603052000,0.00000000],[1765603373000,0.00000000],[1765603714000,0.00000000],[1765603983000,0.00000000],[1765604254000,0.00000000],[1765604574000,0.00000000],[1765604877000,0.00000000],[1765605151000,0.00000000],[1765605452000,0.00000000],[1765605773000,0.00000000],[1765606077000,0.00000000],[1765606381000,0.00000000],[1765606701000,0.00000000],[1765607006000,0.00000000],[1765607277000,0.00000000],[1765607582000,0.00000000],[1765607852000,0.00000000],[1765608189000,0.00000000],[1765608493000,0.00000000],[1765608861000,0.00000000],[1765609102000,0.00000000],[1765609453000,0.00000000],[1765609709000,0.00000000],[1765610029000,0.00000000],[1765610285000,0.00000000],[1765610605000,0.00000000],[1765610909000,0.00000000],[1765611181000,0.00000000],[1765611501000,0.00000000],[1765611949000,0.00000000],[1765612077000,0.00000000],[1765612669000,0.00000000],[1765612989000,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: [[1765580430000,0.00000000],[1765580573000,0.00000000],[1765580909000,0.00000000],[1765581229000,0.00000000],[1765581549000,0.00000000],[1765581805000,0.00000000],[1765582189000,0.00000000],[1765582381000,0.00000000],[1765582701000,0.00000000],[1765583149000,0.00000000],[1765583277000,0.00000000],[1765583597000,0.00000000],[1765584109000,0.00000000],[1765584173000,0.00000000],[1765584493000,0.00000000],[1765585069000,0.00000000],[1765585389000,0.00000000],[1765585709000,0.00000000],[1765586029000,0.00000000],[1765586413000,0.00000000],[1765586605000,0.00000000],[1765587053000,0.00000000],[1765587389000,0.00000000],[1765587469000,0.00000000],[1765587773000,0.00000000],[1765588109000,0.00000000],[1765588429000,0.00000000],[1765588749000,0.00000000],[1765589005000,0.00000000],[1765589389000,0.00000000],[1765589581000,0.00000000],[1765589870000,0.00000000],[1765590206000,0.00000000],[1765590493000,0.00000000],[1765591070000,0.00000000],[1765591454000,0.00000000],[1765591709000,0.00000000],[1765592029000,0.00000000],[1765592349000,0.00000000],[1765592605000,0.00000000],[1765592989000,0.00000000],[1765593181000,0.00000000],[1765593501000,0.00000000],[1765593949000,0.00000000],[1765594141000,0.00000000],[1765594669000,0.00000000],[1765595117000,0.00000000],[1765595309000,0.00000000],[1765595629000,0.00000000],[1765595949000,0.00000000],[1765596205000,0.00000000],[1765596589000,0.00000000],[1765596845000,0.00000000],[1765597101000,0.00000000],[1765597549000,0.00000000],[1765597677000,0.00000000],[1765598061000,0.00000000],[1765598509000,0.00000000],[1765598573000,0.00000000],[1765599053000,0.00000000],[1765599181000,0.00000000],[1765599453000,0.00000000],[1765599790000,0.00000000],[1765600077000,0.00000000],[1765600351000,0.00000000],[1765600652000,0.00000000],[1765600973000,0.13533333],[1765601310000,0.20300000],[1765601552000,0.20300000],[1765601852000,0.20300000],[1765602174000,0.20300000],[1765602477000,0.20300000],[1765602751000,0.20300000],[1765603052000,0.20300000],[1765603373000,0.20300000],[1765603714000,0.20300000],[1765603983000,0.20300000],[1765604254000,0.20300000],[1765604574000,0.20300000],[1765604877000,0.20300000],[1765605151000,0.20300000],[1765605452000,0.20300000],[1765605773000,0.20300000],[1765606077000,0.20300000],[1765606381000,0.20300000],[1765606701000,0.20300000],[1765607006000,0.20300000],[1765607277000,0.20300000],[1765607582000,0.20300000],[1765607852000,0.20300000],[1765608189000,0.20300000],[1765608493000,0.20300000],[1765608861000,0.20300000],[1765609102000,0.20300000],[1765609453000,0.20300000],[1765609709000,0.20300000],[1765610029000,0.20300000],[1765610285000,0.20300000],[1765610605000,0.20300000],[1765610909000,0.20300000],[1765611181000,0.20300000],[1765611501000,0.20300000],[1765611949000,0.20300000],[1765612077000,0.20300000],[1765612669000,0.20300000],[1765612989000,0.20300000],], 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; }