var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1754863227000,22.20000000],[1754863707000,21.98000000],[1754864428000,21.75000000],[1754864553000,21.80000000],[1754865147000,21.80000000],[1754865178000,21.95714286],[1754865867000,21.80000000],[1754866074000,21.83333333],[1754866587000,21.80000000],[1754866651000,21.65714286],[1754867307000,21.60000000],[1754868029000,21.50000000],[1754868202000,21.50000000],[1754868747000,21.20000000],[1754868778000,21.11428571],[1754869470000,20.90000000],[1754870188000,20.80000000],[1754870250000,20.70000000],[1754870907000,20.55714286],[1754871178000,20.40000000],[1754871637000,20.30000000],[1754871802000,20.20000000],[1754872347000,20.10000000],[1754872378000,20.10000000],[1754873067000,19.86666667],[1754873275000,19.80000000],[1754873791000,19.40000000],[1754873851000,19.33333333],[1754874507000,18.85714286],[1754874778000,18.60000000],[1754875229000,18.80000000],[1754875466000,19.30000000],[1754875948000,19.70000000],[1754876667000,19.22000000],[1754876874000,19.00000000],[1754877387000,19.10000000],[1754877450000,19.18000000],[1754878107000,18.94000000],[1754878378000,19.00000000],[1754878832000,19.13333333],[1754879002000,19.00000000],[1754879547000,19.00000000],[1754879578000,18.90000000],[1754880267000,19.00000000],[1754880490000,19.00000000],[1754880987000,19.00000000],[1754881051000,18.96666667],[1754881707000,18.92857143],[1754881978000,19.00000000],[1754882429000,18.80000000],[1754882570000,18.73333333],[1754883275000,18.60000000],[1754883450000,18.60000000],[1754883992000,17.45000000],[1754884074000,17.18000000],[1754884712000,16.80000000],[1754885002000,16.70000000],[1754885438000,17.75000000],[1754885578000,17.67500000],[1754886155000,17.52857143],[1754886880000,17.66666667],[1754887050000,18.00000000],[1754887612000,18.30000000],[1754887675000,18.41666667],[1754888331000,18.90000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1754863227000,14.8],[1754863707000,14.8],[1754864428000,14.6],[1754864553000,14.7],[1754865147000,14.7],[1754865178000,14.7],[1754865867000,14.7],[1754866074000,14.6],[1754866587000,14.7],[1754866651000,14.7],[1754867307000,14.5],[1754868029000,14.4],[1754868202000,14.4],[1754868747000,14.3],[1754868778000,14.3],[1754869470000,14],[1754870188000,14.2],[1754870250000,14.1],[1754870907000,13.9],[1754871178000,13.8],[1754871637000,13.9],[1754871802000,13.7],[1754872347000,13.7],[1754872378000,13.7],[1754873067000,13.7],[1754873275000,13.5],[1754873791000,13.5],[1754873851000,13.5],[1754874507000,13.5],[1754874778000,13.2],[1754875229000,12.9],[1754875466000,13],[1754875948000,12.9],[1754876667000,13],[1754876874000,12.7],[1754877387000,12.4],[1754877450000,12.5],[1754878107000,12.4],[1754878378000,12.2],[1754878832000,12.3],[1754879002000,12.2],[1754879547000,12.2],[1754879578000,12],[1754880267000,11.8],[1754880490000,11.5],[1754880987000,11.8],[1754881051000,11.7],[1754881707000,11.3],[1754881978000,11.3],[1754882429000,11.3],[1754882570000,11.3],[1754883275000,11],[1754883450000,11.1],[1754883992000,11.4],[1754884074000,11.4],[1754884712000,11.3],[1754885002000,11.2],[1754885438000,11.2],[1754885578000,11.2],[1754886155000,11.1],[1754886880000,11],[1754887050000,11.3],[1754887612000,11.8],[1754887675000,11.9],[1754888331000,11.9],], 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: [[1754863227000,63.00000000],[1754863707000,64.00000000],[1754864428000,64.00000000],[1754864553000,64.00000000],[1754865147000,64.00000000],[1754865178000,63.42857143],[1754865867000,64.00000000],[1754866074000,63.66666667],[1754866587000,64.00000000],[1754866651000,64.71428571],[1754867307000,64.00000000],[1754868029000,64.00000000],[1754868202000,64.00000000],[1754868747000,65.00000000],[1754868778000,65.28571429],[1754869470000,65.00000000],[1754870188000,66.00000000],[1754870250000,66.00000000],[1754870907000,65.85714286],[1754871178000,66.00000000],[1754871637000,67.00000000],[1754871802000,66.25000000],[1754872347000,67.00000000],[1754872378000,67.00000000],[1754873067000,67.66666667],[1754873275000,67.00000000],[1754873791000,69.00000000],[1754873851000,69.00000000],[1754874507000,71.00000000],[1754874778000,71.00000000],[1754875229000,68.66666667],[1754875466000,67.00000000],[1754875948000,65.00000000],[1754876667000,67.20000000],[1754876874000,67.00000000],[1754877387000,65.50000000],[1754877450000,65.20000000],[1754878107000,65.80000000],[1754878378000,65.00000000],[1754878832000,64.66666667],[1754879002000,65.00000000],[1754879547000,65.00000000],[1754879578000,64.28571429],[1754880267000,63.00000000],[1754880490000,62.00000000],[1754880987000,63.00000000],[1754881051000,62.83333333],[1754881707000,61.57142857],[1754881978000,61.00000000],[1754882429000,62.00000000],[1754882570000,62.00000000],[1754883275000,61.40000000],[1754883450000,62.00000000],[1754883992000,68.00000000],[1754884074000,69.20000000],[1754884712000,70.14285714],[1754885002000,70.00000000],[1754885438000,65.50000000],[1754885578000,66.00000000],[1754886155000,66.00000000],[1754886880000,65.33333333],[1754887050000,65.00000000],[1754887612000,66.00000000],[1754887675000,65.83333333],[1754888331000,64.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: [[1754863227000,1022.6],[1754863707000,1022.8],[1754864428000,1022.9],[1754864553000,1023],[1754865147000,1023.1],[1754865178000,1022.9],[1754865867000,1023],[1754866074000,1023.1],[1754866587000,1023],[1754866651000,1023.1],[1754867307000,1023.1],[1754868029000,1023.2],[1754868202000,1023.2],[1754868747000,1023.2],[1754868778000,1023.3],[1754869470000,1023.3],[1754870188000,1023.2],[1754870250000,1023.4],[1754870907000,1023.4],[1754871178000,1023.5],[1754871637000,1023.5],[1754871802000,1023.6],[1754872347000,1023.5],[1754872378000,1023.6],[1754873067000,1023.6],[1754873275000,1023.8],[1754873791000,1023.7],[1754873851000,1023.8],[1754874507000,1023.8],[1754874778000,1024.2],[1754875229000,1023.8],[1754875466000,1023.7],[1754875948000,1023.8],[1754876667000,1023.8],[1754876874000,1023.9],[1754877387000,1023.9],[1754877450000,1023.9],[1754878107000,1023.9],[1754878378000,1023.9],[1754878832000,1023.9],[1754879002000,1023.9],[1754879547000,1024],[1754879578000,1023.9],[1754880267000,1023.7],[1754880490000,1023.9],[1754880987000,1023.8],[1754881051000,1023.9],[1754881707000,1023.7],[1754881978000,1023.8],[1754882429000,1024],[1754882570000,1024],[1754883275000,1024.2],[1754883450000,1024.3],[1754883992000,1024.4],[1754884074000,1024.5],[1754884712000,1024.5],[1754885002000,1024.5],[1754885438000,1024.5],[1754885578000,1024.5],[1754886155000,1024.4],[1754886880000,1024.5],[1754887050000,1024.6],[1754887612000,1024.3],[1754887675000,1024.3],[1754888331000,1024.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: [[1754863227000,3.24],[1754863707000,1.368],[1754864428000,3.96],[1754864553000,3.78],[1754865147000,5.76],[1754865178000,3.445714296],[1754865867000,2.232],[1754866074000,2.88],[1754866587000,3.42],[1754866651000,2.468571444],[1754867307000,4.104],[1754868029000,4.920000012],[1754868202000,5.4],[1754868747000,3.96],[1754868778000,4.782857148],[1754869470000,2.88],[1754870188000,5.04],[1754870250000,4.799999988],[1754870907000,3.805714296],[1754871178000,2.52],[1754871637000,3.6],[1754871802000,3.78],[1754872347000,5.76],[1754872378000,3.06],[1754873067000,3.480000012],[1754873275000,2.88],[1754873791000,0],[1754873851000,0.479999988],[1754874507000,0],[1754874778000,0],[1754875229000,4.920000012],[1754875466000,5.76],[1754875948000,5.04],[1754876667000,2.52],[1754876874000,3.359999988],[1754877387000,1.62],[1754877450000,1.656],[1754878107000,3.384],[1754878378000,3.96],[1754878832000,3.840000012],[1754879002000,5.04],[1754879547000,2.52],[1754879578000,6.325714296],[1754880267000,7.56],[1754880490000,9.18],[1754880987000,8.1],[1754881051000,9.240000012],[1754881707000,9.771428556],[1754881978000,11.52],[1754882429000,9],[1754882570000,7.080000012],[1754883275000,5.04],[1754883450000,4.200000012],[1754883992000,0],[1754884074000,2.016],[1754884712000,2.262857148],[1754885002000,2.52],[1754885438000,0.18],[1754885578000,1.71],[1754886155000,0.822857148],[1754886880000,1.919999988],[1754887050000,2.52],[1754887612000,1.44],[1754887675000,2.040000012],[1754888331000,2.34],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1754863227000,3.78],[1754863707000,2.016],[1754864428000,5.04],[1754864553000,5.04],[1754865147000,7.56],[1754865178000,4.32],[1754865867000,3.528],[1754866074000,6.84],[1754866587000,5.04],[1754866651000,2.88],[1754867307000,5.04],[1754868029000,5.879999988],[1754868202000,7.56],[1754868747000,5.04],[1754868778000,6.12],[1754869470000,5.04],[1754870188000,7.56],[1754870250000,6.720000012],[1754870907000,5.4],[1754871178000,2.52],[1754871637000,5.04],[1754871802000,5.04],[1754872347000,7.56],[1754872378000,4.619999988],[1754873067000,5.04],[1754873275000,4.200000012],[1754873791000,0],[1754873851000,0.839999988],[1754874507000,0],[1754874778000,0],[1754875229000,8.520000012],[1754875466000,7.56],[1754875948000,7.56],[1754876667000,4.536],[1754876874000,4.200000012],[1754877387000,2.52],[1754877450000,2.52],[1754878107000,4.608],[1754878378000,5.04],[1754878832000,5.879999988],[1754879002000,6.93],[1754879547000,2.52],[1754879578000,8.691428556],[1754880267000,10.320000012],[1754880490000,11.52],[1754880987000,10.08],[1754881051000,10.98],[1754881707000,11.725714296],[1754881978000,12.96],[1754882429000,12.96],[1754882570000,10.199999988],[1754883275000,6.552],[1754883450000,5.879999988],[1754883992000,0],[1754884074000,3.024],[1754884712000,3.24],[1754885002000,2.52],[1754885438000,1.26],[1754885578000,3.15],[1754886155000,1.08],[1754886880000,3.359999988],[1754887050000,4.200000012],[1754887612000,2.52],[1754887675000,2.940000012],[1754888331000,5.04],], 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: [[1754863227000,346.00000000],[1754863707000,210.80000000],[1754864428000,353.50000000],[1754864553000,93.00000000],[1754865147000,16.00000000],[1754865178000,270.14285714],[1754865867000,120.20000000],[1754866074000,37.33333333],[1754866587000,168.50000000],[1754866651000,200.85714286],[1754867307000,93.60000000],[1754868029000,25.33333333],[1754868202000,178.50000000],[1754868747000,15.00000000],[1754868778000,108.57142857],[1754869470000,349.00000000],[1754870188000,344.00000000],[1754870250000,128.33333333],[1754870907000,158.42857143],[1754871178000,338.00000000],[1754871637000,326.66666667],[1754871802000,90.25000000],[1754872347000,16.00000000],[1754872378000,346.33333333],[1754873067000,330.00000000],[1754873275000,221.00000000],[1754873791000,325.00000000],[1754873851000,319.50000000],[1754874507000,297.57142857],[1754874778000,310.00000000],[1754875229000,218.66666667],[1754875466000,346.00000000],[1754875948000,17.00000000],[1754876667000,169.40000000],[1754876874000,246.66666667],[1754877387000,184.00000000],[1754877450000,269.80000000],[1754878107000,264.80000000],[1754878378000,62.00000000],[1754878832000,119.33333333],[1754879002000,98.75000000],[1754879547000,345.00000000],[1754879578000,107.28571429],[1754880267000,118.66666667],[1754880490000,180.00000000],[1754880987000,185.50000000],[1754881051000,180.00000000],[1754881707000,163.57142857],[1754881978000,335.00000000],[1754882429000,353.00000000],[1754882570000,238.33333333],[1754883275000,237.20000000],[1754883450000,213.33333333],[1754883992000,305.50000000],[1754884074000,320.40000000],[1754884712000,224.14285714],[1754885002000,272.00000000],[1754885438000,177.00000000],[1754885578000,299.50000000],[1754886155000,292.71428571],[1754886880000,190.00000000],[1754887050000,158.66666667],[1754887612000,342.00000000],[1754887675000,218.00000000],[1754888331000,208.50000000],], color: '#002f80', points: { show: true }, lines: { show: false }, } ]; var options = { xaxes: [{ axisLabel: 'wind_direction', }], xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, yaxis: { min: 0, max: 360, ticks: [[0, 'S'], [90, 'V'], [180, 'J'], [270, 'Z'], [360, 'S']] }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: function(label, xval, yval, flotItem) { dir = meteo_wind_direction_name(yval); format_date = moment(xval).format('DD.MM., hh:mm') return format_date+' - '+dir; } }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-wind-direction-legend' } }; graphs['#chart-wind-direction'] = $.plot('#chart-wind-direction', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Slnečné žiarenie (W/m2)', data: [[1754863227000,0.00000000],[1754863707000,0.00000000],[1754864428000,0.00000000],[1754864553000,0.00000000],[1754865147000,0.00000000],[1754865178000,0.00000000],[1754865867000,0.00000000],[1754866074000,0.00000000],[1754866587000,0.00000000],[1754866651000,0.00000000],[1754867307000,0.00000000],[1754868029000,0.00000000],[1754868202000,0.00000000],[1754868747000,0.00000000],[1754868778000,0.00000000],[1754869470000,0.00000000],[1754870188000,0.00000000],[1754870250000,0.00000000],[1754870907000,0.00000000],[1754871178000,0.00000000],[1754871637000,0.00000000],[1754871802000,0.00000000],[1754872347000,0.00000000],[1754872378000,0.00000000],[1754873067000,0.00000000],[1754873275000,0.00000000],[1754873791000,0.00000000],[1754873851000,0.00000000],[1754874507000,0.00000000],[1754874778000,0.00000000],[1754875229000,0.00000000],[1754875466000,0.00000000],[1754875948000,0.00000000],[1754876667000,0.00000000],[1754876874000,0.00000000],[1754877387000,0.00000000],[1754877450000,0.00000000],[1754878107000,0.00000000],[1754878378000,0.00000000],[1754878832000,0.00000000],[1754879002000,0.00000000],[1754879547000,0.00000000],[1754879578000,0.00000000],[1754880267000,0.00000000],[1754880490000,0.00000000],[1754880987000,0.00000000],[1754881051000,0.00000000],[1754881707000,0.00000000],[1754881978000,0.00000000],[1754882429000,1.00000000],[1754882570000,1.33333333],[1754883275000,3.80000000],[1754883450000,4.33333333],[1754883992000,7.50000000],[1754884074000,9.00000000],[1754884712000,13.71428571],[1754885002000,15.00000000],[1754885438000,22.50000000],[1754885578000,20.25000000],[1754886155000,24.00000000],[1754886880000,27.66666667],[1754887050000,28.33333333],[1754887612000,31.00000000],[1754887675000,31.33333333],[1754888331000,34.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: [[1754863227000,0.00000000],[1754863707000,0.00000000],[1754864428000,0.00000000],[1754864553000,0.00000000],[1754865147000,0.00000000],[1754865178000,0.00000000],[1754865867000,0.00000000],[1754866074000,0.00000000],[1754866587000,0.00000000],[1754866651000,0.00000000],[1754867307000,0.00000000],[1754868029000,0.00000000],[1754868202000,0.00000000],[1754868747000,0.00000000],[1754868778000,0.00000000],[1754869470000,0.00000000],[1754870188000,0.00000000],[1754870250000,0.00000000],[1754870907000,0.00000000],[1754871178000,0.00000000],[1754871637000,0.00000000],[1754871802000,0.00000000],[1754872347000,0.00000000],[1754872378000,0.00000000],[1754873067000,0.00000000],[1754873275000,0.00000000],[1754873791000,0.00000000],[1754873851000,0.00000000],[1754874507000,0.00000000],[1754874778000,0.00000000],[1754875229000,0.00000000],[1754875466000,0.00000000],[1754875948000,0.00000000],[1754876667000,0.00000000],[1754876874000,0.00000000],[1754877387000,0.00000000],[1754877450000,0.00000000],[1754878107000,0.00000000],[1754878378000,0.00000000],[1754878832000,0.00000000],[1754879002000,0.00000000],[1754879547000,0.00000000],[1754879578000,0.00000000],[1754880267000,0.00000000],[1754880490000,0.00000000],[1754880987000,0.00000000],[1754881051000,0.00000000],[1754881707000,0.00000000],[1754881978000,0.00000000],[1754882429000,0.00000000],[1754882570000,0.00000000],[1754883275000,0.00000000],[1754883450000,0.00000000],[1754883992000,0.00000000],[1754884074000,0.00000000],[1754884712000,0.00000000],[1754885002000,0.00000000],[1754885438000,0.00000000],[1754885578000,0.00000000],[1754886155000,0.00000000],[1754886880000,0.00000000],[1754887050000,0.00000000],[1754887612000,0.00000000],[1754887675000,0.00000000],[1754888331000,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: [[1754863227000,0.00000000],[1754863707000,0.00000000],[1754864428000,0.00000000],[1754864553000,0.00000000],[1754865147000,0.00000000],[1754865178000,0.00000000],[1754865867000,0.00000000],[1754866074000,0.00000000],[1754866587000,0.00000000],[1754866651000,0.00000000],[1754867307000,0.00000000],[1754868029000,0.00000000],[1754868202000,0.00000000],[1754868747000,0.00000000],[1754868778000,0.00000000],[1754869470000,0.00000000],[1754870188000,0.00000000],[1754870250000,0.00000000],[1754870907000,0.00000000],[1754871178000,0.00000000],[1754871637000,0.00000000],[1754871802000,0.00000000],[1754872347000,0.00000000],[1754872378000,0.00000000],[1754873067000,0.00000000],[1754873275000,0.00000000],[1754873791000,0.00000000],[1754873851000,0.00000000],[1754874507000,0.00000000],[1754874778000,0.00000000],[1754875229000,0.00000000],[1754875466000,0.00000000],[1754875948000,0.00000000],[1754876667000,0.00000000],[1754876874000,0.00000000],[1754877387000,0.00000000],[1754877450000,0.00000000],[1754878107000,0.00000000],[1754878378000,0.00000000],[1754878832000,0.00000000],[1754879002000,0.00000000],[1754879547000,0.00000000],[1754879578000,0.00000000],[1754880267000,0.00000000],[1754880490000,0.00000000],[1754880987000,0.00000000],[1754881051000,0.00000000],[1754881707000,0.00000000],[1754881978000,0.00000000],[1754882429000,0.00000000],[1754882570000,0.00000000],[1754883275000,0.00000000],[1754883450000,0.00000000],[1754883992000,0.00000000],[1754884074000,0.00000000],[1754884712000,0.00000000],[1754885002000,0.00000000],[1754885438000,0.00000000],[1754885578000,0.00000000],[1754886155000,0.00000000],[1754886880000,0.00000000],[1754887050000,0.00000000],[1754887612000,0.00000000],[1754887675000,0.00000000],[1754888331000,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; }