var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1786140000000,19.90000000],[1786140180000,19.88000000],[1786140480000,19.84000000],[1786140780000,19.80000000],[1786141080000,19.80000000],[1786141380000,19.80000000],[1786141680000,19.74000000],[1786141980000,19.70000000],[1786142280000,19.70000000],[1786142580000,19.70000000],[1786142880000,19.62000000],[1786143180000,19.60000000],[1786143480000,19.52000000],[1786143780000,19.50000000],[1786144080000,19.50000000],[1786144380000,19.50000000],[1786144680000,19.40000000],[1786144980000,19.40000000],[1786145280000,19.40000000],[1786145580000,19.40000000],[1786145880000,19.30000000],[1786146180000,19.32000000],[1786146480000,19.30000000],[1786146780000,19.38000000],[1786147080000,19.40000000],[1786147380000,19.46000000],[1786147680000,19.50000000],[1786147980000,19.50000000],[1786148280000,19.50000000],[1786148580000,19.46000000],[1786148880000,19.34000000],[1786149180000,19.26000000],[1786149480000,19.14000000],[1786149780000,19.04000000],[1786150080000,19.00000000],[1786150380000,18.90000000],[1786150680000,18.90000000],[1786150980000,18.86000000],[1786151280000,18.86000000],[1786151580000,18.80000000],[1786151880000,18.74000000],[1786152180000,18.70000000],[1786152480000,18.70000000],[1786152780000,18.64000000],[1786153080000,18.60000000],[1786153380000,18.56000000],[1786153680000,18.50000000],[1786153980000,18.46000000],[1786154280000,18.38000000],[1786154580000,18.30000000],[1786154880000,18.26000000],[1786155180000,18.20000000],[1786155480000,18.20000000],[1786155780000,18.20000000],[1786156080000,18.16000000],[1786156380000,18.10000000],[1786156680000,18.08000000],[1786156980000,18.00000000],[1786157280000,17.90000000],[1786157580000,17.90000000],[1786157880000,17.90000000],[1786158180000,17.92000000],[1786158480000,18.00000000],[1786158780000,18.00000000],[1786159080000,17.98000000],[1786159380000,17.98000000],[1786159680000,18.00000000],[1786159980000,18.10000000],[1786160280000,18.10000000],[1786160580000,18.10000000],[1786160880000,18.20000000],[1786161180000,18.24000000],[1786161480000,18.36000000],[1786161780000,18.48000000],[1786162080000,18.56000000],[1786162380000,18.70000000],[1786162680000,18.86000000],[1786162980000,18.98000000],[1786163280000,19.06000000],[1786163580000,19.18000000],[1786163880000,19.28000000],[1786164180000,19.40000000],[1786164480000,19.52000000],[1786164780000,19.62000000],[1786165080000,19.76000000],[1786165380000,19.74000000],[1786165680000,19.94000000],[1786165980000,20.18000000],[1786166280000,20.36000000],[1786166580000,20.54000000],[1786166880000,20.70000000],[1786167180000,20.88000000],[1786167480000,21.04000000],[1786167780000,21.16000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1786140000000,15.4],[1786140180000,15.3],[1786140480000,15.3],[1786140780000,15.3],[1786141080000,15.3],[1786141380000,15.3],[1786141680000,15.3],[1786141980000,15.3],[1786142280000,15.3],[1786142580000,15.2],[1786142880000,15.2],[1786143180000,15.1],[1786143480000,15.1],[1786143780000,15],[1786144080000,15],[1786144380000,15],[1786144680000,14.9],[1786144980000,14.9],[1786145280000,14.9],[1786145580000,14.9],[1786145880000,14.8],[1786146180000,14.8],[1786146480000,14.8],[1786146780000,14.8],[1786147080000,14.8],[1786147380000,14.9],[1786147680000,14.9],[1786147980000,14.9],[1786148280000,14.9],[1786148580000,14.9],[1786148880000,14.8],[1786149180000,14.8],[1786149480000,14.7],[1786149780000,14.6],[1786150080000,14.6],[1786150380000,14.5],[1786150680000,14.5],[1786150980000,14.5],[1786151280000,14.5],[1786151580000,14.4],[1786151880000,14.4],[1786152180000,14.4],[1786152480000,14.4],[1786152780000,14.3],[1786153080000,14.3],[1786153380000,14.2],[1786153680000,14.2],[1786153980000,14.1],[1786154280000,14.1],[1786154580000,14],[1786154880000,13.9],[1786155180000,13.8],[1786155480000,13.8],[1786155780000,13.8],[1786156080000,13.7],[1786156380000,13.6],[1786156680000,13.6],[1786156980000,13.5],[1786157280000,13.4],[1786157580000,13.4],[1786157880000,13.4],[1786158180000,13.4],[1786158480000,13.5],[1786158780000,13.5],[1786159080000,13.5],[1786159380000,13.5],[1786159680000,13.5],[1786159980000,13.6],[1786160280000,13.6],[1786160580000,13.6],[1786160880000,13.7],[1786161180000,13.7],[1786161480000,13.8],[1786161780000,13.9],[1786162080000,13.9],[1786162380000,14],[1786162680000,14],[1786162980000,14.1],[1786163280000,14],[1786163580000,14],[1786163880000,14],[1786164180000,14],[1786164480000,14],[1786164780000,14],[1786165080000,14],[1786165380000,13.9],[1786165680000,13.9],[1786165980000,14.1],[1786166280000,14],[1786166580000,14],[1786166880000,13.9],[1786167180000,13.7],[1786167480000,13.7],[1786167780000,13.6],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { var dataset = [{label: "5 cm nad povrchom (\u00b0C)", data: [[1786140000000,18.73333333],[1786140180000,18.84000000],[1786140480000,18.74000000],[1786140780000,18.74000000],[1786141080000,18.78000000],[1786141380000,18.72000000],[1786141680000,18.62000000],[1786141980000,18.68000000],[1786142280000,18.72000000],[1786142580000,18.66000000],[1786142880000,18.64000000],[1786143180000,18.44000000],[1786143480000,18.38000000],[1786143780000,18.34000000],[1786144080000,18.26000000],[1786144380000,18.32000000],[1786144680000,18.24000000],[1786144980000,18.24000000],[1786145280000,18.30000000],[1786145580000,18.26000000],[1786145880000,18.16000000],[1786146180000,18.12000000],[1786146480000,18.10000000],[1786146780000,18.34000000],[1786147080000,18.38000000],[1786147380000,18.52000000],[1786147680000,18.52000000],[1786147980000,18.58000000],[1786148280000,18.52000000],[1786148580000,18.34000000],[1786148880000,18.18000000],[1786149180000,18.04000000],[1786149480000,17.92000000],[1786149780000,17.86000000],[1786150080000,17.82000000],[1786150380000,17.60000000],[1786150680000,17.66000000],[1786150980000,17.68000000],[1786151280000,17.78000000],[1786151580000,17.62000000],[1786151880000,17.52000000],[1786152180000,17.52000000],[1786152480000,17.58000000],[1786152780000,17.42000000],[1786153080000,17.50000000],[1786153380000,17.32000000],[1786153680000,17.38000000],[1786153980000,17.20000000],[1786154280000,17.12000000],[1786154580000,17.06000000],[1786154880000,17.06000000],[1786155180000,17.10000000],[1786155480000,17.12000000],[1786155780000,17.04000000],[1786156080000,16.96000000],[1786156380000,16.90000000],[1786156680000,16.86000000],[1786156980000,16.76000000],[1786157280000,16.68000000],[1786157580000,16.76000000],[1786157880000,16.80000000],[1786158180000,16.78000000],[1786158480000,16.88000000],[1786158780000,16.76000000],[1786159080000,16.82000000],[1786159380000,16.78000000],[1786159680000,16.96000000],[1786159980000,17.10000000],[1786160280000,17.18000000],[1786160580000,17.26000000],[1786160880000,17.46000000],[1786161180000,17.76000000],[1786161480000,18.14000000],[1786161780000,18.54000000],[1786162080000,18.94000000],[1786162380000,19.56000000],[1786162680000,19.84000000],[1786162980000,20.12000000],[1786163280000,20.46000000],[1786163580000,20.74000000],[1786163880000,20.86000000],[1786164180000,21.22000000],[1786164480000,21.86000000],[1786164780000,22.06000000],[1786165080000,21.22000000],[1786165380000,21.40000000],[1786165680000,22.62000000],[1786165980000,23.34000000],[1786166280000,23.66000000],[1786166580000,23.72000000],[1786166880000,23.68000000],[1786167180000,23.56000000],[1786167480000,23.90000000],[1786167780000,23.90000000],], color: "#f39c12"}]; var options = { 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-ground-temperature-legend' } }; graphs['#chart-ground-temperature'] = $.plot('#chart-ground-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1786140000000,75.36666667],[1786140180000,75.26000000],[1786140480000,75.34000000],[1786140780000,75.36000000],[1786141080000,75.48000000],[1786141380000,75.62000000],[1786141680000,75.76000000],[1786141980000,75.74000000],[1786142280000,75.64000000],[1786142580000,75.56000000],[1786142880000,75.56000000],[1786143180000,75.56000000],[1786143480000,75.60000000],[1786143780000,75.50000000],[1786144080000,75.50000000],[1786144380000,75.38000000],[1786144680000,75.38000000],[1786144980000,75.32000000],[1786145280000,75.16000000],[1786145580000,75.22000000],[1786145880000,75.26000000],[1786146180000,75.18000000],[1786146480000,75.16000000],[1786146780000,75.04000000],[1786147080000,75.00000000],[1786147380000,74.92000000],[1786147680000,74.86000000],[1786147980000,74.88000000],[1786148280000,74.90000000],[1786148580000,75.04000000],[1786148880000,75.20000000],[1786149180000,75.34000000],[1786149480000,75.50000000],[1786149780000,75.64000000],[1786150080000,75.72000000],[1786150380000,75.78000000],[1786150680000,75.78000000],[1786150980000,75.82000000],[1786151280000,75.80000000],[1786151580000,75.96000000],[1786151880000,76.02000000],[1786152180000,76.10000000],[1786152480000,76.10000000],[1786152780000,76.20000000],[1786153080000,76.08000000],[1786153380000,76.14000000],[1786153680000,76.00000000],[1786153980000,76.08000000],[1786154280000,76.20000000],[1786154580000,76.16000000],[1786154880000,76.06000000],[1786155180000,75.86000000],[1786155480000,75.62000000],[1786155780000,75.46000000],[1786156080000,75.36000000],[1786156380000,75.28000000],[1786156680000,75.26000000],[1786156980000,75.38000000],[1786157280000,75.34000000],[1786157580000,75.26000000],[1786157880000,75.20000000],[1786158180000,75.20000000],[1786158480000,75.06000000],[1786158780000,75.22000000],[1786159080000,75.32000000],[1786159380000,75.40000000],[1786159680000,75.36000000],[1786159980000,75.30000000],[1786160280000,75.28000000],[1786160580000,75.26000000],[1786160880000,75.10000000],[1786161180000,75.04000000],[1786161480000,74.80000000],[1786161780000,74.62000000],[1786162080000,74.66000000],[1786162380000,74.20000000],[1786162680000,73.74000000],[1786162980000,73.32000000],[1786163280000,72.86000000],[1786163580000,71.98000000],[1786163880000,71.46000000],[1786164180000,70.90000000],[1786164480000,70.40000000],[1786164780000,69.96000000],[1786165080000,69.36000000],[1786165380000,69.16000000],[1786165680000,68.50000000],[1786165980000,68.00000000],[1786166280000,67.14000000],[1786166580000,66.46000000],[1786166880000,65.08000000],[1786167180000,63.68000000],[1786167480000,63.02000000],[1786167780000,62.30000000],], 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: 'Rýchlosť vetra (km/h)', data: [[1786140000000,13.079999988],[1786140180000,14.4],[1786140480000,12.6],[1786140780000,11.88],[1786141080000,12.6],[1786141380000,14.112],[1786141680000,12.168],[1786141980000,13.608],[1786142280000,13.68],[1786142580000,13.608],[1786142880000,12.384],[1786143180000,12.384],[1786143480000,12.096],[1786143780000,12.168],[1786144080000,12.528],[1786144380000,11.664],[1786144680000,11.952],[1786144980000,12.384],[1786145280000,13.104],[1786145580000,12.168],[1786145880000,11.88],[1786146180000,10.296],[1786146480000,11.088],[1786146780000,12.528],[1786147080000,13.248],[1786147380000,13.608],[1786147680000,13.536],[1786147980000,14.472],[1786148280000,14.904],[1786148580000,12.816],[1786148880000,13.32],[1786149180000,12.096],[1786149480000,12.6],[1786149780000,12.888],[1786150080000,10.8],[1786150380000,11.448],[1786150680000,10.008],[1786150980000,12.384],[1786151280000,13.176],[1786151580000,12.456],[1786151880000,12.6],[1786152180000,14.112],[1786152480000,14.04],[1786152780000,12.816],[1786153080000,13.032],[1786153380000,11.52],[1786153680000,13.248],[1786153980000,11.736],[1786154280000,10.8],[1786154580000,12.816],[1786154880000,12.384],[1786155180000,14.76],[1786155480000,12.672],[1786155780000,15.552],[1786156080000,13.464],[1786156380000,12.096],[1786156680000,13.104],[1786156980000,11.448],[1786157280000,12.024],[1786157580000,13.176],[1786157880000,12.672],[1786158180000,12.888],[1786158480000,12.168],[1786158780000,11.016],[1786159080000,12.888],[1786159380000,13.176],[1786159680000,13.608],[1786159980000,13.824],[1786160280000,14.472],[1786160580000,14.832],[1786160880000,12.96],[1786161180000,14.04],[1786161480000,15.768],[1786161780000,15.912],[1786162080000,12.888],[1786162380000,11.952],[1786162680000,13.608],[1786162980000,14.688],[1786163280000,14.256],[1786163580000,14.04],[1786163880000,16.2],[1786164180000,16.632],[1786164480000,15.984],[1786164780000,13.032],[1786165080000,14.112],[1786165380000,14.832],[1786165680000,14.904],[1786165980000,12.744],[1786166280000,14.472],[1786166580000,17.064],[1786166880000,14.472],[1786167180000,18.72],[1786167480000,18.288],[1786167780000,17.208],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1786140000000,19.559999988],[1786140180000,20.592],[1786140480000,18.864],[1786140780000,19.512],[1786141080000,19.728],[1786141380000,20.808],[1786141680000,18.36],[1786141980000,19.44],[1786142280000,19.872],[1786142580000,21.096],[1786142880000,18.792],[1786143180000,17.784],[1786143480000,18.288],[1786143780000,17.712],[1786144080000,18],[1786144380000,17.28],[1786144680000,16.56],[1786144980000,18],[1786145280000,18.864],[1786145580000,17.424],[1786145880000,19.584],[1786146180000,16.416],[1786146480000,15.84],[1786146780000,17.856],[1786147080000,19.8],[1786147380000,21.672],[1786147680000,20.808],[1786147980000,22.248],[1786148280000,22.608],[1786148580000,20.304],[1786148880000,20.88],[1786149180000,19.296],[1786149480000,19.728],[1786149780000,18.144],[1786150080000,16.344],[1786150380000,17.712],[1786150680000,15.984],[1786150980000,19.368],[1786151280000,19.656],[1786151580000,19.584],[1786151880000,19.296],[1786152180000,21.312],[1786152480000,19.368],[1786152780000,18.36],[1786153080000,21.168],[1786153380000,16.416],[1786153680000,18.576],[1786153980000,17.712],[1786154280000,16.056],[1786154580000,19.944],[1786154880000,18.504],[1786155180000,21.96],[1786155480000,20.592],[1786155780000,24.696],[1786156080000,20.664],[1786156380000,18.288],[1786156680000,17.568],[1786156980000,16.704],[1786157280000,18.432],[1786157580000,19.296],[1786157880000,19.224],[1786158180000,19.512],[1786158480000,18],[1786158780000,17.352],[1786159080000,18.792],[1786159380000,21.096],[1786159680000,18.72],[1786159980000,21.168],[1786160280000,20.448],[1786160580000,19.944],[1786160880000,18.792],[1786161180000,23.112],[1786161480000,23.04],[1786161780000,22.896],[1786162080000,20.232],[1786162380000,20.232],[1786162680000,21.456],[1786162980000,22.968],[1786163280000,20.88],[1786163580000,19.872],[1786163880000,22.248],[1786164180000,22.608],[1786164480000,23.544],[1786164780000,21.24],[1786165080000,20.664],[1786165380000,22.104],[1786165680000,21.888],[1786165980000,19.872],[1786166280000,24.264],[1786166580000,24.408],[1786166880000,23.256],[1786167180000,26.64],[1786167480000,25.704],[1786167780000,26.928],], 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: [[1786140000000,336.43333333],[1786140180000,332.12000000],[1786140480000,334.42000000],[1786140780000,332.82000000],[1786141080000,330.84000000],[1786141380000,337.58000000],[1786141680000,336.24000000],[1786141980000,336.80000000],[1786142280000,338.86000000],[1786142580000,333.08000000],[1786142880000,334.86000000],[1786143180000,333.80000000],[1786143480000,331.14000000],[1786143780000,331.34000000],[1786144080000,331.16000000],[1786144380000,332.50000000],[1786144680000,337.32000000],[1786144980000,333.66000000],[1786145280000,330.08000000],[1786145580000,332.12000000],[1786145880000,334.58000000],[1786146180000,335.42000000],[1786146480000,339.42000000],[1786146780000,338.50000000],[1786147080000,332.90000000],[1786147380000,330.62000000],[1786147680000,337.30000000],[1786147980000,334.86000000],[1786148280000,333.18000000],[1786148580000,336.06000000],[1786148880000,332.90000000],[1786149180000,333.10000000],[1786149480000,337.04000000],[1786149780000,334.00000000],[1786150080000,335.60000000],[1786150380000,331.40000000],[1786150680000,334.26000000],[1786150980000,334.76000000],[1786151280000,333.08000000],[1786151580000,327.72000000],[1786151880000,324.78000000],[1786152180000,327.42000000],[1786152480000,333.44000000],[1786152780000,329.38000000],[1786153080000,326.98000000],[1786153380000,330.94000000],[1786153680000,333.74000000],[1786153980000,333.96000000],[1786154280000,331.30000000],[1786154580000,334.96000000],[1786154880000,338.26000000],[1786155180000,338.86000000],[1786155480000,330.44000000],[1786155780000,330.60000000],[1786156080000,331.02000000],[1786156380000,336.94000000],[1786156680000,337.14000000],[1786156980000,333.44000000],[1786157280000,339.36000000],[1786157580000,332.84000000],[1786157880000,329.10000000],[1786158180000,336.68000000],[1786158480000,334.46000000],[1786158780000,332.36000000],[1786159080000,329.88000000],[1786159380000,334.10000000],[1786159680000,330.46000000],[1786159980000,331.16000000],[1786160280000,334.10000000],[1786160580000,329.38000000],[1786160880000,335.16000000],[1786161180000,328.18000000],[1786161480000,331.68000000],[1786161780000,336.76000000],[1786162080000,337.34000000],[1786162380000,335.56000000],[1786162680000,342.62000000],[1786162980000,340.72000000],[1786163280000,338.88000000],[1786163580000,336.00000000],[1786163880000,333.30000000],[1786164180000,327.50000000],[1786164480000,325.62000000],[1786164780000,330.18000000],[1786165080000,332.28000000],[1786165380000,331.74000000],[1786165680000,332.30000000],[1786165980000,333.30000000],[1786166280000,331.34000000],[1786166580000,336.14000000],[1786166880000,343.54000000],[1786167180000,340.72000000],[1786167480000,341.92000000],[1786167780000,348.70000000],], 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: 'Zrážky', data: [[1786140000000,0],[1786140180000,0],[1786140480000,0],[1786140780000,0],[1786141080000,0],[1786141380000,0],[1786141680000,0],[1786141980000,0.012],[1786142280000,0.012],[1786142580000,0.012],[1786142880000,0.012],[1786143180000,0.012],[1786143480000,0.012],[1786143780000,0.012],[1786144080000,0.012],[1786144380000,0.012],[1786144680000,0.012],[1786144980000,0.012],[1786145280000,0.012],[1786145580000,0.012],[1786145880000,0.012],[1786146180000,0.012],[1786146480000,0.012],[1786146780000,0.012],[1786147080000,0.012],[1786147380000,0.012],[1786147680000,0.012],[1786147980000,0.012],[1786148280000,0.012],[1786148580000,0.012],[1786148880000,0.012],[1786149180000,0.012],[1786149480000,0.012],[1786149780000,0.012],[1786150080000,0.012],[1786150380000,0.012],[1786150680000,0.012],[1786150980000,0.012],[1786151280000,0.012],[1786151580000,0.012],[1786151880000,0.012],[1786152180000,0.012],[1786152480000,0.012],[1786152780000,0.012],[1786153080000,0.012],[1786153380000,0.012],[1786153680000,0.012],[1786153980000,0.012],[1786154280000,0.012],[1786154580000,0.012],[1786154880000,0.012],[1786155180000,0.012],[1786155480000,0.012],[1786155780000,0.012],[1786156080000,0.012],[1786156380000,0.022],[1786156680000,0.022],[1786156980000,0.022],[1786157280000,0.022],[1786157580000,0.022],[1786157880000,0.022],[1786158180000,0.022],[1786158480000,0.022],[1786158780000,0.022],[1786159080000,0.022],[1786159380000,0.022],[1786159680000,0.022],[1786159980000,0.022],[1786160280000,0.022],[1786160580000,0.022],[1786160880000,0.022],[1786161180000,0.022],[1786161480000,0.022],[1786161780000,0.022],[1786162080000,0.022],[1786162380000,0.022],[1786162680000,0.022],[1786162980000,0.022],[1786163280000,0.022],[1786163580000,0.022],[1786163880000,0.022],[1786164180000,0.022],[1786164480000,0.022],[1786164780000,0.022],[1786165080000,0.022],[1786165380000,0.022],[1786165680000,0.022],[1786165980000,0.022],[1786166280000,0.022],[1786166580000,0.022],[1786166880000,0.022],[1786167180000,0.022],[1786167480000,0.022],[1786167780000,0.022],], 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; }