var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1782770454000,19.70000000],[1782770581000,19.68000000],[1782770902000,19.50000000],[1782771158000,19.16000000],[1782771477000,19.58000000],[1782771798000,19.75000000],[1782772053000,19.54000000],[1782772374000,19.12000000],[1782772694000,18.90000000],[1782772950000,18.94000000],[1782773270000,18.96000000],[1782773589000,18.70000000],[1782773910000,18.37500000],[1782774167000,18.22000000],[1782774486000,18.38000000],[1782774806000,18.35000000],[1782775062000,18.22000000],[1782775382000,18.04000000],[1782775701000,18.07500000],[1782775959000,18.04000000],[1782776293000,18.00000000],[1782776612000,18.00000000],[1782776858000,17.94000000],[1782777189000,17.74000000],[1782777509000,17.62500000],[1782777752000,17.60000000],[1782778071000,17.50000000],[1782778390000,17.50000000],[1782778710000,17.50000000],[1782778966000,17.44000000],[1782779286000,17.40000000],[1782779606000,17.35000000],[1782779862000,17.24000000],[1782780182000,17.24000000],[1782780502000,17.20000000],[1782780774000,17.04000000],[1782781094000,16.97500000],[1782781350000,16.90000000],[1782781669000,17.04000000],[1782781990000,17.14000000],[1782782310000,16.95000000],[1782782566000,16.78000000],[1782782886000,16.86000000],[1782783206000,17.17500000],[1782783461000,17.40000000],[1782783781000,17.42000000],[1782784102000,17.20000000],[1782784359000,16.96000000],[1782784678000,16.68000000],[1782785012000,16.82500000],[1782785269000,16.82000000],[1782785589000,16.90000000],[1782785909000,16.82500000],[1782786165000,17.10000000],[1782786485000,16.90000000],[1782786808000,16.80000000],[1782787061000,16.80000000],[1782787381000,16.62000000],[1782787701000,16.45000000],[1782787957000,16.58000000],[1782788277000,16.62000000],[1782788597000,16.95000000],[1782788852000,17.10000000],[1782789173000,17.12000000],[1782789493000,17.00000000],[1782789812000,17.15000000],[1782790069000,17.62000000],[1782790389000,18.00000000],[1782790709000,18.42500000],[1782790965000,19.06000000],[1782791285000,19.22000000],[1782791605000,19.65000000],[1782791861000,19.74000000],[1782792181000,20.42000000],[1782792501000,21.25000000],[1782792758000,22.00000000],[1782793078000,22.20000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1782770454000,15.1],[1782770581000,15.2],[1782770902000,15.2],[1782771158000,15.2],[1782771477000,15.2],[1782771798000,15.5],[1782772053000,15.7],[1782772374000,15.4],[1782772694000,15.4],[1782772950000,15.1],[1782773270000,15.3],[1782773589000,15.3],[1782773910000,14.9],[1782774167000,14.7],[1782774486000,15],[1782774806000,15.1],[1782775062000,15],[1782775382000,14.7],[1782775701000,15],[1782775959000,15.1],[1782776293000,15],[1782776612000,15],[1782776858000,15.1],[1782777189000,15],[1782777509000,14.9],[1782777752000,14.8],[1782778071000,14.6],[1782778390000,14.6],[1782778710000,14.6],[1782778966000,14.5],[1782779286000,14.5],[1782779606000,14.6],[1782779862000,14.5],[1782780182000,14.8],[1782780502000,14.8],[1782780774000,14.7],[1782781094000,14.6],[1782781350000,14.5],[1782781669000,14.7],[1782781990000,14.8],[1782782310000,14.5],[1782782566000,14.2],[1782782886000,14.4],[1782783206000,14.6],[1782783461000,14.5],[1782783781000,14.6],[1782784102000,14.6],[1782784359000,14.6],[1782784678000,14.5],[1782785012000,14.5],[1782785269000,14.4],[1782785589000,14.5],[1782785909000,14.3],[1782786165000,14.5],[1782786485000,14.5],[1782786808000,14.3],[1782787061000,14.1],[1782787381000,14.2],[1782787701000,14.1],[1782787957000,14.2],[1782788277000,14],[1782788597000,14.1],[1782788852000,14.2],[1782789173000,14.4],[1782789493000,14.5],[1782789812000,14.6],[1782790069000,14.8],[1782790389000,14.7],[1782790709000,15.1],[1782790965000,15.2],[1782791285000,15.1],[1782791605000,15.2],[1782791861000,15.3],[1782792181000,15.5],[1782792501000,15.8],[1782792758000,16.3],[1782793078000,16],], 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: [[1782770454000,75.00000000],[1782770581000,75.60000000],[1782770902000,76.50000000],[1782771158000,78.00000000],[1782771477000,76.00000000],[1782771798000,76.75000000],[1782772053000,78.80000000],[1782772374000,79.40000000],[1782772694000,80.00000000],[1782772950000,78.40000000],[1782773270000,79.40000000],[1782773589000,80.60000000],[1782773910000,80.50000000],[1782774167000,80.00000000],[1782774486000,80.80000000],[1782774806000,81.50000000],[1782775062000,81.60000000],[1782775382000,81.20000000],[1782775701000,82.50000000],[1782775959000,83.00000000],[1782776293000,83.00000000],[1782776612000,83.00000000],[1782776858000,83.80000000],[1782777189000,84.00000000],[1782777509000,84.00000000],[1782777752000,84.00000000],[1782778071000,83.20000000],[1782778390000,83.00000000],[1782778710000,83.00000000],[1782778966000,83.00000000],[1782779286000,83.00000000],[1782779606000,83.75000000],[1782779862000,84.20000000],[1782780182000,85.60000000],[1782780502000,86.00000000],[1782780774000,86.00000000],[1782781094000,86.00000000],[1782781350000,86.00000000],[1782781669000,86.00000000],[1782781990000,86.00000000],[1782782310000,85.50000000],[1782782566000,85.00000000],[1782782886000,85.60000000],[1782783206000,84.75000000],[1782783461000,83.00000000],[1782783781000,83.80000000],[1782784102000,85.00000000],[1782784359000,86.00000000],[1782784678000,87.00000000],[1782785012000,86.00000000],[1782785269000,86.00000000],[1782785589000,86.00000000],[1782785909000,85.00000000],[1782786165000,84.60000000],[1782786485000,85.60000000],[1782786808000,85.50000000],[1782787061000,84.40000000],[1782787381000,86.00000000],[1782787701000,86.00000000],[1782787957000,86.00000000],[1782788277000,84.80000000],[1782788597000,83.25000000],[1782788852000,83.00000000],[1782789173000,84.40000000],[1782789493000,85.20000000],[1782789812000,85.25000000],[1782790069000,83.60000000],[1782790389000,81.40000000],[1782790709000,81.00000000],[1782790965000,78.20000000],[1782791285000,77.40000000],[1782791605000,75.50000000],[1782791861000,75.60000000],[1782792181000,73.60000000],[1782792501000,71.25000000],[1782792758000,70.00000000],[1782793078000,68.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: [[1782770454000,1018.3],[1782770581000,1018.2],[1782770902000,1018.3],[1782771158000,1018.3],[1782771477000,1018.3],[1782771798000,1018.4],[1782772053000,1018.4],[1782772374000,1018.5],[1782772694000,1018.5],[1782772950000,1018.5],[1782773270000,1018.5],[1782773589000,1018.6],[1782773910000,1018.6],[1782774167000,1018.7],[1782774486000,1018.6],[1782774806000,1018.6],[1782775062000,1018.7],[1782775382000,1018.7],[1782775701000,1018.8],[1782775959000,1018.8],[1782776293000,1018.9],[1782776612000,1018.9],[1782776858000,1018.9],[1782777189000,1019],[1782777509000,1019],[1782777752000,1018.9],[1782778071000,1018.9],[1782778390000,1018.9],[1782778710000,1018.9],[1782778966000,1019],[1782779286000,1018.9],[1782779606000,1018.9],[1782779862000,1018.9],[1782780182000,1018.9],[1782780502000,1019],[1782780774000,1018.9],[1782781094000,1018.9],[1782781350000,1018.9],[1782781669000,1018.8],[1782781990000,1018.9],[1782782310000,1018.9],[1782782566000,1019],[1782782886000,1019],[1782783206000,1019.2],[1782783461000,1019.2],[1782783781000,1019.2],[1782784102000,1019.2],[1782784359000,1019.3],[1782784678000,1019.3],[1782785012000,1019.3],[1782785269000,1019.3],[1782785589000,1019.2],[1782785909000,1019.3],[1782786165000,1019.4],[1782786485000,1019.5],[1782786808000,1019.5],[1782787061000,1019.3],[1782787381000,1019.3],[1782787701000,1019.3],[1782787957000,1019.3],[1782788277000,1019.5],[1782788597000,1019.6],[1782788852000,1019.5],[1782789173000,1019.5],[1782789493000,1019.5],[1782789812000,1019.4],[1782790069000,1019.4],[1782790389000,1019.2],[1782790709000,1019.2],[1782790965000,1019.2],[1782791285000,1019.3],[1782791605000,1019.2],[1782791861000,1019.1],[1782792181000,1019.1],[1782792501000,1019.1],[1782792758000,1019.3],[1782793078000,1019.4],], 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: [[1782770454000,0.54],[1782770581000,0],[1782770902000,0],[1782771158000,0],[1782771477000,0],[1782771798000,0],[1782772053000,0],[1782772374000,0],[1782772694000,0],[1782772950000,0],[1782773270000,0],[1782773589000,0],[1782773910000,0],[1782774167000,0],[1782774486000,0],[1782774806000,0],[1782775062000,0],[1782775382000,0],[1782775701000,0],[1782775959000,0],[1782776293000,0],[1782776612000,0],[1782776858000,0],[1782777189000,0],[1782777509000,0],[1782777752000,0],[1782778071000,0],[1782778390000,0],[1782778710000,0],[1782778966000,0],[1782779286000,0],[1782779606000,0],[1782779862000,0],[1782780182000,0.072],[1782780502000,0],[1782780774000,0],[1782781094000,0],[1782781350000,0],[1782781669000,0],[1782781990000,0],[1782782310000,0],[1782782566000,0],[1782782886000,0],[1782783206000,2.79],[1782783461000,0],[1782783781000,0],[1782784102000,0],[1782784359000,0],[1782784678000,0.432],[1782785012000,0],[1782785269000,0],[1782785589000,0],[1782785909000,0],[1782786165000,0],[1782786485000,0],[1782786808000,0],[1782787061000,0.72],[1782787381000,0],[1782787701000,0],[1782787957000,1.008],[1782788277000,0],[1782788597000,1.08],[1782788852000,0.216],[1782789173000,0.432],[1782789493000,1.44],[1782789812000,0],[1782790069000,0],[1782790389000,0],[1782790709000,0],[1782790965000,0],[1782791285000,0.072],[1782791605000,0],[1782791861000,0.072],[1782792181000,0],[1782792501000,0],[1782792758000,0],[1782793078000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1782770454000,2.52],[1782770581000,0],[1782770902000,0],[1782771158000,0],[1782771477000,0],[1782771798000,0],[1782772053000,0],[1782772374000,0],[1782772694000,0],[1782772950000,0],[1782773270000,0],[1782773589000,0],[1782773910000,0],[1782774167000,0],[1782774486000,0],[1782774806000,0],[1782775062000,0],[1782775382000,0],[1782775701000,0],[1782775959000,0],[1782776293000,0],[1782776612000,0],[1782776858000,0],[1782777189000,0],[1782777509000,0],[1782777752000,0],[1782778071000,0],[1782778390000,0],[1782778710000,0],[1782778966000,0],[1782779286000,0],[1782779606000,0],[1782779862000,0],[1782780182000,0.504],[1782780502000,0],[1782780774000,0],[1782781094000,0],[1782781350000,0],[1782781669000,0],[1782781990000,0],[1782782310000,0],[1782782566000,0],[1782782886000,0],[1782783206000,3.15],[1782783461000,0],[1782783781000,0],[1782784102000,0],[1782784359000,0],[1782784678000,0.504],[1782785012000,0],[1782785269000,0],[1782785589000,0],[1782785909000,0],[1782786165000,0],[1782786485000,0],[1782786808000,0],[1782787061000,2.016],[1782787381000,0],[1782787701000,0],[1782787957000,1.008],[1782788277000,0],[1782788597000,1.89],[1782788852000,1.008],[1782789173000,0.504],[1782789493000,2.52],[1782789812000,0],[1782790069000,0],[1782790389000,0],[1782790709000,0],[1782790965000,0],[1782791285000,0.504],[1782791605000,0],[1782791861000,0.504],[1782792181000,0],[1782792501000,0],[1782792758000,0],[1782793078000,0],], 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: [[1782770454000,144.00000000],[1782770581000,144.00000000],[1782770902000,144.00000000],[1782771158000,144.00000000],[1782771477000,143.00000000],[1782771798000,143.00000000],[1782772053000,143.00000000],[1782772374000,143.00000000],[1782772694000,143.00000000],[1782772950000,143.00000000],[1782773270000,143.00000000],[1782773589000,143.00000000],[1782773910000,143.00000000],[1782774167000,143.00000000],[1782774486000,143.00000000],[1782774806000,143.00000000],[1782775062000,143.00000000],[1782775382000,143.00000000],[1782775701000,143.00000000],[1782775959000,143.00000000],[1782776293000,143.00000000],[1782776612000,143.00000000],[1782776858000,143.00000000],[1782777189000,143.00000000],[1782777509000,143.00000000],[1782777752000,143.00000000],[1782778071000,143.00000000],[1782778390000,143.00000000],[1782778710000,143.00000000],[1782778966000,143.00000000],[1782779286000,143.00000000],[1782779606000,143.00000000],[1782779862000,143.00000000],[1782780182000,143.00000000],[1782780502000,143.00000000],[1782780774000,143.00000000],[1782781094000,143.00000000],[1782781350000,143.00000000],[1782781669000,143.00000000],[1782781990000,143.00000000],[1782782310000,143.00000000],[1782782566000,143.00000000],[1782782886000,143.00000000],[1782783206000,208.75000000],[1782783461000,231.00000000],[1782783781000,231.00000000],[1782784102000,231.00000000],[1782784359000,231.00000000],[1782784678000,231.00000000],[1782785012000,230.75000000],[1782785269000,209.80000000],[1782785589000,178.00000000],[1782785909000,178.00000000],[1782786165000,178.00000000],[1782786485000,200.40000000],[1782786808000,234.00000000],[1782787061000,175.20000000],[1782787381000,175.00000000],[1782787701000,175.00000000],[1782787957000,174.80000000],[1782788277000,175.00000000],[1782788597000,204.50000000],[1782788852000,199.00000000],[1782789173000,145.80000000],[1782789493000,145.40000000],[1782789812000,146.00000000],[1782790069000,146.00000000],[1782790389000,146.00000000],[1782790709000,146.00000000],[1782790965000,146.20000000],[1782791285000,147.00000000],[1782791605000,146.25000000],[1782791861000,146.00000000],[1782792181000,146.00000000],[1782792501000,146.00000000],[1782792758000,146.00000000],[1782793078000,146.00000000],], 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: [[1782770454000,0.00000000],[1782770581000,0.00000000],[1782770902000,0.00000000],[1782771158000,0.00000000],[1782771477000,0.00000000],[1782771798000,0.00000000],[1782772053000,0.00000000],[1782772374000,0.00000000],[1782772694000,0.00000000],[1782772950000,0.00000000],[1782773270000,0.00000000],[1782773589000,0.00000000],[1782773910000,0.00000000],[1782774167000,0.00000000],[1782774486000,0.00000000],[1782774806000,0.00000000],[1782775062000,0.00000000],[1782775382000,0.00000000],[1782775701000,0.00000000],[1782775959000,0.00000000],[1782776293000,0.00000000],[1782776612000,0.00000000],[1782776858000,0.00000000],[1782777189000,0.00000000],[1782777509000,0.00000000],[1782777752000,0.00000000],[1782778071000,0.00000000],[1782778390000,0.00000000],[1782778710000,0.00000000],[1782778966000,0.00000000],[1782779286000,0.00000000],[1782779606000,0.00000000],[1782779862000,0.00000000],[1782780182000,0.00000000],[1782780502000,0.00000000],[1782780774000,0.00000000],[1782781094000,0.00000000],[1782781350000,0.00000000],[1782781669000,0.00000000],[1782781990000,0.00000000],[1782782310000,0.00000000],[1782782566000,0.00000000],[1782782886000,0.00000000],[1782783206000,0.00000000],[1782783461000,0.00000000],[1782783781000,0.00000000],[1782784102000,0.00000000],[1782784359000,0.00000000],[1782784678000,0.00000000],[1782785012000,0.00000000],[1782785269000,0.00000000],[1782785589000,0.00000000],[1782785909000,0.00000000],[1782786165000,0.00000000],[1782786485000,0.20000000],[1782786808000,1.00000000],[1782787061000,1.00000000],[1782787381000,2.00000000],[1782787701000,3.00000000],[1782787957000,4.40000000],[1782788277000,6.00000000],[1782788597000,7.75000000],[1782788852000,9.80000000],[1782789173000,11.80000000],[1782789493000,14.20000000],[1782789812000,16.50000000],[1782790069000,18.40000000],[1782790389000,19.40000000],[1782790709000,20.50000000],[1782790965000,23.20000000],[1782791285000,29.00000000],[1782791605000,35.25000000],[1782791861000,39.20000000],[1782792181000,45.00000000],[1782792501000,50.25000000],[1782792758000,55.60000000],[1782793078000,60.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: [[1782770454000,0.00000000],[1782770581000,0.00000000],[1782770902000,0.00000000],[1782771158000,0.00000000],[1782771477000,0.00000000],[1782771798000,0.00000000],[1782772053000,0.00000000],[1782772374000,0.00000000],[1782772694000,0.00000000],[1782772950000,0.00000000],[1782773270000,0.00000000],[1782773589000,0.00000000],[1782773910000,0.00000000],[1782774167000,0.00000000],[1782774486000,0.00000000],[1782774806000,0.00000000],[1782775062000,0.00000000],[1782775382000,0.00000000],[1782775701000,0.00000000],[1782775959000,0.00000000],[1782776293000,0.00000000],[1782776612000,0.00000000],[1782776858000,0.00000000],[1782777189000,0.00000000],[1782777509000,0.00000000],[1782777752000,0.00000000],[1782778071000,0.00000000],[1782778390000,0.00000000],[1782778710000,0.00000000],[1782778966000,0.00000000],[1782779286000,0.00000000],[1782779606000,0.00000000],[1782779862000,0.00000000],[1782780182000,0.00000000],[1782780502000,0.00000000],[1782780774000,0.00000000],[1782781094000,0.00000000],[1782781350000,0.00000000],[1782781669000,0.00000000],[1782781990000,0.00000000],[1782782310000,0.00000000],[1782782566000,0.00000000],[1782782886000,0.00000000],[1782783206000,0.00000000],[1782783461000,0.00000000],[1782783781000,0.00000000],[1782784102000,0.00000000],[1782784359000,0.00000000],[1782784678000,0.00000000],[1782785012000,0.00000000],[1782785269000,0.00000000],[1782785589000,0.00000000],[1782785909000,0.00000000],[1782786165000,0.00000000],[1782786485000,0.00000000],[1782786808000,0.00000000],[1782787061000,0.00000000],[1782787381000,0.00000000],[1782787701000,0.00000000],[1782787957000,0.00000000],[1782788277000,0.00000000],[1782788597000,0.00000000],[1782788852000,0.00000000],[1782789173000,0.00000000],[1782789493000,0.00000000],[1782789812000,0.00000000],[1782790069000,0.00000000],[1782790389000,0.00000000],[1782790709000,0.00000000],[1782790965000,0.00000000],[1782791285000,0.00000000],[1782791605000,0.00000000],[1782791861000,0.00000000],[1782792181000,0.00000000],[1782792501000,0.00000000],[1782792758000,0.00000000],[1782793078000,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: [[1782770454000,0.00000000],[1782770581000,0.00000000],[1782770902000,0.00000000],[1782771158000,0.00000000],[1782771477000,0.00000000],[1782771798000,0.00000000],[1782772053000,0.00000000],[1782772374000,0.00000000],[1782772694000,0.00000000],[1782772950000,0.00000000],[1782773270000,0.00000000],[1782773589000,0.00000000],[1782773910000,0.00000000],[1782774167000,0.00000000],[1782774486000,0.00000000],[1782774806000,0.00000000],[1782775062000,0.00000000],[1782775382000,0.00000000],[1782775701000,0.00000000],[1782775959000,0.00000000],[1782776293000,0.00000000],[1782776612000,0.00000000],[1782776858000,0.00000000],[1782777189000,0.00000000],[1782777509000,0.00000000],[1782777752000,0.00000000],[1782778071000,0.00000000],[1782778390000,0.00000000],[1782778710000,0.00000000],[1782778966000,0.00000000],[1782779286000,0.00000000],[1782779606000,0.00000000],[1782779862000,0.00000000],[1782780182000,0.00000000],[1782780502000,0.00000000],[1782780774000,0.00000000],[1782781094000,0.00000000],[1782781350000,0.00000000],[1782781669000,0.00000000],[1782781990000,0.00000000],[1782782310000,0.00000000],[1782782566000,0.00000000],[1782782886000,0.00000000],[1782783206000,0.00000000],[1782783461000,0.00000000],[1782783781000,0.00000000],[1782784102000,0.00000000],[1782784359000,0.00000000],[1782784678000,0.00000000],[1782785012000,0.00000000],[1782785269000,0.00000000],[1782785589000,0.00000000],[1782785909000,0.00000000],[1782786165000,0.00000000],[1782786485000,0.00000000],[1782786808000,0.00000000],[1782787061000,0.00000000],[1782787381000,0.00000000],[1782787701000,0.00000000],[1782787957000,0.00000000],[1782788277000,0.00000000],[1782788597000,0.00000000],[1782788852000,0.00000000],[1782789173000,0.00000000],[1782789493000,0.00000000],[1782789812000,0.00000000],[1782790069000,0.00000000],[1782790389000,0.00000000],[1782790709000,0.00000000],[1782790965000,0.00000000],[1782791285000,0.00000000],[1782791605000,0.00000000],[1782791861000,0.00000000],[1782792181000,0.00000000],[1782792501000,0.00000000],[1782792758000,0.00000000],[1782793078000,0.00000000],], 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; }