var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1581807602000,2.20000000],[1581807781000,2.38000000],[1581808081000,2.46000000],[1581808382000,2.26000000],[1581808681000,1.92000000],[1581808982000,1.66000000],[1581809281000,1.30000000],[1581809581000,1.88000000],[1581809882000,2.50000000],[1581810181000,2.02000000],[1581810481000,1.64000000],[1581810781000,1.76000000],[1581811081000,2.10000000],[1581811381000,1.74000000],[1581811681000,2.06000000],[1581811982000,2.02000000],[1581812281000,2.18000000],[1581812581000,2.12000000],[1581812881000,1.78000000],[1581813182000,0.96000000],[1581813481000,0.98000000],[1581813781000,1.16000000],[1581814081000,1.30000000],[1581814381000,1.30000000],[1581814682000,0.76000000],[1581814981000,1.38000000],[1581815281000,1.24000000],[1581815581000,1.22000000],[1581815881000,1.10000000],[1581816181000,0.28000000],[1581816481000,0.52000000],[1581816781000,0.28000000],[1581817082000,0.38000000],[1581817381000,0.88000000],[1581817681000,0.24000000],[1581817982000,0.34000000],[1581818281000,0.12000000],[1581818581000,0.70000000],[1581818881000,0.82000000],[1581819182000,0.90000000],[1581819481000,0.74000000],[1581819781000,0.20000000],[1581820082000,-0.36000000],[1581820381000,-0.66000000],[1581820681000,-0.72000000],[1581820982000,0.08000000],[1581821282000,0.42000000],[1581821581000,0.62000000],[1581821881000,1.10000000],[1581822181000,0.78000000],[1581822482000,0.50000000],[1581822781000,0.36000000],[1581823081000,0.26000000],[1581823382000,0.36000000],[1581823681000,0.50000000],[1581823981000,0.34000000],[1581824281000,1.38000000],[1581824593000,0.24000000],[1581824881000,-0.04000000],[1581825181000,0.02000000],[1581825481000,-0.24000000],[1581825781000,-0.28000000],[1581826081000,-0.06000000],[1581826381000,0.24000000],[1581826681000,1.04000000],[1581826993000,0.46000000],[1581827281000,0.02000000],[1581827581000,0.48000000],[1581827881000,0.60000000],[1581828181000,0.42000000],[1581828481000,0.36000000],[1581828781000,0.14000000],[1581829081000,0.32000000],[1581829381000,0.58000000],[1581829681000,1.30000000],[1581829982000,1.42000000],[1581830281000,0.70000000],[1581830581000,0.30000000],[1581830882000,0.10000000],[1581831181000,0.06000000],[1581831481000,0.16000000],[1581831781000,0.36000000],[1581832081000,0.08000000],[1581832381000,0.44000000],[1581832681000,0.58000000],[1581832981000,0.54000000],[1581833282000,0.14000000],[1581833581000,0.28000000],[1581833881000,0.32000000],[1581834182000,0.52000000],[1581834482000,1.08000000],[1581834781000,0.88000000],[1581835081000,0.52000000],[1581835381000,1.00000000],[1581835682000,0.96000000],[1581835981000,1.48000000],[1581836281000,1.92000000],[1581836582000,1.96000000],[1581836881000,1.58000000],[1581837181000,1.40000000],[1581837481000,2.34000000],[1581837781000,2.78000000],[1581838081000,2.60000000],[1581838382000,2.76000000],[1581838682000,3.68000000],[1581838981000,4.08000000],[1581839282000,4.34000000],[1581839581000,4.62000000],[1581839882000,4.88000000],[1581840181000,4.90000000],[1581840481000,4.90000000],[1581840781000,5.10000000],[1581841082000,5.42000000],[1581841381000,5.60000000],[1581841681000,5.68000000],[1581841982000,5.50000000],[1581842281000,5.54000000],[1581842581000,5.38000000],[1581842882000,5.46000000],[1581843182000,5.60000000],[1581843481000,5.70000000],[1581843781000,5.62000000],[1581844081000,5.50000000],[1581844382000,5.70000000],[1581844681000,5.90000000],[1581844981000,6.12000000],[1581845281000,6.28000000],[1581845582000,6.42000000],[1581845881000,6.48000000],[1581846181000,6.72000000],[1581846481000,6.84000000],[1581846782000,7.00000000],[1581847082000,7.06000000],[1581847381000,7.28000000],[1581847681000,7.24000000],[1581847982000,7.24000000],[1581848281000,7.36000000],[1581848581000,7.40000000],[1581848881000,7.36000000],[1581849182000,7.54000000],[1581849481000,7.94000000],[1581849782000,8.10000000],[1581850081000,8.22000000],[1581850381000,8.26000000],[1581850681000,8.14000000],[1581850982000,7.88000000],[1581851281000,8.14000000],[1581851581000,8.22000000],[1581851881000,8.22000000],[1581852182000,8.48000000],[1581852481000,8.42000000],[1581852781000,8.44000000],[1581853081000,8.10000000],[1581853382000,8.22000000],[1581853681000,8.42000000],[1581853981000,8.42000000],[1581854281000,8.72000000],[1581854581000,8.76000000],[1581854881000,8.40000000],[1581855182000,8.22000000],[1581855481000,8.32000000],[1581855781000,8.37500000],[1581856082000,8.57500000],[1581856381000,8.80000000],[1581856681000,8.66000000],[1581856982000,8.58000000],[1581857312000,8.58000000],[1581857581000,8.64000000],[1581857882000,8.87500000],[1581858241000,8.70000000],[1581858481000,8.78000000],[1581858782000,8.72500000],[1581859081000,9.06666667],[1581859381000,8.60000000],[1581859681000,8.56000000],[1581859981000,9.02000000],[1581860282000,9.62000000],[1581860581000,10.00000000],[1581860880000,9.83333333],[1581861241000,9.32500000],[1581861481000,9.18000000],[1581861790000,9.42000000],[1581862081000,9.76000000],[1581862411000,9.48000000],[1581862681000,9.38000000],[1581862982000,9.20000000],[1581863291000,9.27500000],[1581863581000,9.16000000],[1581863881000,8.80000000],[1581864181000,8.78000000],[1581864482000,8.72000000],[1581864781000,8.44000000],[1581865081000,8.04000000],[1581865381000,7.93333333],[1581865681000,7.80000000],[1581865950000,7.64000000],[1581866293000,7.38333333],[1581866627000,7.22000000],[1581866881000,7.16000000],[1581867182000,6.94000000],[1581867620000,6.68000000],[1581867781000,6.56000000],[1581868082000,6.40000000],[1581868381000,6.32000000],[1581868681000,6.20000000],[1581868982000,6.17500000],[1581869281000,6.06666667],[1581869702000,6.00000000],[1581869881000,5.92000000],[1581870202000,5.90000000],[1581870457000,5.92500000],[1581870756000,5.92000000],[1581871051000,5.96666667],[1581871365000,5.78000000],[1581871651000,5.76666667],[1581871981000,5.70000000],[1581872282000,5.62000000],[1581872581000,5.44000000],[1581872882000,5.44000000],[1581873181000,5.42000000],[1581873481000,5.54000000],[1581873782000,5.54000000],[1581874081000,5.72000000],[1581874381000,5.66000000],[1581874682000,5.68000000],[1581874981000,5.68000000],[1581875281000,5.70000000],[1581875582000,5.58000000],[1581875881000,5.42000000],[1581876181000,5.18000000],[1581876481000,5.20000000],[1581876782000,5.24000000],[1581877081000,5.42000000],[1581877381000,5.42000000],[1581877682000,5.32000000],[1581877981000,5.44000000],[1581878281000,5.56000000],[1581878582000,5.70000000],[1581878881000,5.82000000],[1581879181000,5.66000000],[1581879482000,5.48000000],[1581879781000,5.54000000],[1581880081000,5.44000000],[1581880381000,5.40000000],[1581880681000,5.36000000],[1581880982000,5.30000000],[1581881281000,5.26000000],[1581881581000,5.42000000],[1581881881000,5.44000000],[1581882182000,5.36000000],[1581882481000,5.36000000],[1581882781000,5.30000000],[1581883082000,5.30000000],[1581883382000,5.30000000],[1581883681000,5.42000000],[1581883982000,5.44000000],[1581884281000,5.44000000],[1581884581000,5.46000000],[1581884882000,5.64000000],[1581885181000,5.72000000],[1581885481000,5.74000000],[1581885782000,5.70000000],[1581886081000,5.70000000],[1581886381000,5.68000000],[1581886682000,5.80000000],[1581886981000,5.72000000],[1581887281000,5.74000000],[1581887581000,5.76000000],[1581887881000,5.74000000],[1581888182000,5.70000000],[1581888481000,5.70000000],[1581888781000,5.70000000],[1581889081000,5.70000000],[1581889382000,5.70000000],[1581889681000,5.68000000],[1581889981000,5.60000000],[1581890281000,5.60000000],[1581890581000,5.60000000],[1581890881000,5.60000000],[1581891182000,5.52000000],[1581891482000,5.50000000],[1581891782000,5.54000000],[1581892081000,5.60000000],[1581892381000,5.64000000],[1581892682000,5.70000000],[1581892982000,5.66000000],[1581893281000,5.66000000],[1581893581000,5.76000000],[1581893881000,5.75000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1581807602000,1.7],[1581807781000,1.8],[1581808081000,1.9],[1581808382000,1.6],[1581808681000,1.3],[1581808982000,1.1],[1581809281000,0.8],[1581809581000,1.4],[1581809882000,1.9],[1581810181000,1.3],[1581810481000,1.1],[1581811081000,1.5],[1581811381000,1.2],[1581811681000,1.5],[1581812281000,1.5],[1581812581000,1.4],[1581812881000,1.1],[1581813182000,0.4],[1581813481000,0.5],[1581813781000,0.8],[1581814081000,0.9],[1581814381000,0.9],[1581814682000,0.4],[1581814981000,1],[1581815281000,0.9],[1581815581000,0.8],[1581815881000,0.7],[1581816181000,-0],[1581816481000,0.3],[1581816781000,0.1],[1581817082000,0.3],[1581817381000,0.7],[1581817681000,0.1],[1581817982000,0.2],[1581818281000,0.1],[1581818581000,0.7],[1581818881000,0.7],[1581819182000,0.8],[1581819481000,0.6],[1581819781000,0.1],[1581820082000,-0.4],[1581820381000,-0.7],[1581820681000,-0.7],[1581820982000,0.1],[1581821282000,0.4],[1581821581000,0.6],[1581821881000,1.1],[1581822482000,0.5],[1581822781000,0.3],[1581823081000,0.2],[1581823382000,0.4],[1581823681000,0.5],[1581823981000,0.3],[1581824281000,1.3],[1581824881000,-0.1],[1581825181000,-0],[1581825481000,-0.2],[1581825781000,-0.3],[1581826081000,-0.1],[1581826381000,0.2],[1581826681000,1],[1581827281000,0],[1581827581000,0.5],[1581827881000,0.5],[1581828481000,0.3],[1581828781000,0.1],[1581829081000,0.3],[1581829381000,0.6],[1581829681000,1.2],[1581829982000,1.2],[1581830281000,0.5],[1581830581000,0.2],[1581830882000,0],[1581831181000,0],[1581831481000,0.1],[1581832081000,0.1],[1581832381000,0.4],[1581832681000,0.6],[1581832981000,0.5],[1581833282000,0.1],[1581833581000,0.3],[1581833881000,0.3],[1581834482000,1],[1581834781000,0.8],[1581835081000,0.5],[1581835381000,0.9],[1581835682000,0.9],[1581835981000,1.3],[1581836281000,1.6],[1581836582000,1.6],[1581836881000,1.2],[1581837181000,1.1],[1581837781000,2.1],[1581838081000,1.9],[1581838382000,1.9],[1581838682000,2.6],[1581838981000,2.7],[1581839282000,2.8],[1581839581000,2.8],[1581840181000,2.8],[1581840481000,2.7],[1581840781000,2.8],[1581841082000,2.9],[1581841381000,3],[1581841681000,3],[1581841982000,2.9],[1581842281000,2.9],[1581842581000,2.7],[1581842882000,2.8],[1581843182000,3],[1581843481000,3],[1581843781000,2.9],[1581844081000,2.8],[1581844382000,3],[1581844681000,3.1],[1581844981000,3.2],[1581845281000,3.2],[1581845582000,3.2],[1581845881000,3.2],[1581846181000,3.3],[1581846481000,3.3],[1581846782000,3.5],[1581847082000,3.6],[1581847381000,3.7],[1581847681000,3.6],[1581847982000,3.6],[1581848281000,3.6],[1581848581000,3.5],[1581848881000,3.5],[1581849182000,3.5],[1581849481000,3.6],[1581849782000,3.6],[1581850081000,3.8],[1581850381000,3.8],[1581850681000,3.7],[1581850982000,3.6],[1581851281000,3.7],[1581851581000,3.5],[1581851881000,3.3],[1581852182000,3.5],[1581852481000,3.4],[1581852781000,3.3],[1581853081000,3.3],[1581853382000,3.3],[1581853681000,3.4],[1581853981000,3.5],[1581854281000,3.5],[1581854581000,3.7],[1581854881000,3.4],[1581855182000,3.2],[1581855481000,3.1],[1581855781000,3.2],[1581856082000,3.4],[1581856381000,3.3],[1581856681000,3.2],[1581856982000,3.3],[1581857581000,3.2],[1581857882000,3.3],[1581858481000,3.1],[1581858782000,2.9],[1581859081000,3],[1581859381000,3],[1581859681000,3.2],[1581859981000,3.4],[1581860282000,3.7],[1581860581000,3.7],[1581861481000,3.2],[1581862081000,2.9],[1581862681000,2.9],[1581863581000,3],[1581863881000,2.8],[1581864181000,2.7],[1581864482000,2.6],[1581864781000,2.5],[1581865081000,2.4],[1581865381000,2.8],[1581865681000,3],[1581866881000,2.9],[1581867182000,2.9],[1581867781000,2.9],[1581868082000,2.8],[1581868381000,2.8],[1581868681000,2.8],[1581868982000,2.9],[1581869281000,2.8],[1581869881000,2.8],[1581872282000,2.8],[1581872581000,2.7],[1581872882000,2.8],[1581873181000,2.9],[1581873481000,3],[1581873782000,2.9],[1581874081000,3],[1581874381000,3],[1581874682000,3],[1581874981000,3],[1581875281000,3.1],[1581875582000,3],[1581875881000,3],[1581876181000,2.9],[1581876481000,2.9],[1581876782000,3],[1581877081000,3.1],[1581877381000,3],[1581877682000,3],[1581877981000,3],[1581878281000,3.1],[1581878582000,3.1],[1581878881000,3],[1581879181000,3],[1581879482000,2.9],[1581879781000,2.9],[1581880081000,2.8],[1581880381000,2.8],[1581880681000,2.7],[1581880982000,2.7],[1581881281000,2.6],[1581881581000,2.6],[1581881881000,2.5],[1581882182000,2.4],[1581882481000,2.4],[1581882781000,2.3],[1581883082000,2.3],[1581883382000,2.2],[1581883681000,2.2],[1581883982000,2.2],[1581884281000,2.2],[1581884581000,2.2],[1581884882000,2.2],[1581885181000,2.2],[1581885481000,2.2],[1581885782000,2.2],[1581886081000,2.2],[1581886381000,2.2],[1581886981000,2.2],[1581887281000,2.3],[1581887581000,2.2],[1581887881000,2.3],[1581888182000,2.3],[1581888481000,2.3],[1581888781000,2.3],[1581889081000,2.3],[1581889382000,2.3],[1581889681000,2.3],[1581889981000,2.3],[1581890281000,2.4],[1581890581000,2.4],[1581890881000,2.4],[1581891482000,2.4],[1581891782000,2.4],[1581892081000,2.5],[1581892381000,2.5],[1581892682000,2.5],[1581892982000,2.5],[1581893281000,2.6],[1581893581000,2.6],], 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: [[1581807602000,96.60000000],[1581807781000,96.28000000],[1581808081000,96.00000000],[1581808382000,95.66000000],[1581808681000,95.84000000],[1581808982000,95.84000000],[1581809281000,96.54000000],[1581809581000,96.40000000],[1581809882000,95.54000000],[1581810181000,95.28000000],[1581810481000,96.06000000],[1581810782000,96.16000000],[1581811081000,95.94000000],[1581811381000,96.14000000],[1581811681000,96.02000000],[1581811981000,95.68000000],[1581812281000,95.48000000],[1581812581000,95.22000000],[1581812881000,95.14000000],[1581813182000,96.30000000],[1581813481000,96.90000000],[1581813781000,97.16000000],[1581814081000,97.44000000],[1581814381000,97.28000000],[1581814682000,97.72000000],[1581814981000,97.56000000],[1581815281000,97.36000000],[1581815581000,97.40000000],[1581815881000,97.00000000],[1581816181000,97.90000000],[1581816481000,98.24000000],[1581816781000,98.54000000],[1581817082000,99.08000000],[1581817381000,98.74000000],[1581817681000,99.02000000],[1581817982000,99.22000000],[1581818281000,99.52000000],[1581818581000,99.68000000],[1581818881000,99.44000000],[1581819182000,99.44000000],[1581819481000,99.16000000],[1581819781000,99.36000000],[1581820082000,99.54000000],[1581820381000,99.96000000],[1581820681000,100.00000000],[1581820982000,100.00000000],[1581821282000,100.00000000],[1581821581000,100.00000000],[1581821881000,99.88000000],[1581822182000,99.72000000],[1581822482000,99.82000000],[1581822781000,99.76000000],[1581823081000,99.90000000],[1581823382000,100.00000000],[1581823681000,99.84000000],[1581823981000,99.98000000],[1581824281000,99.16000000],[1581824582000,99.22000000],[1581824881000,99.84000000],[1581825181000,99.84000000],[1581825481000,100.00000000],[1581825781000,100.00000000],[1581826081000,100.00000000],[1581826381000,100.00000000],[1581826681000,99.72000000],[1581826982000,99.40000000],[1581827281000,99.94000000],[1581827581000,99.92000000],[1581827881000,99.64000000],[1581828182000,99.82000000],[1581828481000,99.84000000],[1581828781000,100.00000000],[1581829081000,100.00000000],[1581829381000,99.98000000],[1581829681000,99.28000000],[1581829982000,98.52000000],[1581830281000,98.74000000],[1581830581000,99.22000000],[1581830882000,99.48000000],[1581831181000,99.78000000],[1581831481000,99.92000000],[1581831782000,99.72000000],[1581832081000,99.98000000],[1581832381000,100.00000000],[1581832681000,99.84000000],[1581832981000,99.78000000],[1581833282000,99.90000000],[1581833581000,100.00000000],[1581833881000,100.00000000],[1581834181000,100.00000000],[1581834482000,99.76000000],[1581834781000,99.34000000],[1581835081000,99.78000000],[1581835381000,99.50000000],[1581835682000,99.36000000],[1581835981000,98.84000000],[1581836281000,98.02000000],[1581836582000,97.40000000],[1581836881000,97.56000000],[1581837181000,97.68000000],[1581837482000,96.62000000],[1581837781000,95.44000000],[1581838081000,95.04000000],[1581838382000,94.38000000],[1581838682000,92.52000000],[1581838981000,90.92000000],[1581839282000,89.60000000],[1581839581000,88.38000000],[1581839881000,86.84000000],[1581840181000,86.32000000],[1581840481000,85.80000000],[1581840781000,85.02000000],[1581841082000,84.28000000],[1581841381000,83.64000000],[1581841681000,83.18000000],[1581841982000,83.54000000],[1581842281000,83.40000000],[1581842581000,83.16000000],[1581842882000,83.12000000],[1581843182000,83.50000000],[1581843481000,82.90000000],[1581843781000,82.76000000],[1581844081000,83.12000000],[1581844382000,82.86000000],[1581844681000,82.42000000],[1581844981000,81.70000000],[1581845281000,81.00000000],[1581845582000,80.24000000],[1581845881000,79.62000000],[1581846181000,78.86000000],[1581846481000,78.60000000],[1581846782000,78.84000000],[1581847082000,78.84000000],[1581847381000,78.44000000],[1581847681000,78.16000000],[1581847982000,77.74000000],[1581848281000,77.28000000],[1581848581000,76.58000000],[1581848881000,76.72000000],[1581849182000,75.84000000],[1581849481000,74.48000000],[1581849782000,73.68000000],[1581850081000,73.72000000],[1581850381000,73.98000000],[1581850681000,73.78000000],[1581850982000,74.40000000],[1581851281000,74.06000000],[1581851581000,72.50000000],[1581851881000,71.60000000],[1581852182000,71.30000000],[1581852481000,71.06000000],[1581852781000,70.60000000],[1581853081000,71.82000000],[1581853382000,71.44000000],[1581853681000,71.02000000],[1581853981000,71.54000000],[1581854281000,69.98000000],[1581854581000,70.68000000],[1581854881000,70.86000000],[1581855182000,71.06000000],[1581855481000,70.04000000],[1581855781000,70.42000000],[1581856082000,70.18000000],[1581856381000,68.52000000],[1581856681000,68.62000000],[1581856982000,69.58000000],[1581857281000,69.22000000],[1581857581000,68.92000000],[1581857882000,68.22000000],[1581858181000,68.16000000],[1581858481000,67.62000000],[1581858782000,67.08000000],[1581859081000,65.92000000],[1581859381000,68.32000000],[1581859681000,69.34000000],[1581859981000,68.00000000],[1581860282000,66.76000000],[1581860581000,65.40000000],[1581860881000,63.62000000],[1581861182000,65.44000000],[1581861481000,66.68000000],[1581861782000,64.36000000],[1581862081000,62.68000000],[1581862382000,63.80000000],[1581862681000,64.10000000],[1581862981000,65.46000000],[1581863282000,65.44000000],[1581863581000,65.78000000],[1581863881000,66.50000000],[1581864181000,65.76000000],[1581864482000,65.90000000],[1581864781000,66.36000000],[1581865081000,67.90000000],[1581865381000,70.44000000],[1581865681000,72.12000000],[1581865981000,72.80000000],[1581866281000,74.18000000],[1581866581000,74.54000000],[1581866881000,74.82000000],[1581867182000,75.92000000],[1581867481000,77.06000000],[1581867781000,77.52000000],[1581868082000,78.04000000],[1581868381000,78.64000000],[1581868681000,79.16000000],[1581868982000,79.50000000],[1581869281000,79.74000000],[1581869581000,80.14000000],[1581869881000,80.38000000],[1581870182000,80.58000000],[1581870482000,80.54000000],[1581870782000,80.48000000],[1581871081000,80.46000000],[1581871381000,80.92000000],[1581871682000,81.06000000],[1581871982000,81.50000000],[1581872282000,82.12000000],[1581872581000,82.90000000],[1581872882000,83.36000000],[1581873181000,83.72000000],[1581873481000,83.64000000],[1581873782000,83.44000000],[1581874081000,82.88000000],[1581874381000,83.06000000],[1581874682000,83.12000000],[1581874981000,83.18000000],[1581875281000,83.30000000],[1581875582000,83.68000000],[1581875881000,84.36000000],[1581876181000,85.14000000],[1581876481000,85.40000000],[1581876782000,85.40000000],[1581877081000,84.92000000],[1581877381000,84.76000000],[1581877682000,85.00000000],[1581877981000,84.74000000],[1581878281000,84.10000000],[1581878582000,83.28000000],[1581878881000,82.50000000],[1581879181000,83.10000000],[1581879482000,83.58000000],[1581879781000,83.26000000],[1581880081000,83.52000000],[1581880381000,83.36000000],[1581880681000,83.42000000],[1581880982000,83.50000000],[1581881281000,83.28000000],[1581881581000,82.28000000],[1581881881000,81.50000000],[1581882182000,81.28000000],[1581882481000,81.24000000],[1581882781000,81.14000000],[1581883082000,81.00000000],[1581883382000,80.74000000],[1581883681000,80.18000000],[1581883982000,79.76000000],[1581884281000,79.62000000],[1581884581000,79.62000000],[1581884882000,78.88000000],[1581885181000,78.54000000],[1581885481000,78.38000000],[1581885782000,78.50000000],[1581886081000,78.50000000],[1581886381000,78.56000000],[1581886681000,78.24000000],[1581886981000,78.46000000],[1581887281000,78.60000000],[1581887581000,78.32000000],[1581887881000,78.74000000],[1581888182000,78.88000000],[1581888481000,78.78000000],[1581888781000,78.82000000],[1581889081000,78.92000000],[1581889382000,79.14000000],[1581889681000,79.24000000],[1581889981000,79.62000000],[1581890281000,79.84000000],[1581890581000,79.86000000],[1581890881000,80.02000000],[1581891181000,80.52000000],[1581891482000,80.74000000],[1581891782000,80.62000000],[1581892081000,80.60000000],[1581892381000,80.50000000],[1581892682000,80.34000000],[1581892982000,80.58000000],[1581893281000,80.70000000],[1581893581000,80.60000000],[1581893882000,80.70000000],], 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: [[1581807602000,1031.3],[1581807781000,1031.2],[1581808081000,1031.2],[1581808382000,1031.3],[1581808681000,1031.3],[1581808982000,1031.2],[1581809281000,1031.3],[1581809581000,1031.2],[1581809882000,1031.2],[1581810181000,1031.3],[1581810481000,1031.5],[1581811081000,1031.4],[1581811381000,1031.6],[1581811681000,1031.7],[1581812281000,1031.3],[1581812581000,1031.4],[1581812881000,1031.4],[1581813182000,1031.7],[1581813481000,1031.8],[1581813781000,1031.8],[1581814081000,1032],[1581814381000,1032.3],[1581814682000,1032.6],[1581814981000,1032.4],[1581815281000,1032.2],[1581815581000,1032.1],[1581815881000,1032],[1581816181000,1032.2],[1581816481000,1032.3],[1581816781000,1032.2],[1581817082000,1032.3],[1581817381000,1032.2],[1581817681000,1032.2],[1581817982000,1032.3],[1581818281000,1032.3],[1581818581000,1032.2],[1581818881000,1032.2],[1581819182000,1032],[1581819481000,1031.9],[1581819781000,1031.8],[1581820082000,1031.9],[1581820381000,1031.9],[1581820681000,1032],[1581820982000,1031.9],[1581821282000,1032],[1581821581000,1032],[1581821881000,1031.9],[1581822482000,1032.3],[1581822781000,1032.3],[1581823081000,1032.3],[1581823382000,1032.2],[1581823681000,1032.2],[1581823981000,1032.1],[1581824281000,1031.9],[1581824881000,1032],[1581825181000,1032],[1581825481000,1031.9],[1581825781000,1031.9],[1581826081000,1031.9],[1581826381000,1031.9],[1581826681000,1031.7],[1581827281000,1031.9],[1581827581000,1031.8],[1581827881000,1031.7],[1581828481000,1031.8],[1581828781000,1031.8],[1581829081000,1031.7],[1581829381000,1031.8],[1581829681000,1031.8],[1581829982000,1031.6],[1581830281000,1031.5],[1581830581000,1031.6],[1581830882000,1031.5],[1581831181000,1031.5],[1581831481000,1031.5],[1581832081000,1031.6],[1581832381000,1031.5],[1581832681000,1031.5],[1581832981000,1031.6],[1581833282000,1031.7],[1581833581000,1031.7],[1581833881000,1031.6],[1581834482000,1031.5],[1581834781000,1031.6],[1581835081000,1032],[1581835381000,1031.9],[1581835682000,1031.9],[1581835981000,1031.9],[1581836281000,1031.8],[1581836582000,1031.8],[1581836881000,1031.8],[1581837181000,1031.9],[1581837781000,1031.8],[1581838081000,1032],[1581838382000,1032.1],[1581838682000,1031.9],[1581838981000,1031.9],[1581839282000,1031.7],[1581839581000,1031.8],[1581840181000,1031.9],[1581840481000,1032],[1581840781000,1032],[1581841082000,1031.8],[1581841381000,1031.8],[1581841681000,1031.7],[1581841982000,1031.8],[1581842281000,1031.7],[1581842581000,1031.7],[1581842882000,1031.6],[1581843182000,1031.5],[1581843481000,1031.3],[1581843781000,1031.2],[1581844081000,1031.3],[1581844382000,1031.3],[1581844681000,1031.3],[1581844981000,1031.1],[1581845281000,1031.1],[1581845582000,1031.1],[1581845881000,1031.2],[1581846181000,1031.1],[1581846481000,1031.1],[1581846782000,1031.1],[1581847082000,1031.1],[1581847381000,1031],[1581847681000,1031.1],[1581847982000,1031],[1581848281000,1031],[1581848581000,1030.9],[1581848881000,1030.9],[1581849182000,1030.8],[1581849481000,1030.7],[1581849782000,1030.7],[1581850081000,1030.6],[1581850381000,1030.6],[1581850681000,1030.6],[1581850982000,1030.5],[1581851281000,1030.5],[1581851581000,1030.4],[1581851881000,1030.4],[1581852182000,1030.2],[1581852481000,1030.1],[1581852781000,1030.1],[1581853081000,1030.1],[1581853382000,1030],[1581853681000,1029.8],[1581853981000,1029.7],[1581854281000,1029.5],[1581854581000,1029.4],[1581854881000,1029.5],[1581855182000,1029.5],[1581855481000,1029.4],[1581855781000,1029.3],[1581856082000,1029.2],[1581856381000,1029.2],[1581856681000,1029.1],[1581856982000,1029.1],[1581857581000,1028.9],[1581857882000,1028.8],[1581858481000,1028.8],[1581858782000,1028.9],[1581859081000,1028.8],[1581859381000,1028.8],[1581859681000,1028.8],[1581859981000,1028.7],[1581860282000,1028.7],[1581860581000,1028.6],[1581861481000,1028.6],[1581862081000,1028.5],[1581862681000,1028.5],[1581863581000,1028.4],[1581863881000,1028.4],[1581864181000,1028.4],[1581864482000,1028.4],[1581864781000,1028.3],[1581865081000,1028.2],[1581865381000,1028.2],[1581865681000,1028.1],[1581866881000,1028],[1581867182000,1028],[1581867781000,1028.2],[1581868082000,1028.3],[1581868381000,1028.3],[1581868681000,1028.5],[1581868982000,1028.5],[1581869281000,1028.5],[1581869881000,1028.6],[1581872282000,1028.8],[1581872581000,1028.8],[1581872882000,1028.7],[1581873181000,1028.7],[1581873481000,1028.7],[1581873782000,1028.7],[1581874081000,1028.8],[1581874381000,1028.8],[1581874682000,1028.9],[1581874981000,1028.9],[1581875281000,1028.9],[1581875582000,1028.9],[1581875881000,1028.8],[1581876181000,1028.8],[1581876481000,1028.7],[1581876782000,1028.8],[1581877081000,1028.8],[1581877381000,1028.7],[1581877682000,1028.6],[1581877981000,1028.5],[1581878281000,1028.5],[1581878582000,1028.6],[1581878881000,1028.5],[1581879181000,1028.4],[1581879482000,1028.5],[1581879781000,1028.4],[1581880081000,1028.4],[1581880381000,1028.3],[1581880681000,1028.2],[1581880982000,1028.2],[1581881281000,1028.3],[1581881581000,1028.3],[1581881881000,1028.3],[1581882182000,1028.3],[1581882481000,1028.3],[1581882781000,1028.3],[1581883082000,1028.2],[1581883382000,1028.1],[1581883681000,1028.1],[1581883982000,1028.1],[1581884281000,1028],[1581884581000,1028],[1581884882000,1028],[1581885181000,1028],[1581885481000,1027.9],[1581885782000,1027.8],[1581886081000,1027.8],[1581886381000,1027.8],[1581886981000,1027.6],[1581887281000,1027.5],[1581887581000,1027.4],[1581887881000,1027.3],[1581888182000,1027.3],[1581888481000,1027.2],[1581888781000,1027.1],[1581889081000,1027],[1581889382000,1026.9],[1581889681000,1026.8],[1581889981000,1026.7],[1581890281000,1026.7],[1581890581000,1026.5],[1581890881000,1026.4],[1581891482000,1026.5],[1581891782000,1026.5],[1581892081000,1026.5],[1581892381000,1026.5],[1581892682000,1026.6],[1581892982000,1026.6],[1581893281000,1026.6],[1581893581000,1026.6],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $('.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; }