var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1787954405000,24.40000000],[1787954597000,24.40000000],[1787955109000,24.30000000],[1787955173000,24.30000000],[1787955493000,24.28333333],[1787955812000,24.20000000],[1787956069000,24.06666667],[1787956389000,23.72000000],[1787956678000,23.60000000],[1787957029000,23.47500000],[1787957269000,23.36666667],[1787957605000,23.25000000],[1787957989000,23.20000000],[1787958150000,23.01250000],[1787958452000,22.65555556],[1787958773000,22.93333333],[1787959077000,23.13750000],[1787959381000,22.75000000],[1787959652000,22.43750000],[1787959974000,22.30000000],[1787960277000,22.27777778],[1787960581000,22.20000000],[1787960852000,22.04444444],[1787961173000,21.87777778],[1787961477000,21.72857143],[1787961781000,21.75000000],[1787962052000,21.90000000],[1787962373000,21.93333333],[1787962757000,22.30000000],[1787963012000,22.40000000],[1787963269000,22.50000000],[1787963589000,22.35000000],[1787963909000,22.30000000],[1787964229000,21.96666667],[1787964549000,22.50000000],[1787964805000,22.78000000],[1787965077000,22.76000000],[1787965397000,22.65000000],[1787965652000,22.50000000],[1787965973000,22.14000000],[1787966293000,21.70000000],[1787966612000,21.50000000],[1787966869000,21.12000000],[1787967189000,21.00000000],[1787967509000,20.95000000],[1787967829000,20.82500000],[1787968069000,20.66666667],[1787968405000,20.60000000],[1787968789000,20.26666667],[1787968981000,20.14000000],[1787969270000,20.00000000],[1787969813000,20.00000000],[1787969877000,20.00000000],[1787970197000,19.88000000],[1787970452000,19.80000000],[1787970773000,19.80000000],[1787971092000,19.66666667],[1787971412000,19.50000000],[1787971669000,19.50000000],[1787971988000,19.70000000],[1787972308000,19.80000000],[1787972612000,19.80000000],[1787972856000,19.80000000],[1787973204000,19.72857143],[1787973476000,19.75714286],[1787973781000,19.65714286],[1787974052000,19.62857143],[1787974404000,19.65714286],[1787974676000,19.56250000],[1787974980000,19.50000000],[1787975285000,19.50000000],[1787975605000,19.50000000],[1787975876000,19.52857143],[1787976181000,19.50000000],[1787976452000,19.50000000],[1787976804000,19.41428571],[1787977077000,19.27142857],[1787977380000,19.14285714],[1787977655000,19.14000000],[1787978004000,19.15000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1787954405000,11.3],[1787954597000,11.3],[1787955109000,11.2],[1787955173000,11.2],[1787955493000,11.5],[1787955812000,11.5],[1787956069000,11.4],[1787956389000,11.1],[1787956678000,11.2],[1787957029000,11.1],[1787957269000,11],[1787957605000,11],[1787957989000,10.8],[1787958150000,11],[1787958452000,10.8],[1787958773000,10.2],[1787959077000,10.6],[1787959381000,10.9],[1787959652000,10.7],[1787959974000,10.6],[1787960277000,10.6],[1787960581000,10.7],[1787960852000,10.7],[1787961173000,10.8],[1787961477000,10.8],[1787961781000,10.5],[1787962052000,10.7],[1787962373000,10.6],[1787962757000,10.6],[1787963012000,10.5],[1787963269000,10.8],[1787963589000,10.8],[1787963909000,10.9],[1787964229000,11.5],[1787964549000,15.7],[1787964805000,17.5],[1787965077000,18.2],[1787965397000,18.3],[1787965652000,18.5],[1787965973000,18.7],[1787966293000,18.5],[1787966612000,18.3],[1787966869000,18],[1787967189000,17.6],[1787967509000,17.2],[1787967829000,16.6],[1787968069000,16],[1787968405000,15.7],[1787968789000,15.5],[1787968981000,15.7],[1787969270000,15.6],[1787969813000,15.6],[1787969877000,15.6],[1787970197000,15.7],[1787970452000,15.6],[1787970773000,15.8],[1787971092000,16],[1787971412000,15.9],[1787971669000,15.8],[1787971988000,15.6],[1787972308000,15.6],[1787972612000,15.6],[1787972856000,15.6],[1787973204000,15.5],[1787973476000,15.6],[1787973781000,15.5],[1787974052000,15.5],[1787974404000,15.7],[1787974676000,15.7],[1787974980000,15.7],[1787975285000,15.7],[1787975605000,15.7],[1787975876000,15.8],[1787976181000,15.7],[1787976452000,15.8],[1787976804000,15.9],[1787977077000,15.8],[1787977380000,15.8],[1787977655000,15.8],[1787978004000,15.8],], 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: [[1787954405000,44.00000000],[1787954597000,44.00000000],[1787955109000,44.00000000],[1787955173000,44.00000000],[1787955493000,44.66666667],[1787955812000,45.00000000],[1787956069000,45.00000000],[1787956389000,45.00000000],[1787956678000,45.66666667],[1787957029000,45.75000000],[1787957269000,45.66666667],[1787957605000,46.00000000],[1787957989000,45.75000000],[1787958150000,46.87500000],[1787958452000,47.22222222],[1787958773000,44.55555556],[1787959077000,45.37500000],[1787959381000,47.37500000],[1787959652000,47.50000000],[1787959974000,47.50000000],[1787960277000,47.55555556],[1787960581000,48.14285714],[1787960852000,48.77777778],[1787961173000,49.55555556],[1787961477000,50.00000000],[1787961781000,49.00000000],[1787962052000,49.00000000],[1787962373000,48.66666667],[1787962757000,47.75000000],[1787963012000,47.00000000],[1787963269000,47.75000000],[1787963589000,48.00000000],[1787963909000,48.50000000],[1787964229000,51.66666667],[1787964549000,65.75000000],[1787964805000,72.20000000],[1787965077000,75.60000000],[1787965397000,76.75000000],[1787965652000,78.00000000],[1787965973000,81.00000000],[1787966293000,82.00000000],[1787966612000,82.00000000],[1787966869000,82.60000000],[1787967189000,80.83333333],[1787967509000,79.00000000],[1787967829000,77.00000000],[1787968069000,74.83333333],[1787968405000,73.50000000],[1787968789000,74.33333333],[1787968981000,75.60000000],[1787969270000,76.00000000],[1787969813000,76.00000000],[1787969877000,76.00000000],[1787970197000,77.00000000],[1787970452000,77.00000000],[1787970773000,78.00000000],[1787971092000,79.33333333],[1787971412000,80.00000000],[1787971669000,79.50000000],[1787971988000,77.33333333],[1787972308000,77.00000000],[1787972612000,77.00000000],[1787972856000,77.00000000],[1787973204000,76.85714286],[1787973476000,77.00000000],[1787973781000,77.00000000],[1787974052000,77.00000000],[1787974404000,77.85714286],[1787974676000,78.50000000],[1787974980000,79.00000000],[1787975285000,79.00000000],[1787975605000,79.00000000],[1787975876000,79.00000000],[1787976181000,79.00000000],[1787976452000,79.50000000],[1787976804000,80.00000000],[1787977077000,80.42857143],[1787977380000,81.00000000],[1787977655000,81.00000000],[1787978004000,81.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: [[1787954405000,1012.6],[1787954597000,1012.7],[1787955109000,1013.1],[1787955173000,1013.2],[1787955493000,1013.2],[1787955812000,1013],[1787956069000,1013.1],[1787956389000,1013],[1787956678000,1012.9],[1787957029000,1013],[1787957269000,1013],[1787957605000,1012.8],[1787957989000,1013.2],[1787958150000,1013.1],[1787958452000,1013.3],[1787958773000,1013.3],[1787959077000,1013.1],[1787959381000,1013.1],[1787959652000,1012.9],[1787959974000,1012.9],[1787960277000,1012.9],[1787960581000,1012.9],[1787960852000,1013.2],[1787961173000,1013.4],[1787961477000,1013.6],[1787961781000,1013.7],[1787962052000,1014.2],[1787962373000,1014.2],[1787962757000,1014.2],[1787963012000,1014.2],[1787963269000,1013.7],[1787963589000,1013.6],[1787963909000,1013.8],[1787964229000,1014.1],[1787964549000,1014.3],[1787964805000,1014.5],[1787965077000,1014.7],[1787965397000,1015],[1787965652000,1015.3],[1787965973000,1015],[1787966293000,1014.8],[1787966612000,1015.3],[1787966869000,1015.7],[1787967189000,1015.8],[1787967509000,1015.9],[1787967829000,1016.4],[1787968069000,1016.3],[1787968405000,1016],[1787968789000,1016.1],[1787968981000,1016.2],[1787969270000,1016.4],[1787969813000,1016.6],[1787969877000,1016.5],[1787970197000,1016.5],[1787970452000,1016.6],[1787970773000,1016.8],[1787971092000,1016.7],[1787971412000,1016.6],[1787971669000,1016.6],[1787971988000,1016.7],[1787972308000,1016.7],[1787972612000,1016.8],[1787972856000,1016.7],[1787973204000,1016.9],[1787973476000,1017],[1787973781000,1017],[1787974052000,1017],[1787974404000,1016.7],[1787974676000,1016.7],[1787974980000,1016.4],[1787975285000,1016.4],[1787975605000,1016.6],[1787975876000,1017.1],[1787976181000,1017.2],[1787976452000,1017.4],[1787976804000,1017.4],[1787977077000,1017.4],[1787977380000,1017.4],[1787977655000,1017.5],[1787978004000,1017.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); }); $(document).ready(function() { dataset = [ { label: 'Rýchlosť vetra (km/h)', data: [[1787954405000,4.5],[1787954597000,2.16],[1787955109000,1.44],[1787955173000,0.9],[1787955493000,0.299999988],[1787955812000,2.52],[1787956069000,0.060000012],[1787956389000,0.288],[1787956678000,0.479999988],[1787957029000,0],[1787957269000,0.36],[1787957605000,0],[1787957989000,0],[1787958150000,0],[1787958452000,0],[1787958773000,0.479999988],[1787959077000,0],[1787959381000,0],[1787959652000,0],[1787959974000,0.045],[1787960277000,0],[1787960581000,0],[1787960852000,1.199999988],[1787961173000,0.560000016],[1787961477000,1.8],[1787961781000,1.860000012],[1787962052000,2.79],[1787962373000,3.120000012],[1787962757000,2.34],[1787963012000,1.44],[1787963269000,0.72],[1787963589000,1.71],[1787963909000,1.8],[1787964229000,3.359999988],[1787964549000,7.92],[1787964805000,7.92],[1787965077000,10.08],[1787965397000,9.27],[1787965652000,16.56],[1787965973000,11.448],[1787966293000,14.544],[1787966612000,19.08],[1787966869000,18.72],[1787967189000,15.419999988],[1787967509000,15.48],[1787967829000,16.02],[1787968069000,15.48],[1787968405000,15.3],[1787968789000,11.040000012],[1787968981000,7.488],[1787969270000,11.777142852],[1787969813000,13.32],[1787969877000,8.82],[1787970197000,10.512],[1787970452000,9.9],[1787970773000,8.208],[1787971092000,4.32],[1787971412000,0.72],[1787971669000,5.4],[1787971988000,5.4],[1787972308000,2.52],[1787972612000,0.659999988],[1787972856000,1.337142852],[1787973204000,1.388571444],[1787973476000,0.308571444],[1787973781000,1.388571444],[1787974052000,3.702857148],[1787974404000,3.6],[1787974676000,2.52],[1787974980000,4.422857148],[1787975285000,1.542857148],[1787975605000,1.62],[1787975876000,4.937142852],[1787976181000,4.525714296],[1787976452000,4.77],[1787976804000,5.142857148],[1787977077000,3.805714296],[1787977380000,5.245714296],[1787977655000,6.048],[1787978004000,5.22],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1787954405000,7.56],[1787954597000,4.536],[1787955109000,5.04],[1787955173000,1.89],[1787955493000,0.839999988],[1787955812000,5.04],[1787956069000,0.420000012],[1787956389000,1.512],[1787956678000,0.839999988],[1787957029000,0],[1787957269000,2.099999988],[1787957605000,0],[1787957989000,0],[1787958150000,0],[1787958452000,0],[1787958773000,0.839999988],[1787959077000,0],[1787959381000,0],[1787959652000,0],[1787959974000,0.315],[1787960277000,0],[1787960581000,0],[1787960852000,1.400000004],[1787961173000,1.400000004],[1787961477000,2.16],[1787961781000,2.52],[1787962052000,3.15],[1787962373000,5.04],[1787962757000,3.78],[1787963012000,2.52],[1787963269000,1.89],[1787963589000,1.89],[1787963909000,3.78],[1787964229000,5.04],[1787964549000,10.08],[1787964805000,10.728],[1787965077000,12.816],[1787965397000,12.15],[1787965652000,21.359999988],[1787965973000,14.328],[1787966293000,20.016],[1787966612000,30.6],[1787966869000,26.064],[1787967189000,18.839999988],[1787967509000,21.78],[1787967829000,23.67],[1787968069000,23.879999988],[1787968405000,19.26],[1787968789000,16.319999988],[1787968981000,12.744],[1787969270000,16.148571444],[1787969813000,18],[1787969877000,14.13],[1787970197000,16.488],[1787970452000,14.22],[1787970773000,11.304],[1787971092000,5.460000012],[1787971412000,2.52],[1787971669000,8.19],[1787971988000,6.779999988],[1787972308000,3.78],[1787972612000,1.26],[1787972856000,2.52],[1787973204000,2.16],[1787973476000,0.36],[1787973781000,2.52],[1787974052000,5.862857148],[1787974404000,5.04],[1787974676000,4.725],[1787974980000,7.2],[1787975285000,2.52],[1787975605000,3.359999988],[1787975876000,6.84],[1787976181000,6.84],[1787976452000,6.93],[1787976804000,7.611428556],[1787977077000,4.68],[1787977380000,6.84],[1787977655000,8.064],[1787978004000,7.56],], 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: [[1787954405000,84.00000000],[1787954597000,77.40000000],[1787955109000,62.00000000],[1787955173000,36.25000000],[1787955493000,50.00000000],[1787955812000,93.00000000],[1787956069000,58.33333333],[1787956389000,86.20000000],[1787956678000,91.33333333],[1787957029000,62.00000000],[1787957269000,30.66666667],[1787957605000,198.50000000],[1787957989000,35.75000000],[1787958150000,27.00000000],[1787958452000,34.22222222],[1787958773000,105.66666667],[1787959077000,128.87500000],[1787959381000,141.12500000],[1787959652000,98.75000000],[1787959974000,63.50000000],[1787960277000,34.55555556],[1787960581000,175.28571429],[1787960852000,328.11111111],[1787961173000,311.11111111],[1787961477000,309.57142857],[1787961781000,309.50000000],[1787962052000,302.25000000],[1787962373000,275.33333333],[1787962757000,300.00000000],[1787963012000,298.00000000],[1787963269000,324.00000000],[1787963589000,324.50000000],[1787963909000,319.50000000],[1787964229000,311.66666667],[1787964549000,318.75000000],[1787964805000,309.60000000],[1787965077000,278.60000000],[1787965397000,287.00000000],[1787965652000,295.33333333],[1787965973000,309.00000000],[1787966293000,240.20000000],[1787966612000,348.00000000],[1787966869000,278.60000000],[1787967189000,270.66666667],[1787967509000,282.00000000],[1787967829000,285.75000000],[1787968069000,242.33333333],[1787968405000,305.50000000],[1787968789000,289.33333333],[1787968981000,282.40000000],[1787969270000,286.71428571],[1787969813000,288.00000000],[1787969877000,263.50000000],[1787970197000,248.80000000],[1787970452000,333.50000000],[1787970773000,312.80000000],[1787971092000,300.16666667],[1787971412000,306.00000000],[1787971669000,322.00000000],[1787971988000,217.66666667],[1787972308000,212.25000000],[1787972612000,191.50000000],[1787972856000,214.85714286],[1787973204000,228.14285714],[1787973476000,317.71428571],[1787973781000,274.57142857],[1787974052000,262.85714286],[1787974404000,154.00000000],[1787974676000,319.75000000],[1787974980000,272.14285714],[1787975285000,169.42857143],[1787975605000,257.00000000],[1787975876000,304.14285714],[1787976181000,297.00000000],[1787976452000,308.12500000],[1787976804000,309.14285714],[1787977077000,295.85714286],[1787977380000,292.14285714],[1787977655000,287.00000000],[1787978004000,285.75000000],], 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: [[1787954405000,0.00000000],[1787954597000,0.00000000],[1787955109000,0.00000000],[1787955173000,0.00000000],[1787955493000,0.00000000],[1787955812000,0.00000000],[1787956069000,0.00000000],[1787956389000,0.00000000],[1787956678000,0.00000000],[1787957029000,0.00000000],[1787957269000,0.00000000],[1787957605000,0.00000000],[1787957989000,0.00000000],[1787958150000,0.00000000],[1787958452000,0.00000000],[1787958773000,0.00000000],[1787959077000,0.00000000],[1787959381000,0.00000000],[1787959652000,0.00000000],[1787959974000,0.00000000],[1787960277000,0.00000000],[1787960581000,0.00000000],[1787960852000,0.00000000],[1787961173000,0.00000000],[1787961477000,0.00000000],[1787961781000,0.00000000],[1787962052000,0.00000000],[1787962373000,0.00000000],[1787962757000,0.00000000],[1787963012000,0.00000000],[1787963269000,0.00000000],[1787963589000,0.00000000],[1787963909000,0.00000000],[1787964229000,0.00000000],[1787964549000,0.00000000],[1787964805000,0.00000000],[1787965077000,0.00000000],[1787965397000,0.00000000],[1787965652000,0.00000000],[1787965973000,0.00000000],[1787966293000,0.00000000],[1787966612000,0.00000000],[1787966869000,0.00000000],[1787967189000,0.00000000],[1787967509000,0.00000000],[1787967829000,0.00000000],[1787968069000,0.00000000],[1787968405000,0.00000000],[1787968789000,0.00000000],[1787968981000,0.00000000],[1787969270000,0.00000000],[1787969813000,0.00000000],[1787969877000,0.00000000],[1787970197000,0.00000000],[1787970452000,0.00000000],[1787970773000,0.00000000],[1787971092000,0.00000000],[1787971412000,0.00000000],[1787971669000,0.00000000],[1787971988000,0.00000000],[1787972308000,0.00000000],[1787972612000,0.00000000],[1787972856000,0.00000000],[1787973204000,0.00000000],[1787973476000,0.00000000],[1787973781000,0.00000000],[1787974052000,0.00000000],[1787974404000,0.00000000],[1787974676000,0.00000000],[1787974980000,0.00000000],[1787975285000,0.00000000],[1787975605000,0.00000000],[1787975876000,0.00000000],[1787976181000,0.14285714],[1787976452000,1.25000000],[1787976804000,3.85714286],[1787977077000,5.71428571],[1787977380000,7.57142857],[1787977655000,12.00000000],[1787978004000,13.75000000],], 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: [[1787954405000,0.00000000],[1787954597000,0.00000000],[1787955109000,0.00000000],[1787955173000,0.00000000],[1787955493000,0.00000000],[1787955812000,0.00000000],[1787956069000,0.00000000],[1787956389000,0.00000000],[1787956678000,0.00000000],[1787957029000,0.00000000],[1787957269000,0.00000000],[1787957605000,0.00000000],[1787957989000,0.00000000],[1787958150000,0.00000000],[1787958452000,0.00000000],[1787958773000,0.00000000],[1787959077000,0.00000000],[1787959381000,0.00000000],[1787959652000,0.00000000],[1787959974000,0.00000000],[1787960277000,0.00000000],[1787960581000,0.00000000],[1787960852000,0.00000000],[1787961173000,0.00000000],[1787961477000,0.00000000],[1787961781000,0.00000000],[1787962052000,0.00000000],[1787962373000,0.00000000],[1787962757000,0.00000000],[1787963012000,0.00000000],[1787963269000,0.00000000],[1787963589000,0.00000000],[1787963909000,0.00000000],[1787964229000,0.00000000],[1787964549000,0.00000000],[1787964805000,0.00000000],[1787965077000,0.00000000],[1787965397000,0.00000000],[1787965652000,0.00000000],[1787965973000,0.00000000],[1787966293000,0.00000000],[1787966612000,0.00000000],[1787966869000,0.00000000],[1787967189000,0.00000000],[1787967509000,0.00000000],[1787967829000,0.00000000],[1787968069000,0.00000000],[1787968405000,0.00000000],[1787968789000,0.00000000],[1787968981000,0.00000000],[1787969270000,0.00000000],[1787969813000,0.00000000],[1787969877000,0.00000000],[1787970197000,0.00000000],[1787970452000,0.00000000],[1787970773000,0.00000000],[1787971092000,0.00000000],[1787971412000,0.00000000],[1787971669000,0.00000000],[1787971988000,0.00000000],[1787972308000,0.00000000],[1787972612000,0.00000000],[1787972856000,0.00000000],[1787973204000,0.00000000],[1787973476000,0.00000000],[1787973781000,0.00000000],[1787974052000,0.00000000],[1787974404000,0.00000000],[1787974676000,0.00000000],[1787974980000,0.00000000],[1787975285000,0.00000000],[1787975605000,0.00000000],[1787975876000,0.00000000],[1787976181000,0.00000000],[1787976452000,0.00000000],[1787976804000,0.00000000],[1787977077000,0.00000000],[1787977380000,0.00000000],[1787977655000,0.00000000],[1787978004000,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: [[1787954405000,0.00000000],[1787954597000,0.00000000],[1787955109000,0.00000000],[1787955173000,0.00000000],[1787955493000,0.00000000],[1787955812000,0.00000000],[1787956069000,0.00000000],[1787956389000,0.00000000],[1787956678000,0.00000000],[1787957029000,0.00000000],[1787957269000,0.00000000],[1787957605000,0.00000000],[1787957989000,0.00000000],[1787958150000,0.00000000],[1787958452000,0.00000000],[1787958773000,0.00000000],[1787959077000,0.00000000],[1787959381000,0.00000000],[1787959652000,0.00000000],[1787959974000,0.00000000],[1787960277000,0.00000000],[1787960581000,0.00000000],[1787960852000,0.00000000],[1787961173000,0.00000000],[1787961477000,0.00000000],[1787961781000,0.00000000],[1787962052000,0.00000000],[1787962373000,0.00000000],[1787962757000,0.00000000],[1787963012000,0.00000000],[1787963269000,0.00000000],[1787963589000,0.00000000],[1787963909000,0.00000000],[1787964229000,0.00000000],[1787964549000,0.00000000],[1787964805000,0.00000000],[1787965077000,0.00000000],[1787965397000,0.00000000],[1787965652000,0.00000000],[1787965973000,0.00000000],[1787966293000,0.00000000],[1787966612000,0.00000000],[1787966869000,0.00000000],[1787967189000,0.00000000],[1787967509000,0.00000000],[1787967829000,0.00000000],[1787968069000,0.00000000],[1787968405000,0.00000000],[1787968789000,0.00000000],[1787968981000,0.00000000],[1787969270000,0.00000000],[1787969813000,0.00000000],[1787969877000,0.00000000],[1787970197000,0.00000000],[1787970452000,0.00000000],[1787970773000,0.00000000],[1787971092000,0.00000000],[1787971412000,0.00000000],[1787971669000,0.00000000],[1787971988000,0.00000000],[1787972308000,0.00000000],[1787972612000,0.00000000],[1787972856000,0.00000000],[1787973204000,0.00000000],[1787973476000,0.00000000],[1787973781000,0.00000000],[1787974052000,0.00000000],[1787974404000,0.00000000],[1787974676000,0.00000000],[1787974980000,0.00000000],[1787975285000,0.00000000],[1787975605000,0.00000000],[1787975876000,0.00000000],[1787976181000,0.00000000],[1787976452000,0.00000000],[1787976804000,0.00000000],[1787977077000,0.00000000],[1787977380000,0.00000000],[1787977655000,0.00000000],[1787978004000,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; }