var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1764889224000,6.20000000],[1764889352000,6.20000000],[1764889706000,6.26000000],[1764889992000,6.35000000],[1764890296000,6.40000000],[1764890552000,6.42500000],[1764890904000,6.50000000],[1764891177000,6.50000000],[1764891480000,6.50000000],[1764891753000,6.50000000],[1764892104000,6.50000000],[1764892376000,6.50000000],[1764892680000,6.50000000],[1764892952000,6.50000000],[1764893304000,6.50000000],[1764893576000,6.50000000],[1764893880000,6.50000000],[1764894152000,6.50000000],[1764894505000,6.52857143],[1764894776000,6.60000000],[1764895081000,6.60000000],[1764895352000,6.60000000],[1764895704000,6.60000000],[1764895977000,6.55000000],[1764896280000,6.55714286],[1764896552000,6.51250000],[1764896904000,6.50000000],[1764897176000,6.50000000],[1764897480000,6.55714286],[1764897752000,6.60000000],[1764898072000,6.60000000],[1764898376000,6.60000000],[1764898680000,6.60000000],[1764898952000,6.60000000],[1764899272000,6.60000000],[1764899576000,6.67500000],[1764899881000,6.70000000],[1764900152000,6.70000000],[1764900504000,6.70000000],[1764900776000,6.70000000],[1764901128000,6.70000000],[1764901384000,6.70000000],[1764901704000,6.70000000],[1764902088000,6.70000000],[1764902280000,6.70000000],[1764902600000,6.70000000],[1764903048000,6.70000000],[1764903176000,6.70000000],[1764903496000,6.72500000],[1764903752000,6.75000000],[1764904072000,6.80000000],[1764904392000,6.80000000],[1764904712000,6.80000000],[1764904968000,6.82000000],[1764905480000,6.90000000],[1764905608000,6.90000000],[1764905928000,6.90000000],[1764906184000,6.90000000],[1764906504000,6.90000000],[1764906888000,6.90000000],[1764907080000,6.90000000],[1764907368000,6.90000000],[1764907832000,6.90000000],[1764907976000,6.90000000],[1764908296000,6.85000000],[1764908552000,6.84444444],[1764908904000,6.90000000],[1764909176000,6.83750000],[1764909480000,6.90000000],[1764909752000,6.90000000],[1764910104000,6.90000000],[1764910376000,6.90000000],[1764910680000,6.95714286],[1764910952000,7.00000000],[1764911304000,7.00000000],[1764911576000,7.00000000],[1764911880000,7.00000000],[1764912168000,7.00000000],[1764912648000,7.00000000],[1764912776000,7.08000000],[1764913096000,7.10000000],[1764913352000,7.10000000],[1764913672000,7.10000000],[1764913992000,7.10000000],[1764914346000,7.10000000],[1764914584000,7.10000000],[1764914904000,7.06666667],[1764915288000,7.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1764889224000,6.1],[1764889352000,6.1],[1764889706000,6.1],[1764889992000,6.2],[1764890296000,6.3],[1764890552000,6.3],[1764890904000,6.4],[1764891177000,6.4],[1764891480000,6.4],[1764891753000,6.4],[1764892104000,6.4],[1764892376000,6.4],[1764892680000,6.4],[1764892952000,6.4],[1764893304000,6.4],[1764893576000,6.4],[1764893880000,6.4],[1764894152000,6.4],[1764894505000,6.4],[1764894776000,6.5],[1764895081000,6.5],[1764895352000,6.5],[1764895704000,6.5],[1764895977000,6.4],[1764896280000,6.4],[1764896552000,6.4],[1764896904000,6.4],[1764897176000,6.4],[1764897480000,6.4],[1764897752000,6.5],[1764898072000,6.5],[1764898376000,6.5],[1764898680000,6.5],[1764898952000,6.5],[1764899272000,6.5],[1764899576000,6.5],[1764899881000,6.6],[1764900152000,6.6],[1764900504000,6.6],[1764900776000,6.6],[1764901128000,6.6],[1764901384000,6.6],[1764901704000,6.6],[1764902088000,6.6],[1764902280000,6.6],[1764902600000,6.6],[1764903048000,6.6],[1764903176000,6.6],[1764903496000,6.6],[1764903752000,6.6],[1764904072000,6.7],[1764904392000,6.7],[1764904712000,6.7],[1764904968000,6.7],[1764905480000,6.8],[1764905608000,6.8],[1764905928000,6.8],[1764906184000,6.8],[1764906504000,6.8],[1764906888000,6.8],[1764907080000,6.8],[1764907368000,6.8],[1764907832000,6.8],[1764907976000,6.8],[1764908296000,6.7],[1764908552000,6.7],[1764908904000,6.8],[1764909176000,6.7],[1764909480000,6.8],[1764909752000,6.8],[1764910104000,6.8],[1764910376000,6.8],[1764910680000,6.8],[1764910952000,6.9],[1764911304000,6.9],[1764911576000,6.9],[1764911880000,6.9],[1764912168000,6.9],[1764912648000,6.9],[1764912776000,6.9],[1764913096000,7],[1764913352000,7],[1764913672000,7],[1764913992000,7],[1764914346000,7],[1764914584000,7],[1764914904000,6.9],[1764915288000,7],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1764889224000,99.00000000],[1764889352000,99.00000000],[1764889706000,99.00000000],[1764889992000,99.00000000],[1764890296000,99.00000000],[1764890552000,99.00000000],[1764890904000,99.00000000],[1764891177000,99.00000000],[1764891480000,99.00000000],[1764891753000,99.00000000],[1764892104000,99.00000000],[1764892376000,99.00000000],[1764892680000,99.00000000],[1764892952000,99.00000000],[1764893304000,99.00000000],[1764893576000,99.00000000],[1764893880000,99.00000000],[1764894152000,99.00000000],[1764894505000,99.00000000],[1764894776000,99.00000000],[1764895081000,99.00000000],[1764895352000,99.00000000],[1764895704000,99.00000000],[1764895977000,99.00000000],[1764896280000,99.00000000],[1764896552000,99.00000000],[1764896904000,99.00000000],[1764897176000,99.00000000],[1764897480000,99.00000000],[1764897752000,99.00000000],[1764898072000,99.00000000],[1764898376000,99.00000000],[1764898680000,99.00000000],[1764898952000,99.00000000],[1764899272000,99.00000000],[1764899576000,99.00000000],[1764899881000,99.00000000],[1764900152000,99.00000000],[1764900504000,99.00000000],[1764900776000,99.00000000],[1764901128000,99.00000000],[1764901384000,99.00000000],[1764901704000,99.00000000],[1764902088000,99.00000000],[1764902280000,99.00000000],[1764902600000,99.00000000],[1764903048000,99.00000000],[1764903176000,99.00000000],[1764903496000,99.00000000],[1764903752000,99.00000000],[1764904072000,99.00000000],[1764904392000,99.00000000],[1764904712000,99.00000000],[1764904968000,99.00000000],[1764905480000,99.00000000],[1764905608000,99.00000000],[1764905928000,99.00000000],[1764906184000,99.00000000],[1764906504000,99.00000000],[1764906888000,99.00000000],[1764907080000,99.00000000],[1764907368000,99.00000000],[1764907832000,99.00000000],[1764907976000,99.00000000],[1764908296000,99.00000000],[1764908552000,99.00000000],[1764908904000,99.00000000],[1764909176000,99.00000000],[1764909480000,99.00000000],[1764909752000,99.00000000],[1764910104000,99.00000000],[1764910376000,99.00000000],[1764910680000,99.00000000],[1764910952000,99.00000000],[1764911304000,99.00000000],[1764911576000,99.00000000],[1764911880000,99.00000000],[1764912168000,99.00000000],[1764912648000,99.00000000],[1764912776000,99.00000000],[1764913096000,99.00000000],[1764913352000,99.00000000],[1764913672000,99.00000000],[1764913992000,99.00000000],[1764914346000,99.00000000],[1764914584000,99.00000000],[1764914904000,99.00000000],[1764915288000,99.00000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1764889224000,1010.4],[1764889352000,1010.4],[1764889706000,1010.4],[1764889992000,1010.4],[1764890296000,1010.4],[1764890552000,1010.3],[1764890904000,1010.1],[1764891177000,1010.1],[1764891480000,1010.2],[1764891753000,1010.1],[1764892104000,1010.2],[1764892376000,1010],[1764892680000,1009.9],[1764892952000,1009.8],[1764893304000,1009.8],[1764893576000,1009.9],[1764893880000,1009.9],[1764894152000,1009.9],[1764894505000,1010],[1764894776000,1009.8],[1764895081000,1009.8],[1764895352000,1009.8],[1764895704000,1009.8],[1764895977000,1009.9],[1764896280000,1009.9],[1764896552000,1009.9],[1764896904000,1009.9],[1764897176000,1009.7],[1764897480000,1009.8],[1764897752000,1009.7],[1764898072000,1009.7],[1764898376000,1009.7],[1764898680000,1009.6],[1764898952000,1009.5],[1764899272000,1009.6],[1764899576000,1009.5],[1764899881000,1009.7],[1764900152000,1009.8],[1764900504000,1009.8],[1764900776000,1009.9],[1764901128000,1009.7],[1764901384000,1009.7],[1764901704000,1009.7],[1764902088000,1009.5],[1764902280000,1009.6],[1764902600000,1009.5],[1764903048000,1009.5],[1764903176000,1009.3],[1764903496000,1009.3],[1764903752000,1009.3],[1764904072000,1009.2],[1764904392000,1009.3],[1764904712000,1009.3],[1764904968000,1009.3],[1764905480000,1009.3],[1764905608000,1009.3],[1764905928000,1009.3],[1764906184000,1009.2],[1764906504000,1009.3],[1764906888000,1009.3],[1764907080000,1009.3],[1764907368000,1009.3],[1764907832000,1009.3],[1764907976000,1009.3],[1764908296000,1009.4],[1764908552000,1009.4],[1764908904000,1009.4],[1764909176000,1009.5],[1764909480000,1009.4],[1764909752000,1009.4],[1764910104000,1009.3],[1764910376000,1009.5],[1764910680000,1009.5],[1764910952000,1009.5],[1764911304000,1009.5],[1764911576000,1009.5],[1764911880000,1009.5],[1764912168000,1009.6],[1764912648000,1009.6],[1764912776000,1009.6],[1764913096000,1009.6],[1764913352000,1009.7],[1764913672000,1009.7],[1764913992000,1009.6],[1764914346000,1009.6],[1764914584000,1009.7],[1764914904000,1009.5],[1764915288000,1009.8],], color: '#000000' } ]; var options = { xaxes: [{ axisLabel: 'pressure', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1hPa' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-pressure-legend' } }; graphs['#chart-pressure'] = $.plot('#chart-pressure', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1764889224000,0],[1764889352000,0.659999988],[1764889706000,0.36],[1764889992000,1.44],[1764890296000,1.89],[1764890552000,1.62],[1764890904000,1.954285704],[1764891177000,2.475],[1764891480000,3.24],[1764891753000,3.51],[1764892104000,2.468571444],[1764892376000,3.555],[1764892680000,2.622857148],[1764892952000,2.7],[1764893304000,2.777142852],[1764893576000,4.32],[1764893880000,3.291428556],[1764894152000,3.195],[1764894505000,4.474285704],[1764894776000,3.06],[1764895081000,5.091428556],[1764895352000,3.735],[1764895704000,4.011428556],[1764895977000,3.195],[1764896280000,2.468571444],[1764896552000,3.195],[1764896904000,3.034285704],[1764897176000,1.755],[1764897480000,2.468571444],[1764897752000,3.15],[1764898072000,2.199999996],[1764898376000,2.25],[1764898680000,1.665],[1764898952000,1.479999996],[1764899272000,2.720000016],[1764899576000,2.385],[1764899881000,2.295],[1764900152000,2.800000008],[1764900504000,1.71],[1764900776000,1.26],[1764901128000,1.98],[1764901384000,2.16],[1764901704000,1.44],[1764902088000,2.16],[1764902280000,1.53],[1764902600000,2.16],[1764903048000,1.44],[1764903176000,2.664],[1764903496000,2.16],[1764903752000,3.96],[1764904072000,3.539999988],[1764904392000,2.592],[1764904712000,3.96],[1764904968000,4.752],[1764905480000,5.04],[1764905608000,2.88],[1764905928000,3.33],[1764906184000,3.168],[1764906504000,3.96],[1764906888000,2.760000012],[1764907080000,2.448],[1764907368000,1.199999988],[1764907832000,0.479999988],[1764907976000,0.63],[1764908296000,0.36],[1764908552000,1.159999992],[1764908904000,1.182857148],[1764909176000,0.765],[1764909480000,0.72],[1764909752000,1.8],[1764910104000,2.108571444],[1764910376000,2.88],[1764910680000,3.702857148],[1764910952000,2.34],[1764911304000,2.262857148],[1764911576000,1.935],[1764911880000,2.365714296],[1764912168000,2.592],[1764912648000,1.8],[1764912776000,3.744],[1764913096000,2.79],[1764913352000,2.88],[1764913672000,1.728],[1764913992000,2.52],[1764914346000,2.16],[1764914584000,2.232],[1764914904000,0.72],[1764915288000,5.04],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1764889224000,0],[1764889352000,2.099999988],[1764889706000,1.008],[1764889992000,3.78],[1764890296000,3.78],[1764890552000,2.835],[1764890904000,3.6],[1764891177000,4.725],[1764891480000,6.48],[1764891753000,5.985],[1764892104000,3.96],[1764892376000,5.985],[1764892680000,6.12],[1764892952000,4.725],[1764893304000,4.32],[1764893576000,6.615],[1764893880000,5.4],[1764894152000,4.725],[1764894505000,6.48],[1764894776000,5.985],[1764895081000,7.92],[1764895352000,5.985],[1764895704000,5.76],[1764895977000,5.04],[1764896280000,4.68],[1764896552000,5.04],[1764896904000,3.96],[1764897176000,2.835],[1764897480000,3.96],[1764897752000,5.355],[1764898072000,4.200000012],[1764898376000,3.78],[1764898680000,3.78],[1764898952000,2.52],[1764899272000,3.920000004],[1764899576000,4.095],[1764899881000,3.78],[1764900152000,4.200000012],[1764900504000,3.15],[1764900776000,1.89],[1764901128000,3.15],[1764901384000,4.536],[1764901704000,2.52],[1764902088000,5.04],[1764902280000,3.15],[1764902600000,3.78],[1764903048000,2.52],[1764903176000,4.032],[1764903496000,3.15],[1764903752000,6.3],[1764904072000,5.04],[1764904392000,5.04],[1764904712000,5.04],[1764904968000,7.056],[1764905480000,6.3],[1764905608000,5.04],[1764905928000,5.67],[1764906184000,5.04],[1764906504000,5.04],[1764906888000,3.359999988],[1764907080000,4.032],[1764907368000,2.940000012],[1764907832000,0.839999988],[1764907976000,1.575],[1764908296000,1.680000012],[1764908552000,2.52],[1764908904000,2.16],[1764909176000,2.205],[1764909480000,1.8],[1764909752000,2.835],[1764910104000,3.6],[1764910376000,4.725],[1764910680000,4.68],[1764910952000,3.465],[1764911304000,3.24],[1764911576000,3.15],[1764911880000,3.96],[1764912168000,4.032],[1764912648000,2.52],[1764912776000,5.616],[1764913096000,4.41],[1764913352000,6.3],[1764913672000,3.024],[1764913992000,3.528],[1764914346000,3.15],[1764914584000,4.032],[1764914904000,1.680000012],[1764915288000,6.3],], 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: [[1764889224000,88.00000000],[1764889352000,73.33333333],[1764889706000,150.80000000],[1764889992000,114.16666667],[1764890296000,127.75000000],[1764890552000,132.00000000],[1764890904000,97.57142857],[1764891177000,115.37500000],[1764891480000,142.14285714],[1764891753000,116.75000000],[1764892104000,140.85714286],[1764892376000,129.75000000],[1764892680000,119.71428571],[1764892952000,119.87500000],[1764893304000,155.71428571],[1764893576000,119.87500000],[1764893880000,137.28571429],[1764894152000,121.50000000],[1764894505000,130.57142857],[1764894776000,119.12500000],[1764895081000,120.00000000],[1764895352000,117.25000000],[1764895704000,114.28571429],[1764895977000,103.25000000],[1764896280000,113.57142857],[1764896552000,119.37500000],[1764896904000,93.00000000],[1764897176000,82.62500000],[1764897480000,66.57142857],[1764897752000,101.62500000],[1764898072000,93.33333333],[1764898376000,79.50000000],[1764898680000,73.12500000],[1764898952000,86.44444444],[1764899272000,86.55555556],[1764899576000,81.00000000],[1764899881000,89.50000000],[1764900152000,90.11111111],[1764900504000,83.25000000],[1764900776000,67.25000000],[1764901128000,88.75000000],[1764901384000,92.80000000],[1764901704000,98.66666667],[1764902088000,102.50000000],[1764902280000,87.50000000],[1764902600000,131.00000000],[1764903048000,53.00000000],[1764903176000,73.20000000],[1764903496000,64.00000000],[1764903752000,106.00000000],[1764904072000,99.83333333],[1764904392000,54.00000000],[1764904712000,26.00000000],[1764904968000,99.20000000],[1764905480000,78.00000000],[1764905608000,89.50000000],[1764905928000,99.50000000],[1764906184000,84.80000000],[1764906504000,100.00000000],[1764906888000,88.66666667],[1764907080000,95.00000000],[1764907368000,87.33333333],[1764907832000,60.66666667],[1764907976000,78.00000000],[1764908296000,81.83333333],[1764908552000,100.00000000],[1764908904000,72.42857143],[1764909176000,89.00000000],[1764909480000,72.42857143],[1764909752000,88.87500000],[1764910104000,111.57142857],[1764910376000,78.12500000],[1764910680000,95.00000000],[1764910952000,83.00000000],[1764911304000,69.57142857],[1764911576000,93.00000000],[1764911880000,93.14285714],[1764912168000,97.40000000],[1764912648000,123.00000000],[1764912776000,91.80000000],[1764913096000,85.25000000],[1764913352000,116.00000000],[1764913672000,71.60000000],[1764913992000,97.80000000],[1764914346000,106.00000000],[1764914584000,72.80000000],[1764914904000,89.00000000],[1764915288000,112.50000000],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Slnečné žiarenie (W/m2)', data: [[1764889224000,0.00000000],[1764889352000,0.00000000],[1764889706000,0.00000000],[1764889992000,0.00000000],[1764890296000,0.00000000],[1764890552000,0.00000000],[1764890904000,0.00000000],[1764891177000,0.00000000],[1764891480000,0.00000000],[1764891753000,0.00000000],[1764892104000,0.00000000],[1764892376000,0.00000000],[1764892680000,0.00000000],[1764892952000,0.00000000],[1764893304000,0.00000000],[1764893576000,0.00000000],[1764893880000,0.00000000],[1764894152000,0.00000000],[1764894505000,0.00000000],[1764894776000,0.00000000],[1764895081000,0.00000000],[1764895352000,0.00000000],[1764895704000,0.00000000],[1764895977000,0.00000000],[1764896280000,0.00000000],[1764896552000,0.00000000],[1764896904000,0.00000000],[1764897176000,0.00000000],[1764897480000,0.00000000],[1764897752000,0.00000000],[1764898072000,0.00000000],[1764898376000,0.00000000],[1764898680000,0.00000000],[1764898952000,0.00000000],[1764899272000,0.00000000],[1764899576000,0.00000000],[1764899881000,0.00000000],[1764900152000,0.00000000],[1764900504000,0.00000000],[1764900776000,0.00000000],[1764901128000,0.00000000],[1764901384000,0.00000000],[1764901704000,0.00000000],[1764902088000,0.00000000],[1764902280000,0.00000000],[1764902600000,0.00000000],[1764903048000,0.00000000],[1764903176000,0.00000000],[1764903496000,0.00000000],[1764903752000,0.00000000],[1764904072000,0.00000000],[1764904392000,0.00000000],[1764904712000,0.00000000],[1764904968000,0.00000000],[1764905480000,0.00000000],[1764905608000,0.00000000],[1764905928000,0.00000000],[1764906184000,0.00000000],[1764906504000,0.00000000],[1764906888000,0.00000000],[1764907080000,0.00000000],[1764907368000,0.00000000],[1764907832000,0.00000000],[1764907976000,0.00000000],[1764908296000,0.00000000],[1764908552000,0.00000000],[1764908904000,0.00000000],[1764909176000,0.00000000],[1764909480000,0.00000000],[1764909752000,0.00000000],[1764910104000,0.00000000],[1764910376000,0.00000000],[1764910680000,0.00000000],[1764910952000,0.00000000],[1764911304000,0.00000000],[1764911576000,0.00000000],[1764911880000,0.00000000],[1764912168000,0.00000000],[1764912648000,0.00000000],[1764912776000,0.00000000],[1764913096000,0.00000000],[1764913352000,0.00000000],[1764913672000,0.00000000],[1764913992000,0.00000000],[1764914346000,0.00000000],[1764914584000,0.00000000],[1764914904000,0.00000000],[1764915288000,0.00000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'UV žiarenie', data: [[1764889224000,0.00000000],[1764889352000,0.00000000],[1764889706000,0.00000000],[1764889992000,0.00000000],[1764890296000,0.00000000],[1764890552000,0.00000000],[1764890904000,0.00000000],[1764891177000,0.00000000],[1764891480000,0.00000000],[1764891753000,0.00000000],[1764892104000,0.00000000],[1764892376000,0.00000000],[1764892680000,0.00000000],[1764892952000,0.00000000],[1764893304000,0.00000000],[1764893576000,0.00000000],[1764893880000,0.00000000],[1764894152000,0.00000000],[1764894505000,0.00000000],[1764894776000,0.00000000],[1764895081000,0.00000000],[1764895352000,0.00000000],[1764895704000,0.00000000],[1764895977000,0.00000000],[1764896280000,0.00000000],[1764896552000,0.00000000],[1764896904000,0.00000000],[1764897176000,0.00000000],[1764897480000,0.00000000],[1764897752000,0.00000000],[1764898072000,0.00000000],[1764898376000,0.00000000],[1764898680000,0.00000000],[1764898952000,0.00000000],[1764899272000,0.00000000],[1764899576000,0.00000000],[1764899881000,0.00000000],[1764900152000,0.00000000],[1764900504000,0.00000000],[1764900776000,0.00000000],[1764901128000,0.00000000],[1764901384000,0.00000000],[1764901704000,0.00000000],[1764902088000,0.00000000],[1764902280000,0.00000000],[1764902600000,0.00000000],[1764903048000,0.00000000],[1764903176000,0.00000000],[1764903496000,0.00000000],[1764903752000,0.00000000],[1764904072000,0.00000000],[1764904392000,0.00000000],[1764904712000,0.00000000],[1764904968000,0.00000000],[1764905480000,0.00000000],[1764905608000,0.00000000],[1764905928000,0.00000000],[1764906184000,0.00000000],[1764906504000,0.00000000],[1764906888000,0.00000000],[1764907080000,0.00000000],[1764907368000,0.00000000],[1764907832000,0.00000000],[1764907976000,0.00000000],[1764908296000,0.00000000],[1764908552000,0.00000000],[1764908904000,0.00000000],[1764909176000,0.00000000],[1764909480000,0.00000000],[1764909752000,0.00000000],[1764910104000,0.00000000],[1764910376000,0.00000000],[1764910680000,0.00000000],[1764910952000,0.00000000],[1764911304000,0.00000000],[1764911576000,0.00000000],[1764911880000,0.00000000],[1764912168000,0.00000000],[1764912648000,0.00000000],[1764912776000,0.00000000],[1764913096000,0.00000000],[1764913352000,0.00000000],[1764913672000,0.00000000],[1764913992000,0.00000000],[1764914346000,0.00000000],[1764914584000,0.00000000],[1764914904000,0.00000000],[1764915288000,0.00000000],], color: '#802674' } ]; var options = { xaxes: [{ axisLabel: 'uv', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.0' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-uv-legend' } }; graphs['#chart-uv'] = $.plot('#chart-uv', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1764889224000,0.15250000],[1764889352000,0.30500000],[1764889706000,0.50800000],[1764889992000,0.74050000],[1764890296000,0.94000000],[1764890552000,1.18100000],[1764890904000,1.46985714],[1764891177000,1.72700000],[1764891480000,1.94871429],[1764891753000,2.23500000],[1764892104000,2.43814286],[1764892376000,2.71775000],[1764892680000,2.88114286],[1764892952000,3.09900000],[1764893304000,3.27300000],[1764893576000,3.41637500],[1764893880000,3.60700000],[1764894152000,3.78462500],[1764894505000,3.92957143],[1764894776000,4.14000000],[1764895081000,4.29300000],[1764895352000,4.52100000],[1764895704000,4.59700000],[1764895977000,4.69900000],[1764896280000,4.80100000],[1764896552000,4.91500000],[1764896904000,5.10500000],[1764897176000,5.10500000],[1764897480000,5.30900000],[1764897752000,5.30900000],[1764898072000,5.49500000],[1764898376000,5.58800000],[1764898680000,5.58800000],[1764898952000,5.58800000],[1764899272000,5.76844444],[1764899576000,5.79100000],[1764899881000,5.79100000],[1764900152000,5.79100000],[1764900504000,5.90537500],[1764900776000,6.09600000],[1764901128000,6.40100000],[1764901384000,6.60400000],[1764901704000,6.60400000],[1764902088000,6.90900000],[1764902280000,6.90900000],[1764902600000,6.90900000],[1764903048000,6.90900000],[1764903176000,6.90900000],[1764903496000,6.90900000],[1764903752000,6.90900000],[1764904072000,6.90900000],[1764904392000,6.90900000],[1764904712000,6.90900000],[1764904968000,6.90900000],[1764905480000,6.90900000],[1764905608000,6.90900000],[1764905928000,6.90900000],[1764906184000,6.90900000],[1764906504000,6.90900000],[1764906888000,6.90900000],[1764907080000,6.90900000],[1764907368000,7.07816667],[1764907832000,7.11200000],[1764907976000,7.11200000],[1764908296000,7.11200000],[1764908552000,7.11200000],[1764908904000,7.15185714],[1764909176000,7.39100000],[1764909480000,7.39100000],[1764909752000,7.39100000],[1764910104000,7.56585714],[1764910376000,7.59500000],[1764910680000,7.59500000],[1764910952000,7.78500000],[1764911304000,7.89900000],[1764911576000,7.89900000],[1764911880000,7.89900000],[1764912168000,8.02140000],[1764912648000,8.10300000],[1764912776000,8.10300000],[1764913096000,8.10300000],[1764913352000,8.25500000],[1764913672000,8.40700000],[1764913992000,8.57020000],[1764914346000,8.75050000],[1764914584000,8.89000000],[1764914904000,8.89000000],[1764915288000,8.89000000],], 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; }