var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1608937201000,2.50000000],[1608937381000,2.50000000],[1608937681000,2.46000000],[1608937981000,2.40000000],[1608938281000,2.40000000],[1608938581000,2.40000000],[1608938881000,2.40000000],[1608939181000,2.32000000],[1608939481000,2.30000000],[1608939781000,2.30000000],[1608940081000,2.26000000],[1608940381000,2.14000000],[1608940681000,1.94000000],[1608940981000,1.80000000],[1608941281000,1.80000000],[1608941581000,1.70000000],[1608941881000,1.70000000],[1608942181000,1.78000000],[1608942481000,1.72000000],[1608942781000,1.66000000],[1608943081000,1.70000000],[1608943381000,1.70000000],[1608943681000,1.70000000],[1608943981000,1.64000000],[1608944281000,1.60000000],[1608944581000,1.74000000],[1608944881000,1.80000000],[1608945181000,1.88000000],[1608945481000,1.94000000],[1608945781000,1.98000000],[1608946081000,1.98000000],[1608946381000,1.98000000],[1608946681000,2.00000000],[1608946981000,2.02000000],[1608947281000,2.08000000],[1608947581000,2.10000000],[1608947881000,2.00000000],[1608948181000,1.90000000],[1608948481000,1.86000000],[1608948781000,1.78000000],[1608949081000,1.68000000],[1608949381000,1.64000000],[1608949681000,1.70000000],[1608949981000,1.64000000],[1608950282000,1.60000000],[1608950581000,1.66000000],[1608950881000,1.66000000],[1608951181000,1.60000000],[1608951481000,1.60000000],[1608951781000,1.56000000],[1608952081000,1.50000000],[1608952381000,1.56000000],[1608952681000,1.62000000],[1608952981000,1.68000000],[1608953281000,1.60000000],[1608953581000,1.60000000],[1608953881000,1.60000000],[1608954181000,1.60000000],[1608954481000,1.60000000],[1608954781000,1.60000000],[1608955081000,1.60000000],[1608955381000,1.60000000],[1608955681000,1.60000000],[1608955981000,1.58000000],[1608956281000,1.56000000],[1608956581000,1.42000000],[1608956881000,1.40000000],[1608957181000,1.42000000],[1608957481000,1.40000000],[1608957781000,1.40000000],[1608958081000,1.30000000],[1608958381000,1.22000000],[1608958681000,1.10000000],[1608958982000,1.00000000],[1608959281000,0.92000000],[1608959581000,0.86000000],[1608959881000,0.76000000],[1608960181000,0.80000000],[1608960481000,0.80000000],[1608960781000,0.62000000],[1608961081000,0.60000000],[1608961381000,0.52000000],[1608961681000,0.64000000],[1608961981000,0.78000000],[1608962281000,0.78000000],[1608962581000,0.70000000],[1608962881000,0.82000000],[1608963181000,0.96000000],[1608963481000,1.10000000],[1608963781000,1.06000000],[1608964081000,1.00000000],[1608964381000,1.00000000],[1608964682000,0.90000000],[1608964981000,0.82000000],[1608965281000,0.82000000],[1608965581000,0.98000000],[1608965881000,1.04000000],[1608966181000,0.88000000],[1608966481000,0.88000000],[1608966781000,1.08000000],[1608967081000,1.26000000],[1608967381000,1.36000000],[1608967681000,1.38000000],[1608967981000,1.36000000],[1608968281000,1.30000000],[1608968581000,1.72000000],[1608968881000,2.32000000],[1608969181000,2.50000000],[1608969481000,2.82000000],[1608969781000,2.96000000],[1608970081000,3.26000000],[1608970382000,3.28000000],[1608970681000,2.62000000],[1608970981000,2.42000000],[1608971281000,2.38000000],[1608971581000,2.30000000],[1608971881000,2.32000000],[1608972181000,2.40000000],[1608972481000,2.40000000],[1608972781000,2.50000000],[1608973081000,2.56000000],[1608973381000,2.52000000],[1608973681000,2.42000000],[1608973981000,2.36000000],[1608974281000,2.30000000],[1608974581000,2.36000000],[1608974881000,2.40000000],[1608975181000,2.40000000],[1608975482000,2.36000000],[1608975781000,2.30000000],[1608976081000,2.32000000],[1608976381000,2.46000000],[1608976681000,2.66000000],[1608976981000,2.82000000],[1608977281000,2.94000000],[1608977581000,2.86000000],[1608977881000,2.78000000],[1608978181000,2.68000000],[1608978481000,2.84000000],[1608978781000,2.94000000],[1608979081000,2.66000000],[1608979381000,2.44000000],[1608979681000,2.80000000],[1608979981000,3.10000000],[1608980281000,3.86000000],[1608980581000,3.94000000],[1608980881000,3.64000000],[1608981181000,3.86000000],[1608981481000,4.32000000],[1608981781000,4.56000000],[1608982081000,4.38000000],[1608982381000,3.68000000],[1608982681000,4.04000000],[1608982981000,3.88000000],[1608983281000,3.46000000],[1608983581000,3.06000000],[1608983881000,2.70000000],[1608984181000,2.60000000],[1608984481000,2.54000000],[1608984781000,2.58000000],[1608985081000,2.60000000],[1608985381000,2.60000000],[1608985681000,2.68000000],[1608985981000,2.70000000],[1608986281000,2.70000000],[1608986581000,2.56000000],[1608986881000,2.64000000],[1608987181000,2.84000000],[1608987481000,2.80000000],[1608987781000,2.64000000],[1608988081000,2.64000000],[1608988381000,2.70000000],[1608988681000,2.70000000],[1608988981000,2.70000000],[1608989281000,2.64000000],[1608989581000,2.62000000],[1608989881000,2.52000000],[1608990181000,2.50000000],[1608990481000,2.48000000],[1608990781000,2.42000000],[1608991081000,2.40000000],[1608991381000,2.40000000],[1608991681000,2.32000000],[1608991982000,2.24000000],[1608992281000,2.14000000],[1608992581000,2.10000000],[1608992881000,2.10000000],[1608993181000,2.00000000],[1608993481000,1.94000000],[1608993781000,1.90000000],[1608994081000,1.94000000],[1608994381000,1.90000000],[1608994681000,1.86000000],[1608994981000,1.80000000],[1608995281000,1.80000000],[1608995581000,1.76000000],[1608995881000,1.70000000],[1608996181000,1.64000000],[1608996481000,1.56000000],[1608996781000,1.46000000],[1608997081000,1.30000000],[1608997381000,1.12000000],[1608997681000,1.04000000],[1608997981000,1.18000000],[1608998281000,1.12000000],[1608998581000,1.08000000],[1608998881000,0.90000000],[1608999181000,0.76000000],[1608999481000,0.68000000],[1608999781000,0.58000000],[1609000081000,0.44000000],[1609000381000,0.28000000],[1609000681000,0.16000000],[1609000981000,0.42000000],[1609001281000,0.24000000],[1609001581000,0.00000000],[1609001881000,-0.28000000],[1609002181000,-0.44000000],[1609002481000,-0.34000000],[1609002781000,-0.26000000],[1609003081000,-0.32000000],[1609003381000,-0.46000000],[1609003681000,-0.56000000],[1609003981000,-0.76000000],[1609004281000,-0.96000000],[1609004581000,-0.96000000],[1609004881000,-0.86000000],[1609005181000,-0.84000000],[1609005481000,-0.98000000],[1609005781000,-1.04000000],[1609006081000,-1.02000000],[1609006381000,-1.06000000],[1609006681000,-1.18000000],[1609006981000,-1.40000000],[1609007281000,-1.58000000],[1609007581000,-1.68000000],[1609007881000,-1.76000000],[1609008181000,-1.82000000],[1609008481000,-1.88000000],[1609008781000,-1.88000000],[1609009081000,-1.72000000],[1609009381000,-1.44000000],[1609009681000,-1.22000000],[1609009981000,-0.84000000],[1609010281000,-0.90000000],[1609010581000,-0.92000000],[1609010881000,-0.90000000],[1609011181000,-0.76000000],[1609011481000,-0.70000000],[1609011781000,-0.70000000],[1609012081000,-0.76000000],[1609012381000,-0.84000000],[1609012681000,-0.88000000],[1609012981000,-1.00000000],[1609013281000,-1.04000000],[1609013581000,-1.06000000],[1609013881000,-1.00000000],[1609014181000,-1.06000000],[1609014481000,-1.16000000],[1609014781000,-1.28000000],[1609015081000,-1.42000000],[1609015381000,-1.50000000],[1609015681000,-1.52000000],[1609015981000,-1.70000000],[1609016281000,-1.86000000],[1609016581000,-1.90000000],[1609016881000,-1.90000000],[1609017181000,-1.92000000],[1609017481000,-1.90000000],[1609017781000,-2.08000000],[1609018081000,-2.30000000],[1609018381000,-2.54000000],[1609018681000,-2.64000000],[1609018981000,-2.70000000],[1609019281000,-2.72000000],[1609019581000,-2.72000000],[1609019881000,-2.88000000],[1609020181000,-2.86000000],[1609020481000,-2.90000000],[1609020781000,-2.88000000],[1609021081000,-2.72000000],[1609021381000,-2.56000000],[1609021681000,-2.42000000],[1609021981000,-2.50000000],[1609022281000,-2.30000000],[1609022581000,-2.24000000],[1609022881000,-2.08000000],[1609023181000,-2.10000000],[1609023481000,-2.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [], 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: 'Rýchlosť vetra (km/h)', data: [[1608937201000,12.96],[1608937381000,7.632],[1608937681000,9.288],[1608937981000,11.376],[1608938281000,8.208],[1608938581000,15.264],[1608938881000,11.664],[1608939181000,14.688],[1608939481000,10.08],[1608939781000,14.184],[1608940081000,9.72],[1608940381000,9.072],[1608940681000,12.024],[1608940981000,16.488],[1608941281000,9.576],[1608941581000,9.936],[1608941881000,12.24],[1608942181000,9.288],[1608942481000,12.888],[1608942781000,17.496],[1608943081000,19.152],[1608943381000,18.72],[1608943681000,17.64],[1608943981000,8.64],[1608944281000,9.792],[1608944581000,14.04],[1608944881000,11.52],[1608945181000,5.328],[1608945481000,3.672],[1608945781000,3.24],[1608946081000,6.048],[1608946381000,5.256],[1608946681000,11.304],[1608946981000,13.32],[1608947281000,9],[1608947581000,8.568],[1608947881000,12.816],[1608948181000,13.032],[1608948481000,13.464],[1608948781000,8.136],[1608949081000,7.632],[1608949381000,15.552],[1608949681000,10.224],[1608949981000,11.232],[1608950281000,15.048],[1608950581000,12.024],[1608950881000,9.576],[1608951181000,10.8],[1608951481000,9.792],[1608951781000,8.352],[1608952081000,8.928],[1608952381000,15.768],[1608952681000,15.048],[1608952981000,13.464],[1608953281000,14.976],[1608953581000,20.232],[1608953881000,14.04],[1608954181000,16.704],[1608954481000,19.44],[1608954781000,19.08],[1608955081000,23.544],[1608955381000,21.744],[1608955681000,23.256],[1608955981000,25.56],[1608956281000,16.416],[1608956581000,16.92],[1608956881000,17.424],[1608957181000,19.008],[1608957481000,16.992],[1608957781000,20.952],[1608958081000,19.728],[1608958381000,15.336],[1608958681000,19.296],[1608958981000,16.92],[1608959281000,19.584],[1608959581000,14.976],[1608959881000,12.384],[1608960181000,11.592],[1608960481000,12.6],[1608960781000,14.4],[1608961081000,13.248],[1608961381000,11.016],[1608961681000,10.008],[1608961981000,6.552],[1608962281000,8.136],[1608962581000,14.976],[1608962881000,22.176],[1608963181000,25.92],[1608963481000,23.76],[1608963781000,24.264],[1608964081000,24.192],[1608964381000,17.856],[1608964681000,17.712],[1608964981000,12.312],[1608965281000,9.792],[1608965581000,7.848],[1608965881000,5.256],[1608966181000,1.8],[1608966481000,10.728],[1608966781000,8.712],[1608967081000,6.552],[1608967381000,3.312],[1608967681000,2.088],[1608967981000,3.024],[1608968281000,4.464],[1608968581000,2.88],[1608968881000,7.2],[1608969181000,5.616],[1608969481000,8.64],[1608969781000,7.92],[1608970081000,7.344],[1608970381000,14.112],[1608970681000,12.168],[1608970981000,7.2],[1608971281000,6.12],[1608971581000,16.2],[1608971881000,12.024],[1608972181000,12.096],[1608972481000,12.312],[1608972781000,15.984],[1608973081000,15.984],[1608973381000,24.768],[1608973681000,18.936],[1608973981000,25.344],[1608974281000,19.08],[1608974581000,17.568],[1608974881000,18.432],[1608975181000,19.08],[1608975481000,16.632],[1608975781000,19.872],[1608976081000,14.76],[1608976381000,12.672],[1608976681000,11.808],[1608976981000,9.792],[1608977281000,13.392],[1608977581000,12.312],[1608977881000,18.648],[1608978181000,21.744],[1608978481000,16.92],[1608978781000,27.864],[1608979081000,27.576],[1608979381000,22.968],[1608979681000,19.152],[1608979981000,17.064],[1608980281000,18.792],[1608980581000,18.576],[1608980881000,27.792],[1608981181000,24.552],[1608981481000,25.128],[1608981781000,25.2],[1608982081000,24.696],[1608982381000,20.808],[1608982681000,13.176],[1608982981000,21.816],[1608983281000,17.496],[1608983581000,18.648],[1608983881000,14.4],[1608984181000,18.648],[1608984481000,12.6],[1608984781000,23.76],[1608985081000,19.512],[1608985381000,18.936],[1608985681000,11.448],[1608985981000,21.312],[1608986281000,23.544],[1608986581000,19.44],[1608986881000,10.368],[1608987181000,7.488],[1608987481000,14.976],[1608987781000,23.688],[1608988081000,19.728],[1608988381000,14.76],[1608988681000,16.992],[1608988981000,16.2],[1608989281000,13.392],[1608989581000,16.488],[1608989881000,14.112],[1608990181000,13.68],[1608990481000,15.84],[1608990781000,16.704],[1608991081000,11.304],[1608991381000,17.424],[1608991681000,16.776],[1608991981000,19.224],[1608992281000,21.096],[1608992581000,13.176],[1608992881000,9.864],[1608993181000,19.008],[1608993481000,13.176],[1608993781000,13.104],[1608994081000,7.056],[1608994381000,6.048],[1608994681000,7.992],[1608994981000,10.512],[1608995281000,5.256],[1608995581000,12.024],[1608995881000,7.272],[1608996181000,10.08],[1608996481000,10.872],[1608996781000,10.296],[1608997081000,13.104],[1608997381000,9.648],[1608997681000,7.56],[1608997981000,5.04],[1608998281000,3.168],[1608998581000,3.96],[1608998881000,2.808],[1608999181000,7.344],[1608999481000,10.872],[1608999781000,8.208],[1609000081000,5.976],[1609000381000,8.712],[1609000681000,7.272],[1609000981000,6.264],[1609001281000,1.296],[1609001581000,2.52],[1609001881000,3.672],[1609002181000,3.96],[1609002481000,2.52],[1609002781000,3.384],[1609003081000,5.544],[1609003381000,1.008],[1609003681000,2.304],[1609003981000,3.672],[1609004281000,2.448],[1609004581000,2.376],[1609004881000,3.312],[1609005181000,1.152],[1609005481000,5.616],[1609005781000,3.816],[1609006081000,4.392],[1609006381000,1.728],[1609006681000,1.872],[1609006981000,2.952],[1609007281000,0.648],[1609007581000,3.024],[1609007881000,4.536],[1609008181000,6.552],[1609008481000,7.056],[1609008781000,5.976],[1609009081000,11.736],[1609009381000,13.464],[1609009681000,12.024],[1609009981000,9.792],[1609010281000,7.272],[1609010581000,8.64],[1609010881000,8.208],[1609011181000,7.488],[1609011481000,10.08],[1609011781000,10.008],[1609012081000,7.416],[1609012381000,7.344],[1609012681000,7.56],[1609012981000,11.52],[1609013281000,10.368],[1609013581000,11.592],[1609013881000,12.96],[1609014181000,10.728],[1609014481000,9.936],[1609014781000,6.552],[1609015081000,7.056],[1609015381000,5.472],[1609015681000,5.328],[1609015981000,7.2],[1609016281000,8.208],[1609016581000,6.48],[1609016881000,6.624],[1609017181000,5.688],[1609017481000,2.376],[1609017781000,0.288],[1609018081000,0.864],[1609018381000,1.584],[1609018681000,1.8],[1609018981000,1.8],[1609019281000,2.952],[1609019581000,4.32],[1609019881000,2.16],[1609020181000,0.504],[1609020481000,1.872],[1609020781000,3.024],[1609021081000,3.744],[1609021381000,5.4],[1609021681000,3.888],[1609021981000,8.568],[1609022281000,7.344],[1609022581000,7.416],[1609022881000,9.36],[1609023181000,6.912],[1609023481000,5.22],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1608937201000,20.8692],[1608937381000,12.39192],[1608937681000,14.81616],[1608937981000,18.62064],[1608938281000,13.10544],[1608938581000,24.98904],[1608938881000,19.05264],[1608939181000,24.6168],[1608939481000,16.8588],[1608939781000,23.09616],[1608940081000,15.77952],[1608940381000,15.0012],[1608940681000,19.8792],[1608940981000,27.99792],[1608941281000,15.5304],[1608941581000,16.25616],[1608941881000,19.91736],[1608942181000,15.0768],[1608942481000,20.96856],[1608942781000,29.862],[1608943081000,33.0264],[1608943381000,31.23864],[1608943681000,30.12048],[1608943981000,14.36112],[1608944281000,15.85512],[1608944581000,23.31432],[1608944881000,18.72144],[1608945181000,8.15688],[1608945481000,5.64552],[1608945781000,5.00904],[1608946081000,9.73512],[1608946381000,8.5212],[1608946681000,18.73728],[1608946981000,22.14576],[1608947281000,14.95656],[1608947581000,13.93344],[1608947881000,21.35088],[1608948181000,21.82032],[1608948481000,22.43808],[1608948781000,13.15008],[1608949081000,12.12048],[1608949381000,26.34336],[1608949681000,16.71912],[1608949981000,18.2772],[1608950281000,25.07472],[1608950581000,19.8864],[1608950881000,15.49944],[1608951181000,17.66232],[1608951481000,16.16184],[1608951781000,13.73544],[1608952081000,14.51088],[1608952381000,26.15472],[1608952681000,25.398],[1608952981000,22.40136],[1608953281000,25.01064],[1608953581000,34.23528],[1608953881000,23.3928],[1608954181000,28.26144],[1608954481000,32.42592],[1608954781000,32.10912],[1608955081000,41.51376],[1608955381000,37.44936],[1608955681000,41.6016],[1608955981000,44.96832],[1608956281000,27.76464],[1608956581000,28.98144],[1608956881000,29.69352],[1608957181000,33.58944],[1608957481000,28.60992],[1608957781000,36.19944],[1608958081000,33.426],[1608958381000,25.81992],[1608958681000,32.93424],[1608958981000,29.62152],[1608959281000,34.57584],[1608959581000,25.2684],[1608959881000,20.57328],[1608960181000,19.27584],[1608960481000,21.2796],[1608960781000,24.87168],[1608961081000,21.654],[1608961381000,18.32616],[1608961681000,16.54272],[1608961981000,10.34784],[1608962281000,13.33728],[1608962581000,25.26984],[1608962881000,38.77416],[1608963181000,45.96192],[1608963481000,42.63048],[1608963781000,42.50448],[1608964081000,42.54912],[1608964381000,30.53088],[1608964681000,30.4056],[1608964981000,20.8044],[1608965281000,16.00488],[1608965581000,12.47976],[1608965881000,8.30232],[1608966181000,2.70576],[1608966481000,17.64792],[1608966781000,14.14728],[1608967081000,10.49688],[1608967381000,5.1516],[1608967681000,3.21552],[1608967981000,4.64544],[1608968281000,7.15392],[1608968581000,4.37256],[1608968881000,11.64528],[1608969181000,8.95248],[1608969481000,14.09328],[1608969781000,13.03992],[1608970081000,11.98944],[1608970381000,23.37552],[1608970681000,19.96992],[1608970981000,11.34504],[1608971281000,9.82944],[1608971581000,27.40464],[1608971881000,19.76832],[1608972181000,19.51632],[1608972481000,20.84616],[1608972781000,27.1908],[1608973081000,27.29952],[1608973381000,43.41528],[1608973681000,31.7844],[1608973981000,43.95168],[1608974281000,32.49432],[1608974581000,30.37104],[1608974881000,32.45616],[1608975181000,32.45904],[1608975481000,28.27656],[1608975781000,34.28568],[1608976081000,25.0164],[1608976381000,21.32856],[1608976681000,19.88424],[1608976981000,16.07184],[1608977281000,22.32072],[1608977581000,19.96992],[1608977881000,32.20704],[1608978181000,37.67328],[1608978481000,28.86552],[1608978781000,50.35536],[1608979081000,48.85056],[1608979381000,40.26528],[1608979681000,33.09624],[1608979981000,30.00528],[1608980281000,32.66784],[1608980581000,31.91472],[1608980881000,49.40568],[1608981181000,42.54336],[1608981481000,44.35632],[1608981781000,43.89624],[1608982081000,44.30736],[1608982381000,35.65296],[1608982681000,21.75696],[1608982981000,38.00592],[1608983281000,29.93832],[1608983581000,31.62888],[1608983881000,24.354],[1608984181000,31.41144],[1608984481000,21.16296],[1608984781000,40.76496],[1608985081000,34.29072],[1608985381000,32.51304],[1608985681000,18.87408],[1608985981000,36.11808],[1608986281000,40.16304],[1608986581000,33.32232],[1608986881000,17.3628],[1608987181000,11.96424],[1608987481000,25.66224],[1608987781000,42.7392],[1608988081000,33.02424],[1608988381000,24.43176],[1608988681000,28.1052],[1608988981000,27.072],[1608989281000,22.61232],[1608989581000,27.55296],[1608989881000,23.67144],[1608990181000,22.88952],[1608990481000,27.12528],[1608990781000,28.3248],[1608991081000,18.59472],[1608991381000,29.0988],[1608991681000,28.24992],[1608991981000,32.98104],[1608992281000,35.8344],[1608992581000,21.77136],[1608992881000,16.37712],[1608993181000,33.36768],[1608993481000,21.89736],[1608993781000,21.4416],[1608994081000,11.59056],[1608994381000,9.52344],[1608994681000,12.9096],[1608994981000,17.1216],[1608995281000,8.28],[1608995581000,19.56816],[1608995881000,11.94192],[1608996181000,16.61184],[1608996481000,17.6256],[1608996781000,16.85016],[1608997081000,21.63744],[1608997381000,16.05816],[1608997681000,12.58272],[1608997981000,7.97472],[1608998281000,5.04288],[1608998581000,6.51456],[1608998881000,4.50576],[1608999181000,11.77632],[1608999481000,17.91216],[1608999781000,13.18608],[1609000081000,9.56592],[1609000381000,14.07744],[1609000681000,11.51064],[1609000981000,10.15488],[1609001281000,2.04912],[1609001581000,3.84192],[1609001881000,5.52744],[1609002181000,6.2568],[1609002481000,4.09536],[1609002781000,5.42736],[1609003081000,8.4924],[1609003381000,1.51416],[1609003681000,3.62664],[1609003981000,5.68872],[1609004281000,3.76344],[1609004581000,3.99888],[1609004881000,4.95936],[1609005181000,1.86984],[1609005481000,8.71848],[1609005781000,5.66424],[1609006081000,6.7644],[1609006381000,2.65176],[1609006681000,2.94624],[1609006981000,4.40424],[1609007281000,0.93384],[1609007581000,4.73904],[1609007881000,7.03512],[1609008181000,10.3428],[1609008481000,11.12544],[1609008781000,9.63792],[1609009081000,19.33344],[1609009381000,21.9852],[1609009681000,19.77192],[1609009981000,16.27272],[1609010281000,12.0132],[1609010581000,13.8528],[1609010881000,13.8528],[1609011181000,12.39192],[1609011481000,16.54776],[1609011781000,16.42464],[1609012081000,12.15504],[1609012381000,12.2256],[1609012681000,12.28248],[1609012981000,18.63576],[1609013281000,16.83792],[1609013581000,18.99144],[1609013881000,21.34728],[1609014181000,17.48448],[1609014481000,16.2288],[1609014781000,10.82304],[1609015081000,11.51208],[1609015381000,8.85888],[1609015681000,8.40024],[1609015981000,11.65968],[1609016281000,13.28544],[1609016581000,10.50264],[1609016881000,11.0592],[1609017181000,9.28224],[1609017481000,3.72168],[1609017781000,0.44928],[1609018081000,1.31112],[1609018381000,2.376],[1609018681000,2.85552],[1609018981000,2.90952],[1609019281000,4.7232],[1609019581000,6.56424],[1609019881000,3.2616],[1609020181000,0.84312],[1609020481000,2.84616],[1609020781000,5.09832],[1609021081000,5.9364],[1609021381000,8.25192],[1609021681000,6.34392],[1609021981000,13.28688],[1609022281000,11.68488],[1609022581000,11.556],[1609022881000,14.10984],[1609023181000,10.5444],[1609023481000,8.2026],], 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: [[1608937201000,19.10000000],[1608937381000,24.12000000],[1608937681000,31.90000000],[1608937981000,45.40000000],[1608938281000,86.32000000],[1608938581000,78.54000000],[1608938881000,82.62000000],[1608939181000,168.94000000],[1608939481000,180.82000000],[1608939781000,261.82000000],[1608940081000,228.70000000],[1608940381000,246.70000000],[1608940681000,255.26000000],[1608940981000,123.12000000],[1608941281000,132.96000000],[1608941581000,168.14000000],[1608941881000,227.04000000],[1608942181000,188.58000000],[1608942481000,185.76000000],[1608942781000,169.76000000],[1608943081000,169.76000000],[1608943381000,272.46000000],[1608943681000,132.14000000],[1608943981000,197.58000000],[1608944281000,141.14000000],[1608944581000,189.00000000],[1608944881000,98.56000000],[1608945181000,105.56000000],[1608945481000,167.72000000],[1608945781000,162.42000000],[1608946081000,56.46000000],[1608946381000,92.04000000],[1608946681000,119.46000000],[1608946981000,157.92000000],[1608947281000,117.00000000],[1608947581000,131.72000000],[1608947881000,180.00000000],[1608948181000,188.58000000],[1608948481000,147.28000000],[1608948781000,126.82000000],[1608949081000,122.30000000],[1608949381000,155.02000000],[1608949681000,137.86000000],[1608949981000,148.90000000],[1608950281000,177.56000000],[1608950581000,122.32000000],[1608950881000,163.64000000],[1608951181000,180.82000000],[1608951481000,201.68000000],[1608951781000,163.64000000],[1608952081000,261.42000000],[1608952381000,282.30000000],[1608952681000,213.54000000],[1608952981000,145.66000000],[1608953281000,231.94000000],[1608953581000,227.84000000],[1608953881000,222.94000000],[1608954181000,248.32000000],[1608954481000,235.22000000],[1608954781000,206.16000000],[1608955081000,249.12000000],[1608955381000,214.76000000],[1608955681000,186.54000000],[1608955981000,186.12000000],[1608956281000,156.28000000],[1608956581000,176.30000000],[1608956881000,127.22000000],[1608957181000,185.32000000],[1608957481000,193.90000000],[1608957781000,192.30000000],[1608958081000,256.90000000],[1608958381000,186.12000000],[1608958681000,228.68000000],[1608958981000,168.94000000],[1608959281000,165.70000000],[1608959581000,184.08000000],[1608959881000,223.34000000],[1608960181000,123.54000000],[1608960481000,155.06000000],[1608960781000,166.08000000],[1608961081000,179.60000000],[1608961381000,157.92000000],[1608961681000,255.68000000],[1608961981000,202.92000000],[1608962281000,180.78000000],[1608962581000,176.74000000],[1608962881000,231.14000000],[1608963181000,204.94000000],[1608963481000,195.96000000],[1608963781000,173.06000000],[1608964081000,197.18000000],[1608964381000,200.44000000],[1608964681000,159.94000000],[1608964981000,127.62000000],[1608965281000,39.26000000],[1608965581000,66.68000000],[1608965881000,92.88000000],[1608966181000,217.64000000],[1608966481000,155.84000000],[1608966781000,59.74000000],[1608967081000,145.24000000],[1608967381000,112.08000000],[1608967681000,74.04000000],[1608967981000,179.60000000],[1608968281000,104.34000000],[1608968581000,185.32000000],[1608968881000,57.26000000],[1608969181000,45.80000000],[1608969481000,69.56000000],[1608969781000,194.74000000],[1608970081000,185.30000000],[1608970381000,76.92000000],[1608970681000,63.00000000],[1608970981000,87.96000000],[1608971281000,130.52000000],[1608971581000,130.90000000],[1608971881000,150.12000000],[1608972181000,178.38000000],[1608972481000,132.14000000],[1608972781000,99.42000000],[1608973081000,186.96000000],[1608973381000,165.70000000],[1608973681000,169.36000000],[1608973981000,119.02000000],[1608974281000,190.64000000],[1608974581000,166.10000000],[1608974881000,179.58000000],[1608975181000,188.18000000],[1608975481000,193.92000000],[1608975781000,208.64000000],[1608976081000,104.70000000],[1608976381000,58.92000000],[1608976681000,128.04000000],[1608976981000,132.14000000],[1608977281000,141.54000000],[1608977581000,199.62000000],[1608977881000,216.00000000],[1608978181000,177.12000000],[1608978481000,171.00000000],[1608978781000,173.86000000],[1608979081000,165.28000000],[1608979381000,189.42000000],[1608979681000,130.12000000],[1608979981000,174.26000000],[1608980281000,168.96000000],[1608980581000,182.06000000],[1608980881000,184.10000000],[1608981181000,78.14000000],[1608981481000,220.50000000],[1608981781000,184.50000000],[1608982081000,177.94000000],[1608982381000,219.70000000],[1608982681000,216.82000000],[1608982981000,46.64000000],[1608983281000,47.04000000],[1608983581000,85.10000000],[1608983881000,136.64000000],[1608984181000,226.26000000],[1608984481000,141.12000000],[1608984781000,197.16000000],[1608985081000,219.68000000],[1608985381000,223.36000000],[1608985681000,135.02000000],[1608985981000,247.92000000],[1608986281000,251.58000000],[1608986581000,175.08000000],[1608986881000,170.60000000],[1608987181000,223.34000000],[1608987481000,179.20000000],[1608987781000,178.36000000],[1608988081000,278.98000000],[1608988381000,222.54000000],[1608988681000,220.10000000],[1608988981000,261.42000000],[1608989281000,198.00000000],[1608989581000,213.98000000],[1608989881000,191.06000000],[1608990181000,160.38000000],[1608990481000,213.54000000],[1608990781000,264.68000000],[1608991081000,257.32000000],[1608991381000,253.64000000],[1608991681000,251.18000000],[1608991981000,236.86000000],[1608992281000,239.32000000],[1608992581000,213.12000000],[1608992881000,132.94000000],[1608993181000,144.42000000],[1608993481000,95.32000000],[1608993781000,178.78000000],[1608994081000,89.56000000],[1608994381000,254.88000000],[1608994681000,195.12000000],[1608994981000,151.38000000],[1608995281000,188.58000000],[1608995581000,215.22000000],[1608995881000,202.90000000],[1608996181000,119.46000000],[1608996481000,204.94000000],[1608996781000,222.94000000],[1608997081000,213.54000000],[1608997381000,223.78000000],[1608997681000,160.78000000],[1608997981000,62.58000000],[1608998281000,163.26000000],[1608998581000,135.40000000],[1608998881000,41.32000000],[1608999181000,81.02000000],[1608999481000,151.36000000],[1608999781000,120.68000000],[1609000081000,157.50000000],[1609000381000,180.02000000],[1609000681000,151.76000000],[1609000981000,164.84000000],[1609001281000,265.90000000],[1609001581000,111.28000000],[1609001881000,151.78000000],[1609002181000,169.38000000],[1609002481000,152.18000000],[1609002781000,74.04000000],[1609003081000,41.74000000],[1609003381000,137.86000000],[1609003681000,220.90000000],[1609003981000,270.00000000],[1609004281000,196.78000000],[1609004581000,245.88000000],[1609004881000,171.42000000],[1609005181000,160.36000000],[1609005481000,165.30000000],[1609005781000,182.84000000],[1609006081000,227.02000000],[1609006381000,246.26000000],[1609006681000,294.14000000],[1609006981000,207.02000000],[1609007281000,242.60000000],[1609007581000,249.54000000],[1609007881000,291.28000000],[1609008181000,235.64000000],[1609008481000,242.18000000],[1609008781000,267.94000000],[1609009081000,250.34000000],[1609009381000,227.44000000],[1609009681000,271.64000000],[1609009981000,253.24000000],[1609010281000,265.50000000],[1609010581000,269.62000000],[1609010881000,238.92000000],[1609011181000,252.42000000],[1609011481000,236.44000000],[1609011781000,221.32000000],[1609012081000,252.82000000],[1609012381000,231.14000000],[1609012681000,263.06000000],[1609012981000,239.32000000],[1609013281000,240.16000000],[1609013581000,266.72000000],[1609013881000,271.24000000],[1609014181000,239.30000000],[1609014481000,272.46000000],[1609014781000,250.76000000],[1609015081000,260.16000000],[1609015381000,250.36000000],[1609015681000,259.38000000],[1609015981000,254.44000000],[1609016281000,259.36000000],[1609016581000,252.00000000],[1609016881000,248.74000000],[1609017181000,256.08000000],[1609017481000,260.62000000],[1609017781000,204.54000000],[1609018081000,139.90000000],[1609018381000,135.00000000],[1609018681000,55.64000000],[1609018981000,116.18000000],[1609019281000,176.72000000],[1609019581000,5.74000000],[1609019881000,54.42000000],[1609020181000,237.26000000],[1609020481000,128.46000000],[1609020781000,133.78000000],[1609021081000,155.04000000],[1609021381000,180.42000000],[1609021681000,137.46000000],[1609021981000,135.40000000],[1609022281000,135.82000000],[1609022581000,156.28000000],[1609022881000,173.88000000],[1609023181000,184.08000000],[1609023481000,209.65000000],], 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: [[1609002061000,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; }