var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1785189636000,17.30000000],[1785189781000,17.20000000],[1785190053000,17.22857143],[1785190373000,17.42857143],[1785190676000,17.43333333],[1785191011000,17.25000000],[1785191429000,17.10000000],[1785191572000,17.10000000],[1785191893000,17.00000000],[1785192181000,16.86000000],[1785192484000,16.61428571],[1785192811000,16.70000000],[1785193092000,16.85000000],[1785193412000,16.83333333],[1785193668000,16.90000000],[1785194148000,16.90000000],[1785194292000,17.00000000],[1785194596000,16.94000000],[1785194884000,17.10000000],[1785195172000,17.10000000],[1785195492000,16.91666667],[1785196053000,17.08333333],[1785196373000,17.04000000],[1785196788000,17.00000000],[1785196980000,17.12857143],[1785197285000,17.20000000],[1785197551000,17.20000000],[1785197877000,17.06250000],[1785198180000,16.94285714],[1785198485000,16.81428571],[1785198805000,16.75000000],[1785199076000,16.33750000],[1785199380000,16.15000000],[1785199651000,16.00000000],[1785200004000,15.95000000],[1785200251000,16.28750000],[1785200580000,16.38571429],[1785200851000,16.37500000],[1785201188000,16.13333333],[1785201452000,16.26666667],[1785201781000,16.21666667],[1785202051000,16.21428571],[1785202404000,16.02857143],[1785202651000,15.54000000],[1785202979000,15.66250000],[1785203299000,16.32857143],[1785203552000,16.48750000],[1785203875000,16.35000000],[1785204179000,16.46666667],[1785204468000,16.50000000],[1785204772000,15.46000000],[1785205076000,14.57142857],[1785205411000,14.08571429],[1785205667000,14.06666667],[1785206071000,14.33333333],[1785206308000,14.47500000],[1785206596000,14.63333333],[1785206870000,14.71428571],[1785207171000,14.92500000],[1785207555000,15.17500000],[1785207780000,15.10000000],[1785208067000,14.98333333],[1785208411000,14.83333333],[1785208787000,15.20000000],[1785208980000,15.43333333],[1785209268000,15.82000000],[1785209651000,15.95000000],[1785209891000,15.68000000],[1785210196000,15.21666667],[1785210451000,15.20000000],[1785210787000,15.20000000],[1785211107000,15.15000000],[1785211380000,15.05714286],[1785211652000,15.01428571],[1785212004000,15.10000000],[1785212293000,15.04285714],[1785212612000,15.02000000],[1785212851000,15.78571429],[1785213172000,17.08750000],[1785213475000,17.31250000],[1785213812000,17.06666667],[1785214051000,16.62857143],[1785214371000,16.20000000],[1785214691000,16.01666667],[1785214951000,15.93333333],[1785215252000,15.82000000],[1785215763000,15.60000000],[1785215875000,15.50000000],[1785216151000,15.65000000],[1785216484000,16.75000000],[1785216804000,17.72500000],[1785217091000,17.87500000],[1785217351000,17.94000000],[1785217685000,18.50000000],[1785217987000,18.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1785189636000,10.3],[1785189781000,10.3],[1785190053000,10.2],[1785190373000,10.3],[1785190676000,10.3],[1785191011000,10.3],[1785191429000,10.4],[1785191572000,10.4],[1785191893000,10.3],[1785192181000,10.4],[1785192484000,10.3],[1785192811000,10.3],[1785193092000,10.4],[1785193412000,10.4],[1785193668000,10.5],[1785194148000,10.5],[1785194292000,10.6],[1785194596000,10.5],[1785194884000,10.7],[1785195172000,10.7],[1785195492000,10.5],[1785196053000,10.6],[1785196373000,10.6],[1785196788000,10.6],[1785196980000,10.7],[1785197285000,10.7],[1785197551000,10.7],[1785197877000,10.7],[1785198180000,10.7],[1785198485000,10.6],[1785198805000,10.7],[1785199076000,10.6],[1785199380000,10.6],[1785199651000,10.5],[1785200004000,10.4],[1785200251000,10.5],[1785200580000,10.6],[1785200851000,10.7],[1785201188000,10.6],[1785201452000,10.6],[1785201781000,10.7],[1785202051000,10.7],[1785202404000,10.7],[1785202651000,10.6],[1785202979000,10.5],[1785203299000,10.7],[1785203552000,10.9],[1785203875000,10.8],[1785204179000,10.9],[1785204468000,11.1],[1785204772000,10.7],[1785205076000,10.5],[1785205411000,10.3],[1785205667000,10.3],[1785206071000,10.3],[1785206308000,10.5],[1785206596000,10.4],[1785206870000,10.5],[1785207171000,10.4],[1785207555000,10.6],[1785207780000,10.7],[1785208067000,10.6],[1785208411000,10.5],[1785208787000,10.7],[1785208980000,10.8],[1785209268000,10.9],[1785209651000,11.1],[1785209891000,11.1],[1785210196000,10.8],[1785210451000,10.8],[1785210787000,10.8],[1785211107000,10.7],[1785211380000,10.8],[1785211652000,10.7],[1785212004000,10.7],[1785212293000,10.9],[1785212612000,10.9],[1785212851000,10.9],[1785213172000,11.1],[1785213475000,11.4],[1785213812000,11.6],[1785214051000,11.5],[1785214371000,11.4],[1785214691000,11.4],[1785214951000,11.5],[1785215252000,11.6],[1785215763000,11.3],[1785215875000,11.5],[1785216151000,11.2],[1785216484000,11.6],[1785216804000,11.9],[1785217091000,11.7],[1785217351000,11.8],[1785217685000,12.1],[1785217987000,12],], 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: [[1785189636000,63.66666667],[1785189781000,64.00000000],[1785190053000,63.57142857],[1785190373000,63.00000000],[1785190676000,63.33333333],[1785191011000,64.00000000],[1785191429000,65.00000000],[1785191572000,65.00000000],[1785191893000,65.00000000],[1785192181000,65.80000000],[1785192484000,66.57142857],[1785192811000,66.00000000],[1785193092000,66.00000000],[1785193412000,66.00000000],[1785193668000,66.00000000],[1785194148000,66.00000000],[1785194292000,66.00000000],[1785194596000,66.00000000],[1785194884000,66.00000000],[1785195172000,66.00000000],[1785195492000,66.16666667],[1785196053000,66.00000000],[1785196373000,66.20000000],[1785196788000,66.16666667],[1785196980000,66.00000000],[1785197285000,66.00000000],[1785197551000,66.00000000],[1785197877000,66.37500000],[1785198180000,67.00000000],[1785198485000,67.00000000],[1785198805000,67.50000000],[1785199076000,69.12500000],[1785199380000,69.83333333],[1785199651000,70.25000000],[1785200004000,70.00000000],[1785200251000,68.75000000],[1785200580000,69.00000000],[1785200851000,69.12500000],[1785201188000,70.00000000],[1785201452000,69.16666667],[1785201781000,70.00000000],[1785202051000,70.00000000],[1785202404000,71.00000000],[1785202651000,72.80000000],[1785202979000,71.75000000],[1785203299000,69.71428571],[1785203552000,69.62500000],[1785203875000,70.00000000],[1785204179000,70.00000000],[1785204468000,70.50000000],[1785204772000,73.60000000],[1785205076000,76.57142857],[1785205411000,78.14285714],[1785205667000,78.33333333],[1785206071000,77.00000000],[1785206308000,77.00000000],[1785206596000,76.00000000],[1785206870000,76.00000000],[1785207171000,74.75000000],[1785207555000,74.50000000],[1785207780000,75.00000000],[1785208067000,75.33333333],[1785208411000,75.66666667],[1785208787000,74.66666667],[1785208980000,74.00000000],[1785209268000,72.80000000],[1785209651000,73.00000000],[1785209891000,74.40000000],[1785210196000,75.00000000],[1785210451000,75.00000000],[1785210787000,75.33333333],[1785211107000,75.00000000],[1785211380000,75.71428571],[1785211652000,75.71428571],[1785212004000,75.00000000],[1785212293000,76.57142857],[1785212612000,76.60000000],[1785212851000,73.00000000],[1785213172000,67.87500000],[1785213475000,68.50000000],[1785213812000,70.50000000],[1785214051000,72.00000000],[1785214371000,73.60000000],[1785214691000,74.33333333],[1785214951000,75.33333333],[1785215252000,76.20000000],[1785215763000,76.00000000],[1785215875000,77.00000000],[1785216151000,75.00000000],[1785216484000,72.00000000],[1785216804000,69.00000000],[1785217091000,67.25000000],[1785217351000,67.40000000],[1785217685000,66.50000000],[1785217987000,66.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: [[1785189636000,1021.4],[1785189781000,1021.5],[1785190053000,1021.5],[1785190373000,1021.6],[1785190676000,1021.6],[1785191011000,1021.6],[1785191429000,1021.8],[1785191572000,1021.8],[1785191893000,1021.7],[1785192181000,1021.9],[1785192484000,1021.9],[1785192811000,1021.9],[1785193092000,1021.9],[1785193412000,1022.1],[1785193668000,1022],[1785194148000,1022.1],[1785194292000,1022.1],[1785194596000,1022.1],[1785194884000,1022.2],[1785195172000,1022.3],[1785195492000,1022.4],[1785196053000,1022.5],[1785196373000,1022.6],[1785196788000,1022.7],[1785196980000,1022.7],[1785197285000,1022.8],[1785197551000,1022.8],[1785197877000,1022.9],[1785198180000,1023],[1785198485000,1023],[1785198805000,1023.1],[1785199076000,1023.2],[1785199380000,1023.3],[1785199651000,1023.3],[1785200004000,1023.3],[1785200251000,1023.3],[1785200580000,1023.3],[1785200851000,1023.4],[1785201188000,1023.3],[1785201452000,1023.4],[1785201781000,1023.4],[1785202051000,1023.3],[1785202404000,1023.5],[1785202651000,1023.6],[1785202979000,1023.6],[1785203299000,1023.5],[1785203552000,1023.3],[1785203875000,1023.4],[1785204179000,1023.2],[1785204468000,1023.3],[1785204772000,1023.5],[1785205076000,1023.8],[1785205411000,1023.9],[1785205667000,1023.9],[1785206071000,1024],[1785206308000,1024],[1785206596000,1024],[1785206870000,1024.1],[1785207171000,1024],[1785207555000,1024.2],[1785207780000,1024],[1785208067000,1024],[1785208411000,1024.2],[1785208787000,1024.3],[1785208980000,1024.2],[1785209268000,1024.3],[1785209651000,1024.2],[1785209891000,1024.2],[1785210196000,1024.2],[1785210451000,1024.3],[1785210787000,1024.3],[1785211107000,1024.2],[1785211380000,1024.4],[1785211652000,1024.4],[1785212004000,1024.5],[1785212293000,1024.6],[1785212612000,1024.6],[1785212851000,1024.5],[1785213172000,1024.3],[1785213475000,1024.2],[1785213812000,1024.3],[1785214051000,1024.3],[1785214371000,1024.5],[1785214691000,1024.5],[1785214951000,1024.7],[1785215252000,1024.7],[1785215763000,1024.9],[1785215875000,1024.9],[1785216151000,1024.8],[1785216484000,1024.8],[1785216804000,1024.8],[1785217091000,1024.7],[1785217351000,1024.8],[1785217685000,1024.6],[1785217987000,1024.5],], 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: [[1785189636000,2.400000012],[1785189781000,3.702857148],[1785190053000,5.194285704],[1785190373000,5.4],[1785190676000,4.32],[1785191011000,3.840000012],[1785191429000,5.13],[1785191572000,4.114285704],[1785191893000,3.24],[1785192181000,1.872],[1785192484000,2.931428556],[1785192811000,5.339999988],[1785193092000,5.4],[1785193412000,4.200000012],[1785193668000,6.39],[1785194148000,5.94],[1785194292000,4.380000012],[1785194596000,5.832],[1785194884000,7.679999988],[1785195172000,5.256],[1785195492000,4.079999988],[1785196053000,3.120000012],[1785196373000,2.808],[1785196788000,5.640000012],[1785196980000,7.097142852],[1785197285000,5.4],[1785197551000,4.217142852],[1785197877000,4.095],[1785198180000,2.777142852],[1785198485000,2.982857148],[1785198805000,2.52],[1785199076000,2.61],[1785199380000,2.580000012],[1785199651000,3.105],[1785200004000,2.459999988],[1785200251000,2.7],[1785200580000,3.445714296],[1785200851000,2.925],[1785201188000,3.300000012],[1785201452000,2.819999988],[1785201781000,2.7],[1785202051000,2.468571444],[1785202404000,4.525714296],[1785202651000,4.824],[1785202979000,3.555],[1785203299000,4.885714296],[1785203552000,3.24],[1785203875000,0.855],[1785204179000,0.18],[1785204468000,0.119999988],[1785204772000,0],[1785205076000,0],[1785205411000,0.36],[1785205667000,1.680000012],[1785206071000,2.040000012],[1785206308000,2.43],[1785206596000,1.919999988],[1785206870000,2.005714296],[1785207171000,2.88],[1785207555000,4.14],[1785207780000,5.04],[1785208067000,4.079999988],[1785208411000,4.079999988],[1785208787000,5.04],[1785208980000,4.32],[1785209268000,3.816],[1785209651000,0.81],[1785209891000,0.432],[1785210196000,0],[1785210451000,0],[1785210787000,0],[1785211107000,0],[1785211380000,0],[1785211652000,0],[1785212004000,0],[1785212293000,0.051428556],[1785212612000,0.072],[1785212851000,0],[1785213172000,0],[1785213475000,0.27],[1785213812000,0.060000012],[1785214051000,0],[1785214371000,0],[1785214691000,0],[1785214951000,0],[1785215252000,0],[1785215763000,0],[1785215875000,0],[1785216151000,0],[1785216484000,1.08],[1785216804000,0.18],[1785217091000,1.89],[1785217351000,1.584],[1785217685000,1.26],[1785217987000,1.44],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1785189636000,4.200000012],[1785189781000,5.04],[1785190053000,6.12],[1785190373000,6.84],[1785190676000,5.879999988],[1785191011000,5.04],[1785191429000,5.67],[1785191572000,5.4],[1785191893000,4.41],[1785192181000,2.016],[1785192484000,3.96],[1785192811000,6.3],[1785193092000,6.3],[1785193412000,5.04],[1785193668000,8.19],[1785194148000,8.82],[1785194292000,5.879999988],[1785194596000,7.056],[1785194884000,8.399999988],[1785195172000,6.048],[1785195492000,5.879999988],[1785196053000,4.619999988],[1785196373000,3.528],[1785196788000,7.139999988],[1785196980000,8.28],[1785197285000,6.720000012],[1785197551000,5.4],[1785197877000,5.67],[1785198180000,3.96],[1785198485000,3.6],[1785198805000,3.465],[1785199076000,3.15],[1785199380000,2.940000012],[1785199651000,3.78],[1785200004000,2.52],[1785200251000,3.15],[1785200580000,4.32],[1785200851000,4.725],[1785201188000,4.619999988],[1785201452000,3.78],[1785201781000,3.78],[1785202051000,3.24],[1785202404000,5.76],[1785202651000,5.544],[1785202979000,5.04],[1785203299000,5.04],[1785203552000,4.095],[1785203875000,1.89],[1785204179000,0.839999988],[1785204468000,0.420000012],[1785204772000,0],[1785205076000,0],[1785205411000,0.72],[1785205667000,2.52],[1785206071000,2.52],[1785206308000,2.52],[1785206596000,2.52],[1785206870000,2.52],[1785207171000,3.15],[1785207555000,4.41],[1785207780000,5.04],[1785208067000,5.460000012],[1785208411000,5.04],[1785208787000,5.879999988],[1785208980000,5.04],[1785209268000,4.536],[1785209651000,1.26],[1785209891000,0.504],[1785210196000,0],[1785210451000,0],[1785210787000,0],[1785211107000,0],[1785211380000,0],[1785211652000,0],[1785212004000,0],[1785212293000,0.36],[1785212612000,0.504],[1785212851000,0],[1785213172000,0],[1785213475000,0.945],[1785213812000,0.420000012],[1785214051000,0],[1785214371000,0],[1785214691000,0],[1785214951000,0],[1785215252000,0],[1785215763000,0],[1785215875000,0],[1785216151000,0],[1785216484000,1.26],[1785216804000,0.63],[1785217091000,2.52],[1785217351000,2.016],[1785217685000,1.89],[1785217987000,2.52],], 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: [[1785189636000,352.66666667],[1785189781000,197.00000000],[1785190053000,246.57142857],[1785190373000,204.57142857],[1785190676000,291.00000000],[1785191011000,179.50000000],[1785191429000,348.50000000],[1785191572000,340.42857143],[1785191893000,352.75000000],[1785192181000,332.00000000],[1785192484000,289.57142857],[1785192811000,295.50000000],[1785193092000,8.50000000],[1785193412000,238.33333333],[1785193668000,94.25000000],[1785194148000,343.00000000],[1785194292000,282.83333333],[1785194596000,354.60000000],[1785194884000,238.00000000],[1785195172000,273.20000000],[1785195492000,332.83333333],[1785196053000,336.66666667],[1785196373000,344.20000000],[1785196788000,284.00000000],[1785196980000,347.71428571],[1785197285000,282.16666667],[1785197551000,294.00000000],[1785197877000,295.25000000],[1785198180000,336.57142857],[1785198485000,286.71428571],[1785198805000,314.00000000],[1785199076000,311.50000000],[1785199380000,308.50000000],[1785199651000,304.25000000],[1785200004000,322.00000000],[1785200251000,326.25000000],[1785200580000,319.71428571],[1785200851000,320.00000000],[1785201188000,340.50000000],[1785201452000,332.66666667],[1785201781000,311.50000000],[1785202051000,318.57142857],[1785202404000,300.71428571],[1785202651000,307.80000000],[1785202979000,290.37500000],[1785203299000,201.14285714],[1785203552000,210.50000000],[1785203875000,305.75000000],[1785204179000,322.66666667],[1785204468000,272.33333333],[1785204772000,319.00000000],[1785205076000,313.85714286],[1785205411000,243.85714286],[1785205667000,328.00000000],[1785206071000,337.33333333],[1785206308000,335.00000000],[1785206596000,324.66666667],[1785206870000,317.85714286],[1785207171000,303.50000000],[1785207555000,304.25000000],[1785207780000,298.00000000],[1785208067000,305.66666667],[1785208411000,317.66666667],[1785208787000,314.66666667],[1785208980000,311.33333333],[1785209268000,306.80000000],[1785209651000,162.00000000],[1785209891000,281.60000000],[1785210196000,336.66666667],[1785210451000,325.85714286],[1785210787000,300.00000000],[1785211107000,299.66666667],[1785211380000,331.14285714],[1785211652000,337.57142857],[1785212004000,334.85714286],[1785212293000,289.85714286],[1785212612000,327.20000000],[1785212851000,336.71428571],[1785213172000,306.00000000],[1785213475000,300.37500000],[1785213812000,273.66666667],[1785214051000,285.14285714],[1785214371000,270.80000000],[1785214691000,283.83333333],[1785214951000,315.66666667],[1785215252000,314.00000000],[1785215763000,287.50000000],[1785215875000,307.50000000],[1785216151000,258.00000000],[1785216484000,195.50000000],[1785216804000,65.75000000],[1785217091000,196.50000000],[1785217351000,178.40000000],[1785217685000,154.75000000],[1785217987000,54.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: [[1785189636000,0.00000000],[1785189781000,0.00000000],[1785190053000,0.00000000],[1785190373000,0.00000000],[1785190676000,0.00000000],[1785191011000,0.00000000],[1785191429000,0.00000000],[1785191572000,0.00000000],[1785191893000,0.00000000],[1785192181000,0.00000000],[1785192484000,0.00000000],[1785192811000,0.00000000],[1785193092000,0.00000000],[1785193412000,0.00000000],[1785193668000,0.00000000],[1785194148000,0.00000000],[1785194292000,0.00000000],[1785194596000,0.00000000],[1785194884000,0.00000000],[1785195172000,0.00000000],[1785195492000,0.00000000],[1785196053000,0.00000000],[1785196373000,0.00000000],[1785196788000,0.00000000],[1785196980000,0.00000000],[1785197285000,0.00000000],[1785197551000,0.00000000],[1785197877000,0.00000000],[1785198180000,0.00000000],[1785198485000,0.00000000],[1785198805000,0.00000000],[1785199076000,0.00000000],[1785199380000,0.00000000],[1785199651000,0.00000000],[1785200004000,0.00000000],[1785200251000,0.00000000],[1785200580000,0.00000000],[1785200851000,0.00000000],[1785201188000,0.00000000],[1785201452000,0.00000000],[1785201781000,0.00000000],[1785202051000,0.00000000],[1785202404000,0.00000000],[1785202651000,0.00000000],[1785202979000,0.00000000],[1785203299000,0.00000000],[1785203552000,0.00000000],[1785203875000,0.00000000],[1785204179000,0.00000000],[1785204468000,0.00000000],[1785204772000,0.00000000],[1785205076000,0.00000000],[1785205411000,0.00000000],[1785205667000,0.00000000],[1785206071000,0.00000000],[1785206308000,0.00000000],[1785206596000,0.00000000],[1785206870000,0.00000000],[1785207171000,0.00000000],[1785207555000,1.00000000],[1785207780000,1.00000000],[1785208067000,2.00000000],[1785208411000,3.00000000],[1785208787000,4.00000000],[1785208980000,4.00000000],[1785209268000,5.40000000],[1785209651000,7.00000000],[1785209891000,8.40000000],[1785210196000,12.00000000],[1785210451000,16.00000000],[1785210787000,18.83333333],[1785211107000,22.50000000],[1785211380000,25.00000000],[1785211652000,30.71428571],[1785212004000,36.14285714],[1785212293000,44.00000000],[1785212612000,70.60000000],[1785212851000,89.85714286],[1785213172000,80.12500000],[1785213475000,66.37500000],[1785213812000,47.33333333],[1785214051000,49.57142857],[1785214371000,48.40000000],[1785214691000,48.16666667],[1785214951000,47.33333333],[1785215252000,53.40000000],[1785215763000,57.00000000],[1785215875000,60.00000000],[1785216151000,107.50000000],[1785216484000,171.00000000],[1785216804000,170.25000000],[1785217091000,193.75000000],[1785217351000,210.80000000],[1785217685000,231.00000000],[1785217987000,239.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: [[1785189636000,0.00000000],[1785189781000,0.00000000],[1785190053000,0.00000000],[1785190373000,0.00000000],[1785190676000,0.00000000],[1785191011000,0.00000000],[1785191429000,0.00000000],[1785191572000,0.00000000],[1785191893000,0.00000000],[1785192181000,0.00000000],[1785192484000,0.00000000],[1785192811000,0.00000000],[1785193092000,0.00000000],[1785193412000,0.00000000],[1785193668000,0.00000000],[1785194148000,0.00000000],[1785194292000,0.00000000],[1785194596000,0.00000000],[1785194884000,0.00000000],[1785195172000,0.00000000],[1785195492000,0.00000000],[1785196053000,0.00000000],[1785196373000,0.00000000],[1785196788000,0.00000000],[1785196980000,0.00000000],[1785197285000,0.00000000],[1785197551000,0.00000000],[1785197877000,0.00000000],[1785198180000,0.00000000],[1785198485000,0.00000000],[1785198805000,0.00000000],[1785199076000,0.00000000],[1785199380000,0.00000000],[1785199651000,0.00000000],[1785200004000,0.00000000],[1785200251000,0.00000000],[1785200580000,0.00000000],[1785200851000,0.00000000],[1785201188000,0.00000000],[1785201452000,0.00000000],[1785201781000,0.00000000],[1785202051000,0.00000000],[1785202404000,0.00000000],[1785202651000,0.00000000],[1785202979000,0.00000000],[1785203299000,0.00000000],[1785203552000,0.00000000],[1785203875000,0.00000000],[1785204179000,0.00000000],[1785204468000,0.00000000],[1785204772000,0.00000000],[1785205076000,0.00000000],[1785205411000,0.00000000],[1785205667000,0.00000000],[1785206071000,0.00000000],[1785206308000,0.00000000],[1785206596000,0.00000000],[1785206870000,0.00000000],[1785207171000,0.00000000],[1785207555000,0.00000000],[1785207780000,0.00000000],[1785208067000,0.00000000],[1785208411000,0.00000000],[1785208787000,0.00000000],[1785208980000,0.00000000],[1785209268000,0.00000000],[1785209651000,0.00000000],[1785209891000,0.00000000],[1785210196000,0.00000000],[1785210451000,0.00000000],[1785210787000,0.00000000],[1785211107000,0.00000000],[1785211380000,0.00000000],[1785211652000,0.00000000],[1785212004000,0.00000000],[1785212293000,0.00000000],[1785212612000,0.00000000],[1785212851000,0.00000000],[1785213172000,0.00000000],[1785213475000,0.00000000],[1785213812000,0.00000000],[1785214051000,0.00000000],[1785214371000,0.00000000],[1785214691000,0.00000000],[1785214951000,0.00000000],[1785215252000,0.00000000],[1785215763000,0.00000000],[1785215875000,0.00000000],[1785216151000,0.50000000],[1785216484000,1.00000000],[1785216804000,1.00000000],[1785217091000,1.00000000],[1785217351000,1.80000000],[1785217685000,2.00000000],[1785217987000,2.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: [[1785189636000,0.00000000],[1785189781000,0.00000000],[1785190053000,0.00000000],[1785190373000,0.00000000],[1785190676000,0.00000000],[1785191011000,0.00000000],[1785191429000,0.00000000],[1785191572000,0.00000000],[1785191893000,0.00000000],[1785192181000,0.00000000],[1785192484000,0.00000000],[1785192811000,0.00000000],[1785193092000,0.00000000],[1785193412000,0.00000000],[1785193668000,0.00000000],[1785194148000,0.00000000],[1785194292000,0.00000000],[1785194596000,0.00000000],[1785194884000,0.00000000],[1785195172000,0.00000000],[1785195492000,0.00000000],[1785196053000,0.00000000],[1785196373000,0.00000000],[1785196788000,0.00000000],[1785196980000,0.00000000],[1785197285000,0.00000000],[1785197551000,0.00000000],[1785197877000,0.00000000],[1785198180000,0.00000000],[1785198485000,0.00000000],[1785198805000,0.00000000],[1785199076000,0.00000000],[1785199380000,0.00000000],[1785199651000,0.00000000],[1785200004000,0.00000000],[1785200251000,0.00000000],[1785200580000,0.00000000],[1785200851000,0.00000000],[1785201188000,0.00000000],[1785201452000,0.00000000],[1785201781000,0.00000000],[1785202051000,0.00000000],[1785202404000,0.00000000],[1785202651000,0.00000000],[1785202979000,0.00000000],[1785203299000,0.00000000],[1785203552000,0.00000000],[1785203875000,0.00000000],[1785204179000,0.00000000],[1785204468000,0.00000000],[1785204772000,0.00000000],[1785205076000,0.00000000],[1785205411000,0.00000000],[1785205667000,0.00000000],[1785206071000,0.00000000],[1785206308000,0.00000000],[1785206596000,0.00000000],[1785206870000,0.00000000],[1785207171000,0.00000000],[1785207555000,0.00000000],[1785207780000,0.00000000],[1785208067000,0.00000000],[1785208411000,0.00000000],[1785208787000,0.00000000],[1785208980000,0.00000000],[1785209268000,0.00000000],[1785209651000,0.00000000],[1785209891000,0.00000000],[1785210196000,0.00000000],[1785210451000,0.00000000],[1785210787000,0.00000000],[1785211107000,0.00000000],[1785211380000,0.00000000],[1785211652000,0.00000000],[1785212004000,0.00000000],[1785212293000,0.00000000],[1785212612000,0.00000000],[1785212851000,0.00000000],[1785213172000,0.00000000],[1785213475000,0.00000000],[1785213812000,0.00000000],[1785214051000,0.00000000],[1785214371000,0.00000000],[1785214691000,0.00000000],[1785214951000,0.00000000],[1785215252000,0.00000000],[1785215763000,0.00000000],[1785215875000,0.00000000],[1785216151000,0.00000000],[1785216484000,0.00000000],[1785216804000,0.00000000],[1785217091000,0.00000000],[1785217351000,0.00000000],[1785217685000,0.00000000],[1785217987000,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; }