var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1581807601000,4.30000000],[1581807781000,4.30000000],[1581808081000,4.24000000],[1581808381000,4.14000000],[1581808681000,4.10000000],[1581808981000,4.10000000],[1581809281000,4.10000000],[1581809581000,4.02000000],[1581809881000,4.00000000],[1581810181000,4.00000000],[1581810481000,4.00000000],[1581810781000,4.00000000],[1581811081000,4.00000000],[1581811381000,4.00000000],[1581811681000,4.08000000],[1581811981000,4.08000000],[1581812281000,4.06000000],[1581812581000,4.02000000],[1581812881000,4.00000000],[1581813181000,3.94000000],[1581813481000,3.82000000],[1581813781000,3.78000000],[1581814081000,3.74000000],[1581814381000,3.80000000],[1581814681000,3.78000000],[1581814981000,3.78000000],[1581815281000,3.72000000],[1581815581000,3.70000000],[1581815881000,3.68000000],[1581816181000,3.62000000],[1581816481000,3.60000000],[1581816781000,3.60000000],[1581817082000,3.50000000],[1581817381000,3.48000000],[1581817681000,3.40000000],[1581817981000,3.38000000],[1581818281000,3.34000000],[1581818581000,3.30000000],[1581818881000,3.20000000],[1581819181000,3.16000000],[1581819481000,3.10000000],[1581819781000,3.10000000],[1581820081000,3.10000000],[1581820381000,3.10000000],[1581820681000,3.10000000],[1581820981000,3.08000000],[1581821281000,3.10000000],[1581821581000,3.10000000],[1581821881000,3.04000000],[1581822181000,3.02000000],[1581822481000,3.00000000],[1581822781000,3.00000000],[1581823081000,3.00000000],[1581823381000,3.00000000],[1581823681000,3.00000000],[1581823981000,3.00000000],[1581824282000,3.00000000],[1581824581000,2.98000000],[1581824881000,3.00000000],[1581825181000,2.98000000],[1581825481000,3.00000000],[1581825781000,3.02000000],[1581826081000,3.02000000],[1581826381000,3.00000000],[1581826681000,3.00000000],[1581826981000,3.00000000],[1581827281000,3.00000000],[1581827581000,2.98000000],[1581827882000,2.92000000],[1581828181000,2.90000000],[1581828481000,2.90000000],[1581828781000,2.86000000],[1581829081000,2.78000000],[1581829381000,2.80000000],[1581829681000,2.72000000],[1581829981000,2.74000000],[1581830281000,2.72000000],[1581830581000,2.72000000],[1581830881000,2.76000000],[1581831181000,2.72000000],[1581831481000,2.70000000],[1581831781000,2.62000000],[1581832081000,2.60000000],[1581832381000,2.60000000],[1581832681000,2.56000000],[1581832981000,2.60000000],[1581833281000,2.52000000],[1581833581000,2.50000000],[1581833881000,2.50000000],[1581834181000,2.50000000],[1581834481000,2.50000000],[1581834781000,2.50000000],[1581835081000,2.54000000],[1581835381000,2.62000000],[1581835681000,2.74000000],[1581835981000,2.90000000],[1581836281000,3.00000000],[1581836581000,3.14000000],[1581836881000,3.12000000],[1581837181000,3.10000000],[1581837481000,3.20000000],[1581837781000,3.48000000],[1581838081000,3.76000000],[1581838381000,3.74000000],[1581838681000,3.96000000],[1581838981000,4.42000000],[1581839281000,4.42000000],[1581839581000,4.38000000],[1581839881000,4.52000000],[1581840181000,4.54000000],[1581840481000,4.66000000],[1581840781000,4.78000000],[1581841081000,4.98000000],[1581841381000,5.20000000],[1581841681000,5.40000000],[1581841981000,5.52000000],[1581842281000,5.60000000],[1581842581000,5.60000000],[1581842881000,5.66000000],[1581843181000,5.90000000],[1581843481000,6.18000000],[1581843781000,6.56000000],[1581844081000,6.76000000],[1581844381000,7.10000000],[1581844705000,7.50000000],[1581844954000,7.70000000],[1581845281000,7.85000000],[1581845581000,7.94000000],[1581845881000,8.00000000],[1581846181000,8.20000000],[1581846481000,8.54000000],[1581846781000,8.84000000],[1581847091000,9.36000000],[1581847381000,9.70000000],[1581847681000,9.72000000],[1581847993000,9.96000000],[1581848281000,10.28000000],[1581848617000,9.92000000],[1581848881000,9.64000000],[1581849181000,9.66000000],[1581849481000,10.22000000],[1581849781000,10.80000000],[1581850081000,11.16000000],[1581850390000,10.70000000],[1581850659000,10.56000000],[1581850964000,11.13333333],[1581851281000,11.16000000],[1581851590000,10.62500000],[1581851893000,10.77500000],[1581852157000,11.33333333],[1581852528000,11.74000000],[1581852828000,12.00000000],[1581853081000,11.90000000],[1581853357000,11.70000000],[1581853681000,11.68000000],[1581853981000,11.68000000],[1581854293000,11.60000000],[1581854614000,11.52000000],[1581854890000,11.42500000],[1581855161000,11.20000000],[1581855490000,11.23333333],[1581855793000,11.30000000],[1581856112000,11.35000000],[1581856381000,11.40000000],[1581856681000,11.36000000],[1581856990000,11.17500000],[1581857281000,11.16000000],[1581857609000,11.26666667],[1581857863000,11.36000000],[1581858163000,11.47500000],[1581858451000,11.46666667],[1581858781000,11.40000000],[1581859112000,11.46000000],[1581859390000,11.50000000],[1581859681000,11.42500000],[1581859958000,11.40000000],[1581860290000,11.36000000],[1581860581000,11.30000000],[1581860890000,11.30000000],[1581861181000,11.26000000],[1581861509000,11.22500000],[1581861769000,11.22500000],[1581862111000,11.23333333],[1581862354000,11.30000000],[1581862681000,11.20000000],[1581862991000,11.26000000],[1581863281000,11.30000000],[1581863581000,11.28000000],[1581863881000,11.30000000],[1581864191000,11.17500000],[1581864526000,11.12000000],[1581864782000,11.10000000],[1581865091000,11.10000000],[1581865414000,11.00000000],[1581865681000,11.00000000],[1581866000000,10.92000000],[1581866281000,10.86000000],[1581866581000,10.78000000],[1581866881000,10.72000000],[1581867202000,10.67500000],[1581867452000,10.66000000],[1581867756000,10.60000000],[1581868159000,10.60000000],[1581868381000,10.60000000],[1581868681000,10.60000000],[1581868990000,10.50000000],[1581869371000,10.50000000],[1581869590000,10.48000000],[1581869881000,10.40000000],[1581870171000,10.36666667],[1581870521000,10.30000000],[1581870781000,10.30000000],[1581871069000,10.28333333],[1581871381000,10.22000000],[1581871681000,10.18000000],[1581871990000,10.10000000],[1581872281000,10.10000000],[1581872593000,10.00000000],[1581872881000,10.00000000],[1581873193000,9.98000000],[1581873493000,9.90000000],[1581873770000,9.88000000],[1581874068000,9.90000000],[1581874381000,9.80000000],[1581874681000,9.80000000],[1581875014000,9.74000000],[1581875281000,9.70000000],[1581875581000,9.62000000],[1581875881000,9.50000000],[1581876181000,9.34000000],[1581876481000,9.16000000],[1581876781000,9.07500000],[1581877063000,9.00000000],[1581877381000,8.92000000],[1581877681000,8.85000000],[1581877951000,8.76000000],[1581878281000,8.68000000],[1581878590000,8.60000000],[1581878881000,8.42000000],[1581879181000,8.32000000],[1581879481000,8.27500000],[1581879761000,8.20000000],[1581880073000,8.10000000],[1581880381000,8.10000000],[1581880681000,8.04000000],[1581880981000,8.02000000],[1581881293000,8.00000000],[1581881591000,8.00000000],[1581881909000,8.00000000],[1581882212000,7.92000000],[1581882481000,7.90000000],[1581882781000,7.90000000],[1581883081000,7.86000000],[1581883381000,7.80000000],[1581883681000,7.80000000],[1581883981000,7.80000000],[1581884303000,7.70000000],[1581884581000,7.70000000],[1581884881000,7.70000000],[1581885181000,7.70000000],[1581885481000,7.70000000],[1581885781000,7.70000000],[1581886081000,7.70000000],[1581886381000,7.72000000],[1581886681000,7.72000000],[1581886981000,7.70000000],[1581887281000,7.70000000],[1581887581000,7.70000000],[1581887881000,7.70000000],[1581888181000,7.64000000],[1581888481000,7.60000000],[1581888781000,7.56000000],[1581889081000,7.50000000],[1581889381000,7.50000000],[1581889681000,7.50000000],[1581889981000,7.50000000],[1581890281000,7.46000000],[1581890581000,7.34000000],[1581890881000,7.22000000],[1581891221000,7.16000000],[1581891481000,7.10000000],[1581891766000,6.96666667],[1581892081000,6.88000000],[1581892390000,6.80000000],[1581892681000,6.78000000],[1581892981000,6.72000000],[1581893281000,6.70000000],[1581893581000,6.62000000],[1581893881000,6.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1581807601000,0.7],[1581807781000,0.7],[1581808081000,0.8],[1581808381000,0.8],[1581808681000,0.8],[1581808981000,0.8],[1581809281000,0.9],[1581809581000,1],[1581809881000,0.9],[1581810181000,1],[1581810481000,1],[1581810781000,1],[1581811081000,1],[1581811381000,1],[1581811681000,1],[1581811981000,1],[1581812281000,1],[1581812581000,0.9],[1581812881000,1],[1581813181000,1],[1581813481000,0.9],[1581813781000,0.9],[1581814081000,0.9],[1581814381000,0.9],[1581814681000,0.9],[1581814981000,0.9],[1581815281000,0.8],[1581815581000,0.8],[1581815881000,0.9],[1581816181000,0.9],[1581816481000,0.8],[1581816781000,0.9],[1581817082000,0.8],[1581817381000,0.8],[1581817681000,0.8],[1581817981000,0.8],[1581818281000,0.7],[1581818581000,0.8],[1581818881000,0.8],[1581819181000,0.8],[1581819481000,0.8],[1581819781000,0.8],[1581820081000,0.8],[1581820381000,0.8],[1581820681000,0.8],[1581820981000,0.8],[1581821281000,0.8],[1581821581000,0.8],[1581821881000,0.8],[1581822181000,0.8],[1581822481000,0.8],[1581822781000,0.8],[1581823081000,0.8],[1581823381000,0.7],[1581823681000,0.8],[1581823981000,0.7],[1581824282000,0.8],[1581824581000,0.8],[1581824881000,0.7],[1581825181000,0.8],[1581825481000,0.8],[1581825781000,0.8],[1581826081000,0.8],[1581826381000,0.8],[1581826681000,0.8],[1581826981000,0.8],[1581827281000,0.8],[1581827581000,0.8],[1581827882000,0.8],[1581828181000,0.8],[1581828481000,0.8],[1581828781000,0.7],[1581829081000,0.7],[1581829381000,0.8],[1581829681000,0.7],[1581829981000,0.7],[1581830281000,0.7],[1581830581000,0.7],[1581830881000,0.7],[1581831181000,0.7],[1581831481000,0.7],[1581831781000,0.6],[1581832081000,0.6],[1581832381000,0.6],[1581832681000,0.6],[1581832981000,0.7],[1581833281000,0.6],[1581833581000,0.6],[1581833881000,0.6],[1581834181000,0.6],[1581834481000,0.6],[1581834781000,0.6],[1581835081000,0.6],[1581835381000,0.6],[1581835681000,0.6],[1581835981000,0.7],[1581836281000,0.7],[1581836581000,0.8],[1581836881000,0.7],[1581837181000,0.7],[1581837481000,0.8],[1581837781000,1],[1581838081000,1],[1581838381000,0.9],[1581838681000,0.9],[1581838981000,1.1],[1581839281000,1],[1581839581000,1.1],[1581839881000,1.1],[1581840181000,1.2],[1581840481000,1.2],[1581840781000,1.3],[1581841081000,1.4],[1581841381000,1.6],[1581841681000,1.7],[1581841981000,1.8],[1581842281000,1.8],[1581842581000,1.8],[1581842881000,2],[1581843181000,2.2],[1581843481000,2.3],[1581843781000,2.5],[1581844081000,2.5],[1581844381000,2.4],[1581845281000,2.3],[1581845581000,2.6],[1581845881000,2.5],[1581846181000,2.5],[1581846481000,2.5],[1581846781000,2.5],[1581847381000,2.5],[1581847681000,2.2],[1581848281000,1.9],[1581848881000,1.7],[1581849181000,1.6],[1581849481000,1.5],[1581849781000,1.8],[1581850081000,1.7],[1581851281000,1.6],[1581853081000,1.7],[1581853681000,1.8],[1581853981000,1.9],[1581856381000,1.6],[1581856681000,1.6],[1581857281000,1.5],[1581858781000,1.4],[1581859681000,1.5],[1581860581000,1.5],[1581861181000,1.6],[1581862681000,1.5],[1581863281000,1.5],[1581863581000,1.6],[1581863881000,1.5],[1581864782000,1.4],[1581865681000,1.4],[1581866281000,1.3],[1581866581000,1.3],[1581866881000,1.4],[1581868381000,1.1],[1581868681000,1.1],[1581869881000,1.1],[1581870781000,1],[1581871381000,1.1],[1581871681000,1.1],[1581872281000,1.1],[1581872881000,1],[1581874381000,1],[1581874681000,1],[1581875281000,1.1],[1581875581000,1.2],[1581875881000,1.5],[1581876181000,1.8],[1581876481000,1.9],[1581876781000,2.1],[1581877381000,2.2],[1581877681000,2.2],[1581878281000,2.2],[1581878881000,2.2],[1581879181000,2.2],[1581879481000,2.2],[1581880381000,2.5],[1581880681000,2.5],[1581880981000,2.5],[1581882481000,2.5],[1581882781000,2.5],[1581883081000,2.5],[1581883381000,2.5],[1581883681000,2.5],[1581883981000,2.5],[1581884581000,2.4],[1581884881000,2.4],[1581885181000,2.3],[1581885481000,2.3],[1581885781000,2.4],[1581886081000,2.3],[1581886381000,2.3],[1581886681000,2.3],[1581886981000,2.3],[1581887281000,2.3],[1581887581000,2.2],[1581887881000,2.2],[1581888181000,2.2],[1581888481000,2.2],[1581888781000,2.2],[1581889081000,2.1],[1581889381000,2.1],[1581889681000,2.2],[1581889981000,2.2],[1581890281000,2.2],[1581890581000,2.2],[1581890881000,2.2],[1581891481000,2.2],[1581892081000,2.2],[1581892681000,2.2],[1581892981000,2.2],[1581893281000,2.2],[1581893581000,2.2],[1581893881000,2.2],], 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: [[1581807601000,77.76666667],[1581807781000,77.94000000],[1581808081000,78.70000000],[1581808381000,79.16000000],[1581808681000,79.46000000],[1581808981000,79.58000000],[1581809281000,80.12000000],[1581809581000,80.68000000],[1581809881000,80.70000000],[1581810181000,80.90000000],[1581810481000,81.22000000],[1581810781000,81.30000000],[1581811081000,81.04000000],[1581811381000,81.14000000],[1581811681000,80.82000000],[1581811981000,80.48000000],[1581812281000,80.74000000],[1581812581000,80.54000000],[1581812881000,80.80000000],[1581813181000,81.24000000],[1581813481000,81.38000000],[1581813781000,81.74000000],[1581814081000,81.88000000],[1581814381000,81.48000000],[1581814681000,81.58000000],[1581814981000,81.74000000],[1581815281000,81.66000000],[1581815581000,81.82000000],[1581815881000,82.12000000],[1581816181000,82.32000000],[1581816481000,82.38000000],[1581816781000,82.54000000],[1581817082000,82.74000000],[1581817381000,83.12000000],[1581817681000,83.18000000],[1581817981000,83.24000000],[1581818281000,83.24000000],[1581818581000,83.76000000],[1581818881000,84.16000000],[1581819181000,84.62000000],[1581819481000,85.00000000],[1581819781000,84.96000000],[1581820081000,84.84000000],[1581820381000,84.80000000],[1581820681000,85.02000000],[1581820981000,85.10000000],[1581821281000,85.18000000],[1581821581000,85.22000000],[1581821881000,85.50000000],[1581822181000,85.56000000],[1581822481000,85.66000000],[1581822781000,85.58000000],[1581823081000,85.40000000],[1581823381000,85.32000000],[1581823681000,85.44000000],[1581823981000,85.32000000],[1581824282000,85.66000000],[1581824581000,85.68000000],[1581824881000,85.34000000],[1581825181000,85.54000000],[1581825481000,85.80000000],[1581825781000,85.26000000],[1581826081000,85.26000000],[1581826381000,85.46000000],[1581826681000,85.78000000],[1581826981000,85.62000000],[1581827281000,85.58000000],[1581827581000,85.98000000],[1581827882000,86.14000000],[1581828181000,86.34000000],[1581828481000,86.38000000],[1581828781000,86.18000000],[1581829081000,86.52000000],[1581829381000,86.58000000],[1581829681000,86.76000000],[1581829981000,86.80000000],[1581830281000,86.90000000],[1581830581000,86.54000000],[1581830881000,86.66000000],[1581831181000,86.78000000],[1581831481000,86.92000000],[1581831781000,87.00000000],[1581832081000,87.00000000],[1581832381000,87.08000000],[1581832681000,87.30000000],[1581832981000,87.30000000],[1581833281000,87.50000000],[1581833581000,87.52000000],[1581833881000,87.54000000],[1581834181000,87.40000000],[1581834481000,87.42000000],[1581834781000,87.26000000],[1581835081000,87.18000000],[1581835381000,86.74000000],[1581835681000,86.22000000],[1581835981000,85.56000000],[1581836281000,85.04000000],[1581836581000,84.84000000],[1581836881000,84.34000000],[1581837181000,84.56000000],[1581837481000,84.30000000],[1581837781000,83.76000000],[1581838081000,82.56000000],[1581838381000,81.82000000],[1581838681000,80.94000000],[1581838981000,79.10000000],[1581839281000,78.96000000],[1581839581000,79.64000000],[1581839881000,78.88000000],[1581840181000,78.96000000],[1581840481000,78.64000000],[1581840781000,78.70000000],[1581841081000,78.00000000],[1581841381000,77.68000000],[1581841681000,77.04000000],[1581841981000,77.08000000],[1581842281000,76.98000000],[1581842581000,76.96000000],[1581842881000,77.30000000],[1581843181000,77.20000000],[1581843481000,76.54000000],[1581843781000,75.44000000],[1581844081000,74.40000000],[1581844381000,72.18000000],[1581844681000,69.60000000],[1581844981000,68.72000000],[1581845281000,68.46000000],[1581845581000,69.26000000],[1581845881000,68.34000000],[1581846181000,67.80000000],[1581846481000,66.04000000],[1581846781000,64.80000000],[1581847081000,62.46000000],[1581847381000,61.10000000],[1581847681000,59.74000000],[1581847981000,58.12000000],[1581848281000,56.40000000],[1581848581000,56.92000000],[1581848881000,57.88000000],[1581849181000,57.48000000],[1581849481000,55.04000000],[1581849781000,53.90000000],[1581850081000,52.50000000],[1581850381000,54.20000000],[1581850681000,53.56000000],[1581850981000,52.02000000],[1581851281000,52.24000000],[1581851581000,53.54000000],[1581851881000,52.34000000],[1581852181000,50.84000000],[1581852481000,49.70000000],[1581852781000,48.82000000],[1581853081000,49.84000000],[1581853381000,50.78000000],[1581853681000,51.02000000],[1581853981000,51.26000000],[1581854281000,51.22000000],[1581854581000,51.22000000],[1581854881000,51.44000000],[1581855181000,51.28000000],[1581855481000,51.44000000],[1581855781000,50.94000000],[1581856081000,51.62000000],[1581856381000,51.30000000],[1581856681000,51.38000000],[1581856981000,51.64000000],[1581857281000,51.84000000],[1581857581000,51.26000000],[1581857881000,51.16000000],[1581858181000,50.92000000],[1581858481000,50.38000000],[1581858781000,50.60000000],[1581859081000,50.80000000],[1581859381000,50.72000000],[1581859681000,50.80000000],[1581859981000,50.58000000],[1581860281000,50.86000000],[1581860581000,51.16000000],[1581860881000,51.46000000],[1581861181000,51.64000000],[1581861481000,51.60000000],[1581861781000,51.94000000],[1581862081000,51.30000000],[1581862381000,51.26000000],[1581862681000,51.56000000],[1581862981000,51.22000000],[1581863281000,51.08000000],[1581863581000,51.64000000],[1581863881000,51.34000000],[1581864181000,51.68000000],[1581864481000,51.68000000],[1581864782000,51.60000000],[1581865081000,51.68000000],[1581865381000,52.10000000],[1581865681000,51.84000000],[1581865981000,51.60000000],[1581866281000,52.02000000],[1581866581000,52.30000000],[1581866881000,52.78000000],[1581867181000,52.54000000],[1581867481000,52.82000000],[1581867781000,52.92000000],[1581868081000,52.54000000],[1581868381000,52.24000000],[1581868681000,52.22000000],[1581868981000,52.48000000],[1581869281000,52.54000000],[1581869581000,52.66000000],[1581869881000,52.98000000],[1581870181000,53.00000000],[1581870481000,52.88000000],[1581870781000,53.00000000],[1581871081000,53.00000000],[1581871381000,53.44000000],[1581871681000,53.54000000],[1581871981000,53.58000000],[1581872281000,53.80000000],[1581872581000,53.78000000],[1581872881000,53.92000000],[1581873181000,54.08000000],[1581873481000,54.32000000],[1581873781000,54.42000000],[1581874081000,54.32000000],[1581874381000,54.48000000],[1581874681000,54.48000000],[1581874981000,55.00000000],[1581875281000,55.34000000],[1581875581000,56.20000000],[1581875881000,57.70000000],[1581876181000,59.46000000],[1581876481000,60.90000000],[1581876781000,61.78000000],[1581877081000,62.60000000],[1581877381000,63.02000000],[1581877681000,63.42000000],[1581877981000,63.62000000],[1581878281000,63.96000000],[1581878581000,64.44000000],[1581878881000,65.38000000],[1581879181000,65.66000000],[1581879481000,66.02000000],[1581879781000,66.74000000],[1581880081000,67.50000000],[1581880381000,67.90000000],[1581880681000,68.54000000],[1581880981000,68.62000000],[1581881281000,68.94000000],[1581881581000,69.12000000],[1581881881000,69.02000000],[1581882181000,69.08000000],[1581882481000,69.18000000],[1581882781000,68.84000000],[1581883081000,69.12000000],[1581883381000,69.36000000],[1581883681000,69.44000000],[1581883981000,69.26000000],[1581884281000,69.32000000],[1581884581000,69.44000000],[1581884881000,69.44000000],[1581885181000,69.08000000],[1581885481000,69.16000000],[1581885781000,69.30000000],[1581886081000,69.18000000],[1581886381000,68.96000000],[1581886681000,68.90000000],[1581886981000,68.88000000],[1581887281000,68.84000000],[1581887581000,68.66000000],[1581887881000,68.58000000],[1581888181000,68.80000000],[1581888481000,68.82000000],[1581888781000,68.96000000],[1581889081000,69.06000000],[1581889381000,69.10000000],[1581889681000,69.16000000],[1581889981000,69.20000000],[1581890281000,69.64000000],[1581890581000,70.02000000],[1581890881000,70.68000000],[1581891181000,71.02000000],[1581891481000,71.40000000],[1581891781000,72.18000000],[1581892081000,72.52000000],[1581892381000,72.92000000],[1581892681000,73.08000000],[1581892981000,73.30000000],[1581893281000,73.50000000],[1581893581000,73.64000000],[1581893881000,73.60000000],], 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: [[1581807601000,1028.5],[1581807781000,1028.6],[1581808081000,1028.7],[1581808381000,1028.8],[1581808681000,1028.6],[1581808981000,1028.6],[1581809281000,1028.7],[1581809581000,1028.7],[1581809881000,1028.7],[1581810181000,1028.8],[1581810481000,1029.1],[1581810781000,1029.4],[1581811081000,1029.1],[1581811381000,1029.1],[1581811681000,1029.2],[1581811981000,1029],[1581812281000,1029],[1581812581000,1028.9],[1581812881000,1028.9],[1581813181000,1029],[1581813481000,1029.1],[1581813781000,1029.2],[1581814081000,1029.2],[1581814381000,1029.2],[1581814681000,1029.1],[1581814981000,1029],[1581815281000,1029.1],[1581815581000,1028.9],[1581815881000,1028.7],[1581816181000,1028.8],[1581816481000,1028.8],[1581816781000,1028.8],[1581817082000,1028.9],[1581817381000,1028.9],[1581817681000,1029],[1581817981000,1029],[1581818281000,1028.9],[1581818581000,1029],[1581818881000,1029.1],[1581819181000,1029.1],[1581819481000,1028.9],[1581819781000,1028.8],[1581820081000,1028.9],[1581820381000,1028.8],[1581820681000,1028.9],[1581820981000,1028.9],[1581821281000,1028.9],[1581821581000,1028.9],[1581821881000,1028.9],[1581822181000,1029],[1581822481000,1028.8],[1581822781000,1028.8],[1581823081000,1028.9],[1581823381000,1028.9],[1581823681000,1029],[1581823981000,1029.1],[1581824282000,1029.1],[1581824581000,1029.1],[1581824881000,1029],[1581825181000,1029],[1581825481000,1029.1],[1581825781000,1029.1],[1581826081000,1029],[1581826381000,1029],[1581826681000,1028.9],[1581826981000,1028.9],[1581827281000,1028.8],[1581827581000,1028.8],[1581827882000,1028.7],[1581828181000,1028.6],[1581828481000,1028.7],[1581828781000,1028.6],[1581829081000,1028.7],[1581829381000,1028.7],[1581829681000,1028.7],[1581829981000,1028.7],[1581830281000,1028.7],[1581830581000,1028.6],[1581830881000,1028.6],[1581831181000,1028.5],[1581831481000,1028.5],[1581831781000,1028.6],[1581832081000,1028.7],[1581832381000,1028.8],[1581832681000,1028.9],[1581832981000,1028.9],[1581833281000,1028.9],[1581833581000,1028.9],[1581833881000,1028.9],[1581834181000,1028.9],[1581834481000,1029],[1581834781000,1029.1],[1581835081000,1029.2],[1581835381000,1029.3],[1581835681000,1029.3],[1581835981000,1029.3],[1581836281000,1029.1],[1581836581000,1029.1],[1581836881000,1029.1],[1581837181000,1029],[1581837481000,1029],[1581837781000,1028.9],[1581838081000,1028.9],[1581838381000,1028.9],[1581838681000,1028.8],[1581838981000,1028.9],[1581839281000,1028.9],[1581839581000,1029],[1581839881000,1028.9],[1581840181000,1028.9],[1581840481000,1028.7],[1581840781000,1028.6],[1581841081000,1028.7],[1581841381000,1028.7],[1581841681000,1028.7],[1581841981000,1028.6],[1581842281000,1028.6],[1581842581000,1028.7],[1581842881000,1028.6],[1581843181000,1028.5],[1581843481000,1028.4],[1581843781000,1028.3],[1581844081000,1028.2],[1581844381000,1028.3],[1581845281000,1028.2],[1581845581000,1028.3],[1581845881000,1028.4],[1581846181000,1028.4],[1581846481000,1028.6],[1581846781000,1028.6],[1581847381000,1028.4],[1581847681000,1028.2],[1581848281000,1028],[1581848881000,1027.9],[1581849181000,1027.8],[1581849481000,1027.7],[1581849781000,1027.6],[1581850081000,1027.4],[1581851281000,1027.2],[1581853081000,1026.5],[1581853681000,1026.6],[1581853981000,1026.5],[1581856381000,1025.9],[1581856681000,1025.9],[1581857281000,1025.8],[1581858781000,1025.6],[1581859681000,1025.4],[1581860581000,1025.3],[1581861181000,1025.3],[1581862681000,1025.1],[1581863281000,1025.1],[1581863581000,1025.1],[1581863881000,1025.1],[1581864782000,1025],[1581865681000,1024.9],[1581866281000,1024.8],[1581866581000,1024.9],[1581866881000,1024.9],[1581868381000,1024.9],[1581868681000,1024.9],[1581869881000,1025.1],[1581870781000,1024.9],[1581871381000,1024.8],[1581871681000,1024.8],[1581872281000,1024.6],[1581872881000,1024.8],[1581874381000,1024.8],[1581874681000,1024.7],[1581875281000,1024.7],[1581875581000,1024.5],[1581875881000,1024.4],[1581876181000,1024.4],[1581876481000,1024.5],[1581876781000,1024.4],[1581877381000,1024.3],[1581877681000,1024.2],[1581878281000,1024.4],[1581878881000,1024.5],[1581879181000,1024.5],[1581879481000,1024.5],[1581880381000,1024.3],[1581880681000,1024.3],[1581880981000,1024.3],[1581882481000,1024.3],[1581882781000,1024.2],[1581883081000,1024.1],[1581883381000,1024.1],[1581883681000,1024],[1581883981000,1024],[1581884581000,1023.5],[1581884881000,1023.3],[1581885181000,1023.4],[1581885481000,1023.4],[1581885781000,1023.1],[1581886081000,1022.8],[1581886381000,1022.7],[1581886681000,1022.8],[1581886981000,1023.1],[1581887281000,1023.2],[1581887581000,1023.2],[1581887881000,1023.1],[1581888181000,1023],[1581888481000,1023],[1581888781000,1023],[1581889081000,1022.9],[1581889381000,1022.9],[1581889681000,1022.6],[1581889981000,1022.5],[1581890281000,1022.6],[1581890581000,1022.5],[1581890881000,1022.4],[1581891481000,1022.3],[1581892081000,1022.2],[1581892681000,1022.2],[1581892981000,1022.1],[1581893281000,1022.1],[1581893581000,1022.1],[1581893881000,1022],], 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); }); $('.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; }