var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1609887601000,3.60000000],[1609887781000,3.60000000],[1609888081000,3.60000000],[1609888381000,3.52000000],[1609888681000,3.50000000],[1609888981000,3.52000000],[1609889281000,3.50000000],[1609889581000,3.50000000],[1609889881000,3.50000000],[1609890181000,3.44000000],[1609890481000,3.40000000],[1609890781000,3.40000000],[1609891081000,3.40000000],[1609891381000,3.40000000],[1609891681000,3.40000000],[1609891981000,3.40000000],[1609892281000,3.34000000],[1609892581000,3.30000000],[1609892881000,3.34000000],[1609893181000,3.30000000],[1609893481000,3.30000000],[1609893781000,3.30000000],[1609894081000,3.30000000],[1609894381000,3.30000000],[1609894681000,3.30000000],[1609894981000,3.30000000],[1609895281000,3.30000000],[1609895581000,3.30000000],[1609895881000,3.30000000],[1609896181000,3.26000000],[1609896481000,3.30000000],[1609896781000,3.26000000],[1609897081000,3.22000000],[1609897381000,3.20000000],[1609897681000,3.20000000],[1609897982000,3.24000000],[1609898281000,3.20000000],[1609898581000,3.20000000],[1609898881000,3.20000000],[1609899181000,3.18000000],[1609899482000,3.18000000],[1609899781000,3.12000000],[1609900081000,3.12000000],[1609900381000,3.10000000],[1609900681000,3.10000000],[1609900981000,3.10000000],[1609901281000,3.10000000],[1609901581000,3.10000000],[1609901881000,3.10000000],[1609902181000,3.10000000],[1609902481000,3.10000000],[1609902781000,3.10000000],[1609903081000,3.06000000],[1609903381000,3.00000000],[1609903681000,2.92000000],[1609903981000,2.88000000],[1609904281000,2.80000000],[1609904581000,2.80000000],[1609904881000,2.70000000],[1609905181000,2.74000000],[1609905481000,2.70000000],[1609905781000,2.70000000],[1609906081000,2.70000000],[1609906381000,2.64000000],[1609906681000,2.60000000],[1609906981000,2.60000000],[1609907281000,2.64000000],[1609907581000,2.62000000],[1609907881000,2.60000000],[1609908181000,2.60000000],[1609908481000,2.60000000],[1609908781000,2.56000000],[1609909081000,2.52000000],[1609909381000,2.54000000],[1609909681000,2.60000000],[1609909981000,2.60000000],[1609910281000,2.56000000],[1609910581000,2.42000000],[1609910881000,2.28000000],[1609911181000,2.18000000],[1609911481000,2.04000000],[1609911781000,1.86000000],[1609912081000,1.74000000],[1609912381000,1.60000000],[1609912681000,1.28000000],[1609912981000,1.14000000],[1609913281000,1.08000000],[1609913581000,1.06000000],[1609913881000,1.00000000],[1609914181000,0.84000000],[1609914481000,0.70000000],[1609914781000,0.60000000],[1609915081000,0.52000000],[1609915381000,0.46000000],[1609915681000,0.40000000],[1609915981000,0.40000000],[1609916281000,0.36000000],[1609916581000,0.30000000],[1609916881000,0.22000000],[1609917181000,0.20000000],[1609917481000,0.18000000],[1609917781000,0.10000000],[1609918081000,0.10000000],[1609918381000,0.10000000],[1609918681000,0.10000000],[1609918981000,0.10000000],[1609919281000,0.10000000],[1609919581000,0.08000000],[1609919881000,0.04000000],[1609920181000,0.02000000],[1609920481000,0.06000000],[1609920781000,0.08000000],[1609921081000,0.10000000],[1609921381000,0.10000000],[1609921681000,0.10000000],[1609921981000,0.10000000],[1609922281000,0.10000000],[1609922581000,0.12000000],[1609922881000,0.16000000],[1609923181000,0.18000000],[1609923481000,0.18000000],[1609923781000,0.20000000],[1609924081000,0.22000000],[1609924381000,0.22000000],[1609924681000,0.22000000],[1609924981000,0.26000000],[1609925281000,0.28000000],[1609925581000,0.30000000],[1609925881000,0.30000000],[1609926181000,0.26000000],[1609926481000,0.34000000],[1609926781000,0.30000000],[1609927081000,0.34000000],[1609927381000,0.38000000],[1609927681000,0.42000000],[1609927981000,0.40000000],[1609928281000,0.48000000],[1609928581000,0.54000000],[1609928881000,0.62000000],[1609929181000,0.70000000],[1609929481000,0.74000000],[1609929781000,0.72000000],[1609930081000,0.78000000],[1609930381000,0.82000000],[1609930681000,0.96000000],[1609930981000,1.00000000],[1609931281000,0.98000000],[1609931581000,1.10000000],[1609931881000,1.10000000],[1609932181000,1.12000000],[1609932482000,1.20000000],[1609932781000,1.22000000],[1609933081000,1.34000000],[1609933381000,1.30000000],[1609933681000,1.42000000],[1609933981000,1.56000000],[1609934281000,1.68000000],[1609934581000,1.90000000],[1609934881000,2.08000000],[1609935181000,2.02000000],[1609935481000,2.04000000],[1609935781000,2.14000000],[1609936081000,2.20000000],[1609936381000,2.18000000],[1609936681000,2.26000000],[1609936981000,2.30000000],[1609937281000,2.34000000],[1609937581000,2.22000000],[1609937881000,2.24000000],[1609938181000,2.30000000],[1609938481000,2.32000000],[1609938781000,2.32000000],[1609939081000,2.42000000],[1609939381000,2.36000000],[1609939681000,2.34000000],[1609939981000,2.40000000],[1609940281000,2.40000000],[1609940581000,2.44000000],[1609940881000,2.48000000],[1609941181000,2.50000000],[1609941481000,2.50000000],[1609941781000,2.50000000],[1609942081000,2.58000000],[1609942381000,2.64000000],[1609942681000,2.66000000],[1609942981000,2.56000000],[1609943281000,2.50000000],[1609943581000,2.40000000],[1609943881000,2.38000000],[1609944181000,2.42000000],[1609944481000,2.48000000],[1609944781000,2.58000000],[1609945081000,2.40000000],[1609945381000,2.32000000],[1609945681000,2.30000000],[1609945981000,2.32000000],[1609946281000,2.36000000],[1609946581000,2.34000000],[1609946881000,2.18000000],[1609947181000,2.14000000],[1609947481000,2.10000000],[1609947781000,2.12000000],[1609948081000,2.12000000],[1609948381000,2.04000000],[1609948681000,1.96000000],[1609948981000,1.74000000],[1609949281000,1.62000000],[1609949581000,1.58000000],[1609949881000,1.34000000],[1609950181000,1.02000000],[1609950481000,0.90000000],[1609950781000,0.72000000],[1609951081000,0.60000000],[1609951381000,0.46000000],[1609951681000,0.32000000],[1609951981000,0.46000000],[1609952295000,0.56000000],[1609952581000,0.68000000],[1609952881000,0.82000000],[1609953181000,1.16000000],[1609953481000,1.32000000],[1609953781000,1.40000000],[1609954081000,1.40000000],[1609954381000,1.32000000],[1609954681000,1.28000000],[1609954981000,1.20000000],[1609955281000,1.18000000],[1609955581000,1.08000000],[1609955881000,1.00000000],[1609956181000,1.00000000],[1609956481000,1.02000000],[1609956781000,1.00000000],[1609957081000,1.10000000],[1609957381000,1.06000000],[1609957681000,1.00000000],[1609957981000,1.00000000],[1609958281000,1.12000000],[1609958581000,1.20000000],[1609958881000,1.26000000],[1609959181000,1.28000000],[1609959481000,1.20000000],[1609959781000,1.20000000],[1609960081000,1.20000000],[1609960381000,1.10000000],[1609960681000,1.08000000],[1609960982000,0.98000000],[1609961281000,0.88000000],[1609961581000,0.84000000],[1609961881000,0.80000000],[1609962181000,0.76000000],[1609962481000,0.80000000],[1609962781000,0.84000000],[1609963081000,0.84000000],[1609963381000,0.80000000],[1609963681000,0.88000000],[1609963981000,0.90000000],[1609964281000,0.98000000],[1609964581000,1.14000000],[1609964881000,1.18000000],[1609965181000,1.28000000],[1609965481000,1.30000000],[1609965781000,1.30000000],[1609966081000,1.26000000],[1609966381000,1.34000000],[1609966681000,1.40000000],[1609966981000,1.44000000],[1609967281000,1.42000000],[1609967581000,1.42000000],[1609967881000,1.40000000],[1609968181000,1.44000000],[1609968481000,1.52000000],[1609968781000,1.60000000],[1609969081000,1.60000000],[1609969381000,1.54000000],[1609969681000,1.50000000],[1609969981000,1.50000000],[1609970281000,1.46000000],[1609970581000,1.32000000],[1609970881000,1.18000000],[1609971181000,1.14000000],[1609971481000,1.08000000],[1609971781000,1.10000000],[1609972081000,1.06000000],[1609972381000,0.94000000],[1609972681000,0.88000000],[1609972981000,0.78000000],[1609973281000,0.78000000],[1609973581000,0.62000000],[1609973881000,0.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1609957681000,-5.5],[1609957981000,-5.5],[1609958281000,-5.4],[1609958581000,-5.3],[1609958881000,-5.2],[1609959181000,-5.2],[1609959481000,-5.3],[1609959781000,-5.3],[1609960081000,-5.3],[1609960381000,-5.4],[1609960681000,-5.4],[1609961281000,-5.6],[1609961581000,-5.6],[1609961881000,-5.7],[1609962181000,-5.7],[1609962481000,-5.7],[1609962781000,-5.6],[1609963081000,-5.6],[1609963381000,-5.7],[1609963681000,-5.6],[1609963981000,-5.6],[1609964281000,-5.5],[1609964581000,-5.3],[1609964881000,-5.3],[1609965181000,-5.2],[1609965481000,-5.2],[1609965781000,-5.2],[1609966081000,-5.2],[1609966381000,-5.1],[1609966681000,-5.1],[1609966981000,-5],[1609967281000,-5.1],[1609967581000,-5.1],[1609967881000,-5.1],[1609968181000,-5],[1609968481000,-5],[1609968781000,-4.9],[1609969081000,-4.9],[1609969381000,-5],[1609969681000,-5],[1609969981000,-5],[1609970281000,-5],[1609970581000,-5.2],[1609970881000,-5.3],[1609971181000,-5.3],[1609971481000,-5.4],], 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: [[1609957681000,62.36000000],[1609957981000,62.38000000],[1609958281000,62.30000000],[1609958581000,62.32000000],[1609958881000,62.30000000],[1609959181000,62.32000000],[1609959481000,62.32000000],[1609959781000,62.34000000],[1609960081000,62.30000000],[1609960381000,62.30000000],[1609960681000,62.30000000],[1609960981000,62.34000000],[1609961281000,62.38000000],[1609961581000,62.40000000],[1609961881000,62.40000000],[1609962181000,62.40000000],[1609962481000,62.40000000],[1609962781000,62.40000000],[1609963081000,62.40000000],[1609963381000,62.40000000],[1609963681000,62.40000000],[1609963981000,62.40000000],[1609964281000,62.40000000],[1609964581000,62.40000000],[1609964881000,62.40000000],[1609965181000,62.40000000],[1609965481000,62.40000000],[1609965781000,62.40000000],[1609966081000,62.40000000],[1609966381000,62.40000000],[1609966681000,62.40000000],[1609966981000,62.40000000],[1609967281000,62.40000000],[1609967581000,62.40000000],[1609967881000,62.40000000],[1609968181000,62.40000000],[1609968481000,62.40000000],[1609968781000,62.40000000],[1609969081000,62.40000000],[1609969381000,62.40000000],[1609969681000,62.40000000],[1609969981000,62.40000000],[1609970281000,62.40000000],[1609970581000,62.40000000],[1609970881000,62.40000000],[1609971181000,62.40000000],[1609971481000,62.40000000],], 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: 'Rýchlosť vetra (km/h)', data: [[1609887601000,3.120000012],[1609887781000,3.6],[1609888081000,3.312],[1609888381000,3.744],[1609888681000,2.232],[1609888981000,2.664],[1609889281000,3.24],[1609889581000,2.736],[1609889881000,3.744],[1609890181000,4.32],[1609890481000,2.952],[1609890781000,3.816],[1609891081000,4.032],[1609891381000,4.032],[1609891681000,3.888],[1609891981000,3.744],[1609892281000,2.376],[1609892581000,4.248],[1609892881000,7.2],[1609893181000,5.976],[1609893481000,5.256],[1609893781000,6.768],[1609894081000,8.208],[1609894381000,9.504],[1609894681000,8.712],[1609894981000,8.136],[1609895281000,7.92],[1609895581000,6.552],[1609895881000,8.568],[1609896181000,8.928],[1609896481000,8.712],[1609896781000,11.88],[1609897081000,10.368],[1609897381000,7.488],[1609897681000,9.576],[1609897981000,7.992],[1609898281000,10.8],[1609898581000,10.296],[1609898881000,9.648],[1609899181000,14.328],[1609899481000,12.096],[1609899781000,10.728],[1609900081000,10.584],[1609900381000,8.64],[1609900681000,10.584],[1609900981000,9.576],[1609901281000,10.512],[1609901581000,8.712],[1609901881000,9.792],[1609902181000,10.872],[1609902481000,9.72],[1609902781000,7.992],[1609903081000,9.792],[1609903381000,9.144],[1609903681000,10.368],[1609903981000,12.384],[1609904281000,8.64],[1609904581000,11.16],[1609904881000,13.968],[1609905181000,15.408],[1609905481000,12.744],[1609905781000,12.312],[1609906081000,13.536],[1609906381000,9.072],[1609906681000,10.584],[1609906981000,12.168],[1609907281000,12.168],[1609907581000,13.536],[1609907881000,12.96],[1609908181000,11.52],[1609908481000,11.592],[1609908781000,9.36],[1609909081000,11.376],[1609909381000,10.368],[1609909681000,8.784],[1609909981000,9],[1609910281000,10.224],[1609910581000,13.68],[1609910881000,13.608],[1609911181000,12.816],[1609911481000,17.136],[1609911781000,15.192],[1609912081000,10.44],[1609912381000,9.216],[1609912681000,10.224],[1609912981000,9.288],[1609913281000,7.344],[1609913581000,11.016],[1609913881000,10.728],[1609914181000,8.496],[1609914481000,7.56],[1609914781000,8.568],[1609915081000,10.224],[1609915381000,8.496],[1609915681000,8.856],[1609915981000,7.128],[1609916281000,6.624],[1609916581000,7.56],[1609916881000,8.784],[1609917181000,7.632],[1609917481000,9.144],[1609917781000,8.568],[1609918081000,9.288],[1609918381000,7.272],[1609918681000,6.768],[1609918981000,6.624],[1609919281000,4.464],[1609919581000,5.184],[1609919881000,5.904],[1609920181000,6.264],[1609920481000,5.976],[1609920781000,6.264],[1609921081000,6.696],[1609921381000,7.128],[1609921681000,7.272],[1609921981000,6.264],[1609922281000,5.688],[1609922581000,6.552],[1609922881000,5.472],[1609923181000,6.696],[1609923481000,6.84],[1609923781000,5.4],[1609924081000,5.904],[1609924381000,6.048],[1609924681000,6.264],[1609924981000,8.496],[1609925281000,7.704],[1609925581000,9.144],[1609925881000,10.224],[1609926181000,11.016],[1609926481000,12.96],[1609926781000,11.376],[1609927081000,7.272],[1609927381000,8.856],[1609927681000,6.552],[1609927981000,4.104],[1609928281000,4.176],[1609928581000,3.672],[1609928881000,3.384],[1609929181000,3.024],[1609929481000,3.744],[1609929781000,4.392],[1609930081000,2.736],[1609930381000,0.216],[1609930681000,0.36],[1609930981000,2.088],[1609931281000,3.888],[1609931581000,3.96],[1609931881000,3.24],[1609932181000,0.792],[1609932481000,3.24],[1609932781000,2.16],[1609933081000,0],[1609933381000,2.088],[1609933681000,0.144],[1609933981000,1.08],[1609934281000,0.576],[1609934581000,1.512],[1609934881000,3.024],[1609935181000,0.504],[1609935481000,0.72],[1609935781000,0],[1609936081000,0],[1609936381000,0],[1609936681000,0],[1609936981000,0],[1609937281000,0],[1609937581000,0],[1609937881000,1.008],[1609938181000,3.672],[1609938481000,3.24],[1609938781000,0.36],[1609939081000,0],[1609939381000,0],[1609939681000,0.864],[1609939981000,0.72],[1609940281000,0.504],[1609940581000,0.072],[1609940881000,0],[1609941181000,0],[1609941481000,0.576],[1609941781000,0],[1609942081000,0],[1609942381000,0],[1609942681000,0],[1609942981000,0],[1609943281000,1.728],[1609943581000,2.016],[1609943881000,1.512],[1609944181000,0.216],[1609944481000,0],[1609944781000,0],[1609945081000,1.8],[1609945381000,3.168],[1609945681000,1.512],[1609945981000,2.016],[1609946281000,0.792],[1609946581000,0.288],[1609946881000,2.088],[1609947181000,3.744],[1609947481000,1.512],[1609947781000,0.144],[1609948081000,0],[1609948381000,0.144],[1609948681000,0],[1609948981000,0.216],[1609949281000,3.168],[1609949581000,0.144],[1609949881000,0.36],[1609950181000,0],[1609950481000,0],[1609950781000,0],[1609951081000,0],[1609951381000,0.504],[1609951681000,1.944],[1609951981000,3.672],[1609952281000,4.824],[1609952581000,4.968],[1609952881000,5.688],[1609953181000,11.448],[1609953481000,10.8],[1609953781000,8.784],[1609954081000,4.32],[1609954381000,1.872],[1609954681000,4.752],[1609954981000,7.128],[1609955281000,6.48],[1609955581000,6.048],[1609955881000,8.784],[1609956181000,7.776],[1609956481000,5.976],[1609956781000,9.36],[1609957081000,6.624],[1609957381000,6.984],[1609957681000,7.488],[1609957981000,8.424],[1609958281000,7.704],[1609958581000,7.992],[1609958881000,6.264],[1609959181000,7.488],[1609959481000,7.704],[1609959781000,5.544],[1609960081000,4.824],[1609960381000,5.472],[1609960681000,4.104],[1609960981000,4.104],[1609961281000,3.384],[1609961581000,4.176],[1609961881000,4.032],[1609962181000,3.96],[1609962481000,5.256],[1609962781000,6.48],[1609963081000,3.672],[1609963381000,6.192],[1609963681000,7.416],[1609963981000,7.2],[1609964281000,10.728],[1609964581000,10.728],[1609964881000,10.512],[1609965181000,9.288],[1609965481000,11.16],[1609965781000,11.376],[1609966081000,9.216],[1609966381000,13.896],[1609966681000,9.432],[1609966981000,9.648],[1609967281000,11.448],[1609967581000,11.16],[1609967881000,12.96],[1609968181000,10.656],[1609968481000,13.248],[1609968781000,14.112],[1609969081000,11.592],[1609969381000,15.768],[1609969681000,12.96],[1609969981000,12.888],[1609970281000,15.624],[1609970581000,13.752],[1609970881000,13.248],[1609971181000,14.04],[1609971481000,13.968],[1609971781000,14.616],[1609972081000,13.032],[1609972381000,12.456],[1609972681000,14.04],[1609972981000,13.248],[1609973281000,13.032],[1609973581000,8.928],[1609973881000,11.7],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1609887601000,4.6548],[1609887781000,5.60808],[1609888081000,5.08536],[1609888381000,5.922],[1609888681000,3.51432],[1609888981000,4.08816],[1609889281000,5.0904],[1609889581000,4.33296],[1609889881000,5.82768],[1609890181000,6.82992],[1609890481000,4.57488],[1609890781000,5.9256],[1609891081000,6.31224],[1609891381000,6.57648],[1609891681000,6.29712],[1609891981000,5.91048],[1609892281000,3.62016],[1609892581000,6.75504],[1609892881000,11.66832],[1609893181000,9.45],[1609893481000,8.21304],[1609893781000,10.82664],[1609894081000,13.16736],[1609894381000,15.16464],[1609894681000,14.19984],[1609894981000,13.2264],[1609895281000,12.5856],[1609895581000,10.51488],[1609895881000,13.81968],[1609896181000,14.256],[1609896481000,14.166],[1609896781000,19.24992],[1609897081000,16.65864],[1609897381000,11.952],[1609897681000,15.56136],[1609897981000,13.04496],[1609898281000,18.00864],[1609898581000,17.27208],[1609898881000,15.8616],[1609899181000,23.68656],[1609899481000,20.28456],[1609899781000,17.54856],[1609900081000,17.21016],[1609900381000,14.24232],[1609900681000,17.46432],[1609900981000,15.9444],[1609901281000,17.0136],[1609901581000,14.166],[1609901881000,16.53696],[1609902181000,18.04536],[1609902481000,16.09848],[1609902781000,13.06368],[1609903081000,16.19424],[1609903381000,14.95224],[1609903681000,17.2764],[1609903981000,20.60208],[1609904281000,14.04576],[1609904581000,18.33696],[1609904881000,23.238],[1609905181000,25.32888],[1609905481000,20.91816],[1609905781000,20.32344],[1609906081000,22.60368],[1609906381000,15.2064],[1609906681000,17.3772],[1609906981000,19.4652],[1609907281000,20.24856],[1609907581000,22.46328],[1609907881000,21.59856],[1609908181000,18.81864],[1609908481000,18.94752],[1609908781000,15.1956],[1609909081000,18.5184],[1609909381000,16.80552],[1609909681000,14.904],[1609909981000,14.96448],[1609910281000,16.81632],[1609910581000,22.24296],[1609910881000,22.4172],[1609911181000,21.23136],[1609911481000,29.0556],[1609911781000,25.20576],[1609912081000,17.14968],[1609912381000,14.87304],[1609912681000,16.81776],[1609912981000,15.09696],[1609913281000,11.9988],[1609913581000,18.7308],[1609913881000,17.51688],[1609914181000,13.70952],[1609914481000,12.1284],[1609914781000,13.62096],[1609915081000,16.74216],[1609915381000,13.53672],[1609915681000,14.13792],[1609915981000,11.04336],[1609916281000,10.42128],[1609916581000,11.63952],[1609916881000,13.78008],[1609917181000,11.8548],[1609917481000,14.44824],[1609917781000,13.31856],[1609918081000,14.6556],[1609918381000,11.38608],[1609918681000,10.4724],[1609918981000,10.3608],[1609919281000,7.13016],[1609919581000,8.08848],[1609919881000,9.06984],[1609920181000,9.54288],[1609920481000,9.20736],[1609920781000,9.67032],[1609921081000,10.27008],[1609921381000,11.09448],[1609921681000,11.23704],[1609921981000,9.70992],[1609922281000,8.73504],[1609922581000,10.05552],[1609922881000,8.26992],[1609923181000,10.28088],[1609923481000,10.944],[1609923781000,8.36784],[1609924081000,9.11232],[1609924381000,9.3204],[1609924681000,9.60984],[1609924981000,13.0932],[1609925281000,11.86056],[1609925581000,13.90104],[1609925881000,15.624],[1609926181000,16.9884],[1609926481000,19.84968],[1609926781000,17.73072],[1609927081000,10.926],[1609927381000,13.896],[1609927681000,10.02312],[1609927981000,6.3864],[1609928281000,6.678],[1609928581000,5.80104],[1609928881000,5.34168],[1609929181000,4.76064],[1609929481000,5.80392],[1609929781000,7.0596],[1609930081000,4.27464],[1609930381000,0.36072],[1609930681000,0.59472],[1609930981000,3.15504],[1609931281000,6.1092],[1609931581000,6.22872],[1609931881000,5.0364],[1609932181000,1.33128],[1609932481000,5.03496],[1609932781000,3.44952],[1609933081000,0],[1609933381000,3.4344],[1609933681000,0.27072],[1609933981000,1.86264],[1609934281000,0.98928],[1609934581000,3.1464],[1609934881000,4.96224],[1609935181000,0.7272],[1609935481000,1.12536],[1609935781000,0],[1609936081000,0],[1609936381000,0],[1609936681000,0],[1609936981000,0.10152],[1609937281000,0],[1609937581000,0],[1609937881000,1.61928],[1609938181000,5.76],[1609938481000,5.2164],[1609938781000,0.51768],[1609939081000,0],[1609939381000,0],[1609939681000,1.38312],[1609939981000,1.29888],[1609940281000,0.75024],[1609940581000,0.14184],[1609940881000,0],[1609941181000,0],[1609941481000,0.8352],[1609941781000,0],[1609942081000,0],[1609942381000,0],[1609942681000,0],[1609942981000,0],[1609943281000,2.50848],[1609943581000,2.96712],[1609943881000,2.33064],[1609944181000,0.36648],[1609944481000,0],[1609944781000,0],[1609945081000,2.74392],[1609945381000,4.93056],[1609945681000,2.26152],[1609945981000,3.18672],[1609946281000,1.25064],[1609946581000,0.58176],[1609946881000,3.44016],[1609947181000,5.6448],[1609947481000,2.41056],[1609947781000,0.25848],[1609948081000,0],[1609948381000,0.22968],[1609948681000,0],[1609948981000,0.34992],[1609949281000,4.72608],[1609949581000,0.27072],[1609949881000,0.59904],[1609950181000,0],[1609950481000,0],[1609950781000,0],[1609951081000,0],[1609951381000,0.87768],[1609951681000,2.8692],[1609951981000,5.73408],[1609952281000,7.3944],[1609952581000,7.58088],[1609952881000,8.874],[1609953181000,17.6616],[1609953481000,16.86312],[1609953781000,13.62168],[1609954081000,6.82416],[1609954381000,2.9916],[1609954681000,7.4664],[1609954981000,11.3868],[1609955281000,10.03464],[1609955581000,9.6228],[1609955881000,13.88808],[1609956181000,12.32352],[1609956481000,9.50976],[1609956781000,15.2604],[1609957081000,10.79424],[1609957381000,11.12616],[1609957681000,12.4596],[1609957981000,13.77648],[1609958281000,12.51432],[1609958581000,13.0248],[1609958881000,10.21464],[1609959181000,12.13416],[1609959481000,12.18672],[1609959781000,8.77248],[1609960081000,7.64136],[1609960381000,8.8344],[1609960681000,6.5736],[1609960981000,6.4872],[1609961281000,5.26752],[1609961581000,6.52032],[1609961881000,6.31368],[1609962181000,6.31728],[1609962481000,8.60472],[1609962781000,10.3428],[1609963081000,6.09552],[1609963381000,9.91008],[1609963681000,12.06792],[1609963981000,11.7864],[1609964281000,18.22536],[1609964581000,17.7912],[1609964881000,17.67384],[1609965181000,15.33816],[1609965481000,18.22392],[1609965781000,18.41544],[1609966081000,15.02352],[1609966381000,22.81752],[1609966681000,15.36264],[1609966981000,16.4196],[1609967281000,18.558],[1609967581000,18.0432],[1609967881000,21.43008],[1609968181000,18.11448],[1609968481000,21.65328],[1609968781000,23.57424],[1609969081000,19.38528],[1609969381000,25.86528],[1609969681000,21.9204],[1609969981000,21.49632],[1609970281000,25.8984],[1609970581000,22.70016],[1609970881000,22.26312],[1609971181000,23.82408],[1609971481000,23.43816],[1609971781000,25.33104],[1609972081000,22.0212],[1609972381000,21.13632],[1609972681000,23.77296],[1609972981000,21.88944],[1609973281000,21.77496],[1609973581000,14.66568],[1609973881000,19.5336],], 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: [[1609887601000,110.46666667],[1609887781000,108.40000000],[1609888081000,97.78000000],[1609888381000,90.42000000],[1609888681000,95.32000000],[1609888981000,89.18000000],[1609889281000,86.32000000],[1609889581000,52.76000000],[1609889881000,85.10000000],[1609890181000,87.56000000],[1609890481000,90.82000000],[1609890781000,59.72000000],[1609891081000,42.14000000],[1609891381000,56.08000000],[1609891681000,66.26000000],[1609891981000,72.40000000],[1609892281000,103.92000000],[1609892581000,47.88000000],[1609892881000,50.30000000],[1609893181000,51.54000000],[1609893481000,40.46000000],[1609893781000,45.00000000],[1609894081000,40.92000000],[1609894381000,44.20000000],[1609894681000,48.28000000],[1609894981000,42.16000000],[1609895281000,39.26000000],[1609895581000,38.46000000],[1609895881000,33.16000000],[1609896181000,62.60000000],[1609896481000,47.46000000],[1609896781000,38.44000000],[1609897081000,45.02000000],[1609897381000,59.72000000],[1609897681000,65.86000000],[1609897981000,54.44000000],[1609898281000,60.52000000],[1609898581000,54.82000000],[1609898881000,45.82000000],[1609899181000,41.72000000],[1609899481000,63.84000000],[1609899781000,61.38000000],[1609900081000,47.04000000],[1609900381000,67.94000000],[1609900681000,82.64000000],[1609900981000,78.16000000],[1609901281000,72.40000000],[1609901581000,69.16000000],[1609901881000,71.98000000],[1609902181000,72.82000000],[1609902481000,58.08000000],[1609902781000,69.14000000],[1609903081000,60.52000000],[1609903381000,63.42000000],[1609903681000,60.14000000],[1609903981000,84.28000000],[1609904281000,53.18000000],[1609904581000,50.32000000],[1609904881000,40.10000000],[1609905181000,34.36000000],[1609905481000,34.78000000],[1609905781000,35.56000000],[1609906081000,31.50000000],[1609906381000,65.04000000],[1609906681000,54.82000000],[1609906981000,44.18000000],[1609907281000,52.76000000],[1609907581000,46.24000000],[1609907881000,36.42000000],[1609908181000,38.46000000],[1609908481000,38.44000000],[1609908781000,37.20000000],[1609909081000,34.36000000],[1609909381000,40.48000000],[1609909681000,68.32000000],[1609909981000,66.28000000],[1609910281000,58.08000000],[1609910581000,84.26000000],[1609910881000,77.30000000],[1609911181000,73.22000000],[1609911481000,78.96000000],[1609911781000,82.22000000],[1609912081000,77.32000000],[1609912381000,87.54000000],[1609912681000,68.30000000],[1609912981000,60.56000000],[1609913281000,66.70000000],[1609913581000,69.96000000],[1609913881000,56.02000000],[1609914181000,48.70000000],[1609914481000,39.26000000],[1609914781000,36.80000000],[1609915081000,33.94000000],[1609915381000,39.26000000],[1609915681000,27.84000000],[1609915981000,25.76000000],[1609916281000,17.18000000],[1609916581000,21.70000000],[1609916881000,26.20000000],[1609917181000,39.28000000],[1609917481000,45.00000000],[1609917781000,45.00000000],[1609918081000,45.00000000],[1609918381000,45.00000000],[1609918681000,45.00000000],[1609918981000,45.00000000],[1609919281000,45.00000000],[1609919581000,45.00000000],[1609919881000,45.00000000],[1609920181000,45.00000000],[1609920481000,45.00000000],[1609920781000,45.00000000],[1609921081000,45.00000000],[1609921381000,45.00000000],[1609921681000,45.00000000],[1609921981000,45.00000000],[1609922281000,45.00000000],[1609922581000,45.00000000],[1609922881000,45.00000000],[1609923181000,45.00000000],[1609923481000,45.00000000],[1609923781000,34.76000000],[1609924081000,24.54000000],[1609924381000,15.94000000],[1609924681000,35.58000000],[1609924981000,18.42000000],[1609925281000,27.42000000],[1609925581000,17.16000000],[1609925881000,9.40000000],[1609926181000,18.82000000],[1609926481000,24.54000000],[1609926781000,27.42000000],[1609927081000,18.82000000],[1609927381000,23.34000000],[1609927681000,49.90000000],[1609927981000,46.24000000],[1609928281000,30.66000000],[1609928581000,46.22000000],[1609928881000,48.70000000],[1609929181000,36.00000000],[1609929481000,5.72000000],[1609929781000,47.46000000],[1609930081000,20.86000000],[1609930381000,43.36000000],[1609930681000,25.36000000],[1609930981000,0.00000000],[1609931281000,1.64000000],[1609931581000,19.62000000],[1609931881000,22.50000000],[1609932181000,15.96000000],[1609932481000,19.24000000],[1609932781000,16.78000000],[1609933081000,0.00000000],[1609933381000,0.00000000],[1609933681000,0.82000000],[1609933981000,25.38000000],[1609934281000,56.04000000],[1609934581000,107.58000000],[1609934881000,104.32000000],[1609935181000,0.00000000],[1609935481000,18.00000000],[1609935781000,16.36000000],[1609936081000,0.00000000],[1609936381000,0.00000000],[1609936681000,274.90000000],[1609936981000,315.00000000],[1609937281000,315.00000000],[1609937581000,315.00000000],[1609937881000,132.14000000],[1609938181000,18.40000000],[1609938481000,6.54000000],[1609938781000,0.00000000],[1609939081000,113.32000000],[1609939381000,252.82000000],[1609939681000,257.32000000],[1609939981000,279.40000000],[1609940281000,275.74000000],[1609940581000,270.00000000],[1609940881000,270.00000000],[1609941181000,229.90000000],[1609941481000,180.00000000],[1609941781000,180.00000000],[1609942081000,180.00000000],[1609942381000,180.00000000],[1609942681000,180.00000000],[1609942981000,180.00000000],[1609943281000,182.46000000],[1609943581000,190.22000000],[1609943881000,175.90000000],[1609944181000,180.00000000],[1609944481000,180.00000000],[1609944781000,180.00000000],[1609945081000,183.28000000],[1609945381000,180.00000000],[1609945681000,190.24000000],[1609945981000,191.06000000],[1609946281000,209.46000000],[1609946581000,222.54000000],[1609946881000,220.08000000],[1609947181000,189.82000000],[1609947481000,183.26000000],[1609947781000,189.00000000],[1609948081000,225.00000000],[1609948381000,181.64000000],[1609948681000,180.00000000],[1609948981000,223.36000000],[1609949281000,268.76000000],[1609949581000,270.00000000],[1609949881000,282.66000000],[1609950181000,230.72000000],[1609950481000,159.14000000],[1609950781000,152.18000000],[1609951081000,193.90000000],[1609951381000,204.54000000],[1609951681000,163.24000000],[1609951981000,158.74000000],[1609952281000,145.20000000],[1609952581000,159.96000000],[1609952881000,152.18000000],[1609953181000,152.18000000],[1609953481000,171.40000000],[1609953781000,199.24000000],[1609954081000,188.58000000],[1609954381000,108.02000000],[1609954681000,191.02000000],[1609954981000,189.02000000],[1609955281000,198.00000000],[1609955581000,182.88000000],[1609955881000,184.10000000],[1609956181000,188.98000000],[1609956481000,198.40000000],[1609956781000,202.92000000],[1609957081000,214.34000000],[1609957381000,224.18000000],[1609957681000,217.62000000],[1609957981000,210.26000000],[1609958281000,207.82000000],[1609958581000,198.84000000],[1609958881000,203.32000000],[1609959181000,201.70000000],[1609959481000,191.44000000],[1609959781000,221.72000000],[1609960081000,213.96000000],[1609960381000,215.58000000],[1609960681000,224.98000000],[1609960981000,224.60000000],[1609961281000,219.26000000],[1609961581000,198.80000000],[1609961881000,196.36000000],[1609962181000,204.96000000],[1609962481000,212.32000000],[1609962781000,216.00000000],[1609963081000,218.46000000],[1609963381000,218.48000000],[1609963681000,226.62000000],[1609963981000,223.38000000],[1609964281000,229.48000000],[1609964581000,228.26000000],[1609964881000,233.18000000],[1609965181000,221.72000000],[1609965481000,186.96000000],[1609965781000,202.10000000],[1609966081000,223.34000000],[1609966381000,222.98000000],[1609966681000,200.48000000],[1609966981000,225.84000000],[1609967281000,236.86000000],[1609967581000,211.08000000],[1609967881000,212.72000000],[1609968181000,238.10000000],[1609968481000,216.42000000],[1609968781000,223.76000000],[1609969081000,213.54000000],[1609969381000,222.54000000],[1609969681000,223.36000000],[1609969981000,218.04000000],[1609970281000,219.68000000],[1609970581000,219.28000000],[1609970881000,217.22000000],[1609971181000,211.08000000],[1609971481000,229.92000000],[1609971781000,211.50000000],[1609972081000,225.80000000],[1609972381000,241.38000000],[1609972681000,236.04000000],[1609972981000,229.08000000],[1609973281000,229.12000000],[1609973581000,232.76000000],[1609973881000,247.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: 'Zrážky', data: [[1609909741000,0.27940000],[1609910521000,0.27940000],[1609910941000,0.27940000],[1609911781000,0.27940000],[1609912081000,0.27940000],[1609912441000,0.27940000],[1609912741000,0.27940000],[1609913221000,0.27940000],[1609913581000,0.27940000],[1609914181000,0.27940000],[1609933381000,0.27940000],[1609933981000,0.27940000],[1609934401000,0.27940000],[1609934881000,0.27940000],[1609935181000,0.27940000],[1609935661000,0.27940000],[1609936021000,0.27940000],[1609936501000,0.27940000],[1609937101000,0.27940000],[1609937461000,0.27940000],[1609938001000,0.27940000],[1609938721000,0.27940000],[1609939381000,0.27940000],[1609940401000,0.27940000],[1609941181000,0.27940000],[1609942261000,0.27940000],[1609943161000,0.27940000],[1609944721000,0.27940000],[1609946341000,0.27940000],[1609954021000,0.27940000],], 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; }