var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1766530893000,3.80000000],[1766530979000,3.80000000],[1766531251000,3.80000000],[1766531811000,3.80000000],[1766531875000,3.90000000],[1766532195000,3.90000000],[1766532451000,4.00000000],[1766532772000,4.00000000],[1766533092000,3.92000000],[1766533380000,3.90000000],[1766533651000,3.88750000],[1766533954000,3.80000000],[1766534292000,3.74000000],[1766534595000,3.70000000],[1766534948000,3.62500000],[1766535204000,3.60000000],[1766535476000,3.52857143],[1766535779000,3.50000000],[1766536051000,3.57500000],[1766536403000,3.60000000],[1766536676000,3.60000000],[1766537012000,3.60000000],[1766537252000,3.60000000],[1766537571000,3.60000000],[1766537876000,3.60000000],[1766538179000,3.60000000],[1766538451000,3.51250000],[1766538771000,3.50000000],[1766539075000,3.50000000],[1766539380000,3.50000000],[1766539667000,3.50000000],[1766540003000,3.40000000],[1766540252000,3.40000000],[1766540579000,3.40000000],[1766540851000,3.40000000],[1766541203000,3.40000000],[1766541508000,3.40000000],[1766541779000,3.40000000],[1766542051000,3.40000000],[1766542371000,3.45000000],[1766542691000,3.50000000],[1766543011000,3.50000000],[1766543252000,3.42500000],[1766543603000,3.50000000],[1766543875000,3.45000000],[1766544179000,3.40000000],[1766544451000,3.40000000],[1766544803000,3.32857143],[1766545075000,3.30000000],[1766545379000,3.20000000],[1766545651000,3.15000000],[1766546004000,3.10000000],[1766546275000,3.02500000],[1766546580000,3.10000000],[1766546852000,3.10000000],[1766547324000,3.03333333],[1766547507000,3.05714286],[1766547779000,3.08333333],[1766548052000,3.00000000],[1766548403000,3.00000000],[1766548676000,3.02500000],[1766548979000,3.10000000],[1766549251000,3.10000000],[1766549603000,3.10000000],[1766549875000,3.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1766530893000,2.6],[1766530979000,2.6],[1766531251000,2.6],[1766531811000,2.6],[1766531875000,2.8],[1766532195000,2.7],[1766532451000,2.8],[1766532772000,2.8],[1766533092000,2.8],[1766533380000,2.9],[1766533651000,2.9],[1766533954000,2.9],[1766534292000,3],[1766534595000,3],[1766534948000,3],[1766535204000,3],[1766535476000,2.9],[1766535779000,2.9],[1766536051000,3],[1766536403000,3],[1766536676000,3],[1766537012000,3],[1766537252000,3],[1766537571000,3],[1766537876000,3],[1766538179000,3],[1766538451000,3],[1766538771000,3.1],[1766539075000,2.9],[1766539380000,2.9],[1766539667000,3],[1766540003000,3],[1766540252000,3],[1766540579000,3],[1766540851000,2.9],[1766541203000,2.8],[1766541508000,2.8],[1766541779000,2.7],[1766542051000,2.6],[1766542371000,2.6],[1766542691000,2.5],[1766543011000,2.5],[1766543252000,2.5],[1766543603000,2.4],[1766543875000,2.4],[1766544179000,2.5],[1766544451000,2.5],[1766544803000,2.4],[1766545075000,2.4],[1766545379000,2.5],[1766545651000,2.4],[1766546004000,2.4],[1766546275000,2.3],[1766546580000,2.4],[1766546852000,2.4],[1766547324000,2.3],[1766547507000,2.3],[1766547779000,2.3],[1766548052000,2.1],[1766548403000,2.1],[1766548676000,2.1],[1766548979000,2.1],[1766549251000,2.1],[1766549603000,2.1],[1766549875000,2.1],], 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: [[1766530893000,92.00000000],[1766530979000,92.00000000],[1766531251000,92.28571429],[1766531811000,92.00000000],[1766531875000,92.33333333],[1766532195000,92.00000000],[1766532451000,92.00000000],[1766532772000,92.00000000],[1766533092000,92.80000000],[1766533380000,93.00000000],[1766533651000,93.62500000],[1766533954000,94.16666667],[1766534292000,95.00000000],[1766534595000,95.00000000],[1766534948000,95.75000000],[1766535204000,96.00000000],[1766535476000,96.00000000],[1766535779000,96.00000000],[1766536051000,96.00000000],[1766536403000,96.00000000],[1766536676000,96.00000000],[1766537012000,96.00000000],[1766537252000,96.00000000],[1766537571000,96.00000000],[1766537876000,96.00000000],[1766538179000,96.00000000],[1766538451000,96.37500000],[1766538771000,97.00000000],[1766539075000,96.00000000],[1766539380000,96.00000000],[1766539667000,96.33333333],[1766540003000,97.00000000],[1766540252000,97.00000000],[1766540579000,97.00000000],[1766540851000,96.28571429],[1766541203000,96.00000000],[1766541508000,95.85714286],[1766541779000,95.00000000],[1766542051000,94.66666667],[1766542371000,94.00000000],[1766542691000,93.40000000],[1766543011000,93.16666667],[1766543252000,93.75000000],[1766543603000,92.85714286],[1766543875000,93.12500000],[1766544179000,93.85714286],[1766544451000,94.00000000],[1766544803000,94.00000000],[1766545075000,94.00000000],[1766545379000,95.00000000],[1766545651000,95.00000000],[1766546004000,95.00000000],[1766546275000,95.00000000],[1766546580000,95.00000000],[1766546852000,95.00000000],[1766547324000,95.00000000],[1766547507000,95.00000000],[1766547779000,94.83333333],[1766548052000,94.00000000],[1766548403000,94.00000000],[1766548676000,93.75000000],[1766548979000,93.00000000],[1766549251000,93.00000000],[1766549603000,93.00000000],[1766549875000,93.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: [[1766530893000,1020.5],[1766530979000,1020.6],[1766531251000,1020.6],[1766531811000,1020.3],[1766531875000,1020.4],[1766532195000,1020.4],[1766532451000,1020.6],[1766532772000,1020.4],[1766533092000,1020.5],[1766533380000,1020.6],[1766533651000,1020.5],[1766533954000,1020.6],[1766534292000,1020.7],[1766534595000,1020.6],[1766534948000,1020.5],[1766535204000,1020.6],[1766535476000,1020.6],[1766535779000,1020.7],[1766536051000,1020.7],[1766536403000,1020.7],[1766536676000,1020.8],[1766537012000,1020.8],[1766537252000,1020.8],[1766537571000,1020.7],[1766537876000,1020.6],[1766538179000,1020.7],[1766538451000,1020.9],[1766538771000,1020.8],[1766539075000,1020.8],[1766539380000,1020.9],[1766539667000,1020.9],[1766540003000,1020.9],[1766540252000,1021],[1766540579000,1020.9],[1766540851000,1020.9],[1766541203000,1020.9],[1766541508000,1020.8],[1766541779000,1020.8],[1766542051000,1020.8],[1766542371000,1020.8],[1766542691000,1020.8],[1766543011000,1020.8],[1766543252000,1020.8],[1766543603000,1020.9],[1766543875000,1020.9],[1766544179000,1020.9],[1766544451000,1020.9],[1766544803000,1020.9],[1766545075000,1020.9],[1766545379000,1020.8],[1766545651000,1020.9],[1766546004000,1020.9],[1766546275000,1021],[1766546580000,1020.9],[1766546852000,1021],[1766547324000,1020.8],[1766547507000,1020.8],[1766547779000,1020.9],[1766548052000,1020.8],[1766548403000,1020.9],[1766548676000,1020.8],[1766548979000,1020.7],[1766549251000,1020.7],[1766549603000,1020.8],[1766549875000,1020.8],], 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: [[1766530893000,2.52],[1766530979000,2.565],[1766531251000,0.771428556],[1766531811000,2.16],[1766531875000,3.6],[1766532195000,2.97],[1766532451000,1.44],[1766532772000,4.14],[1766533092000,3.744],[1766533380000,3.359999988],[1766533651000,3.285],[1766533954000,3.719999988],[1766534292000,3.528],[1766534595000,2.088],[1766534948000,1.26],[1766535204000,0.99],[1766535476000,1.542857148],[1766535779000,3.137142852],[1766536051000,3.33],[1766536403000,3.137142852],[1766536676000,3.291428556],[1766537012000,2.674285704],[1766537252000,3.33],[1766537571000,3.96],[1766537876000,3.857142852],[1766538179000,3.87],[1766538451000,2.34],[1766538771000,4.114285704],[1766539075000,3.69],[1766539380000,2.580000012],[1766539667000,2.16],[1766540003000,2.808],[1766540252000,1.500000012],[1766540579000,1.8],[1766540851000,2.057142852],[1766541203000,2.61],[1766541508000,2.417142852],[1766541779000,4.988571444],[1766542051000,3.24],[1766542371000,4.920000012],[1766542691000,3.024],[1766543011000,3.359999988],[1766543252000,4.365],[1766543603000,3.805714296],[1766543875000,2.7],[1766544179000,5.091428556],[1766544451000,3.825],[1766544803000,4.268571444],[1766545075000,2.97],[1766545379000,2.571428556],[1766545651000,3.06],[1766546004000,3.96],[1766546275000,5.04],[1766546580000,4.560000012],[1766546852000,3.06],[1766547324000,3.719999988],[1766547507000,5.708571444],[1766547779000,3.06],[1766548052000,3.555],[1766548403000,2.88],[1766548676000,4.815],[1766548979000,4.988571444],[1766549251000,6.21],[1766549603000,4.937142852],[1766549875000,2.88],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1766530893000,3.78],[1766530979000,3.465],[1766531251000,1.44],[1766531811000,2.52],[1766531875000,5.04],[1766532195000,5.04],[1766532451000,2.52],[1766532772000,6.3],[1766533092000,5.544],[1766533380000,5.04],[1766533651000,5.04],[1766533954000,5.04],[1766534292000,5.544],[1766534595000,3.024],[1766534948000,1.89],[1766535204000,1.575],[1766535476000,3.24],[1766535779000,5.04],[1766536051000,4.41],[1766536403000,5.04],[1766536676000,5.04],[1766537012000,4.32],[1766537252000,4.725],[1766537571000,5.355],[1766537876000,5.04],[1766538179000,5.04],[1766538451000,3.78],[1766538771000,6.12],[1766539075000,5.04],[1766539380000,3.78],[1766539667000,3.359999988],[1766540003000,4.536],[1766540252000,2.099999988],[1766540579000,2.940000012],[1766540851000,3.6],[1766541203000,3.15],[1766541508000,2.88],[1766541779000,6.84],[1766542051000,5.04],[1766542371000,6.3],[1766542691000,5.04],[1766543011000,5.460000012],[1766543252000,6.705],[1766543603000,5.4],[1766543875000,4.41],[1766544179000,7.2],[1766544451000,5.355],[1766544803000,5.76],[1766545075000,4.725],[1766545379000,3.24],[1766545651000,5.04],[1766546004000,5.76],[1766546275000,7.605],[1766546580000,7.139999988],[1766546852000,6.3],[1766547324000,5.04],[1766547507000,7.971428556],[1766547779000,4.200000012],[1766548052000,4.725],[1766548403000,4.200000012],[1766548676000,7.245],[1766548979000,6.84],[1766549251000,8.595],[1766549603000,6.84],[1766549875000,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: [[1766530893000,340.00000000],[1766530979000,264.25000000],[1766531251000,293.71428571],[1766531811000,25.00000000],[1766531875000,160.33333333],[1766532195000,114.25000000],[1766532451000,32.50000000],[1766532772000,99.83333333],[1766533092000,99.00000000],[1766533380000,104.66666667],[1766533651000,120.75000000],[1766533954000,110.00000000],[1766534292000,179.20000000],[1766534595000,221.00000000],[1766534948000,175.25000000],[1766535204000,334.87500000],[1766535476000,197.00000000],[1766535779000,129.57142857],[1766536051000,187.12500000],[1766536403000,31.14285714],[1766536676000,210.71428571],[1766537012000,175.85714286],[1766537252000,106.87500000],[1766537571000,98.00000000],[1766537876000,78.28571429],[1766538179000,133.00000000],[1766538451000,192.87500000],[1766538771000,90.85714286],[1766539075000,147.87500000],[1766539380000,60.16666667],[1766539667000,245.66666667],[1766540003000,158.60000000],[1766540252000,288.83333333],[1766540579000,188.33333333],[1766540851000,261.57142857],[1766541203000,259.50000000],[1766541508000,249.85714286],[1766541779000,53.28571429],[1766542051000,148.66666667],[1766542371000,102.00000000],[1766542691000,111.20000000],[1766543011000,104.00000000],[1766543252000,119.87500000],[1766543603000,83.85714286],[1766543875000,107.50000000],[1766544179000,52.85714286],[1766544451000,136.50000000],[1766544803000,140.00000000],[1766545075000,197.12500000],[1766545379000,255.57142857],[1766545651000,120.37500000],[1766546004000,98.42857143],[1766546275000,93.50000000],[1766546580000,107.50000000],[1766546852000,58.00000000],[1766547324000,149.33333333],[1766547507000,70.57142857],[1766547779000,105.66666667],[1766548052000,108.12500000],[1766548403000,98.16666667],[1766548676000,104.00000000],[1766548979000,61.28571429],[1766549251000,52.37500000],[1766549603000,101.00000000],[1766549875000,65.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: [[1766530893000,0.00000000],[1766530979000,0.00000000],[1766531251000,0.00000000],[1766531811000,0.00000000],[1766531875000,0.00000000],[1766532195000,0.00000000],[1766532451000,0.00000000],[1766532772000,0.00000000],[1766533092000,0.00000000],[1766533380000,0.00000000],[1766533651000,0.00000000],[1766533954000,0.00000000],[1766534292000,0.00000000],[1766534595000,0.00000000],[1766534948000,0.00000000],[1766535204000,0.00000000],[1766535476000,0.00000000],[1766535779000,0.00000000],[1766536051000,0.00000000],[1766536403000,0.00000000],[1766536676000,0.00000000],[1766537012000,0.00000000],[1766537252000,0.00000000],[1766537571000,0.00000000],[1766537876000,0.00000000],[1766538179000,0.00000000],[1766538451000,0.00000000],[1766538771000,0.00000000],[1766539075000,0.00000000],[1766539380000,0.00000000],[1766539667000,0.00000000],[1766540003000,0.00000000],[1766540252000,0.00000000],[1766540579000,0.00000000],[1766540851000,0.00000000],[1766541203000,0.00000000],[1766541508000,0.00000000],[1766541779000,0.00000000],[1766542051000,0.00000000],[1766542371000,0.00000000],[1766542691000,0.00000000],[1766543011000,0.00000000],[1766543252000,0.00000000],[1766543603000,0.00000000],[1766543875000,0.00000000],[1766544179000,0.00000000],[1766544451000,0.00000000],[1766544803000,0.00000000],[1766545075000,0.00000000],[1766545379000,0.00000000],[1766545651000,0.00000000],[1766546004000,0.00000000],[1766546275000,0.00000000],[1766546580000,0.00000000],[1766546852000,0.00000000],[1766547324000,0.00000000],[1766547507000,0.00000000],[1766547779000,0.00000000],[1766548052000,0.00000000],[1766548403000,0.00000000],[1766548676000,0.00000000],[1766548979000,0.00000000],[1766549251000,0.00000000],[1766549603000,0.00000000],[1766549875000,0.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: [[1766530893000,0.00000000],[1766530979000,0.00000000],[1766531251000,0.00000000],[1766531811000,0.00000000],[1766531875000,0.00000000],[1766532195000,0.00000000],[1766532451000,0.00000000],[1766532772000,0.00000000],[1766533092000,0.00000000],[1766533380000,0.00000000],[1766533651000,0.00000000],[1766533954000,0.00000000],[1766534292000,0.00000000],[1766534595000,0.00000000],[1766534948000,0.00000000],[1766535204000,0.00000000],[1766535476000,0.00000000],[1766535779000,0.00000000],[1766536051000,0.00000000],[1766536403000,0.00000000],[1766536676000,0.00000000],[1766537012000,0.00000000],[1766537252000,0.00000000],[1766537571000,0.00000000],[1766537876000,0.00000000],[1766538179000,0.00000000],[1766538451000,0.00000000],[1766538771000,0.00000000],[1766539075000,0.00000000],[1766539380000,0.00000000],[1766539667000,0.00000000],[1766540003000,0.00000000],[1766540252000,0.00000000],[1766540579000,0.00000000],[1766540851000,0.00000000],[1766541203000,0.00000000],[1766541508000,0.00000000],[1766541779000,0.00000000],[1766542051000,0.00000000],[1766542371000,0.00000000],[1766542691000,0.00000000],[1766543011000,0.00000000],[1766543252000,0.00000000],[1766543603000,0.00000000],[1766543875000,0.00000000],[1766544179000,0.00000000],[1766544451000,0.00000000],[1766544803000,0.00000000],[1766545075000,0.00000000],[1766545379000,0.00000000],[1766545651000,0.00000000],[1766546004000,0.00000000],[1766546275000,0.00000000],[1766546580000,0.00000000],[1766546852000,0.00000000],[1766547324000,0.00000000],[1766547507000,0.00000000],[1766547779000,0.00000000],[1766548052000,0.00000000],[1766548403000,0.00000000],[1766548676000,0.00000000],[1766548979000,0.00000000],[1766549251000,0.00000000],[1766549603000,0.00000000],[1766549875000,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: [[1766530893000,0.00000000],[1766530979000,0.00000000],[1766531251000,0.00000000],[1766531811000,0.00000000],[1766531875000,0.00000000],[1766532195000,0.00000000],[1766532451000,0.00000000],[1766532772000,0.00000000],[1766533092000,0.00000000],[1766533380000,0.00000000],[1766533651000,0.00000000],[1766533954000,0.25416667],[1766534292000,0.30500000],[1766534595000,0.30500000],[1766534948000,0.30500000],[1766535204000,0.30500000],[1766535476000,0.30500000],[1766535779000,0.30500000],[1766536051000,0.30500000],[1766536403000,0.30500000],[1766536676000,0.30500000],[1766537012000,0.30500000],[1766537252000,0.30500000],[1766537571000,0.30500000],[1766537876000,0.30500000],[1766538179000,0.30500000],[1766538451000,0.30500000],[1766538771000,0.30500000],[1766539075000,0.30500000],[1766539380000,0.30500000],[1766539667000,0.30500000],[1766540003000,0.42680000],[1766540252000,0.50800000],[1766540579000,0.50800000],[1766540851000,0.50800000],[1766541203000,0.50800000],[1766541508000,0.50800000],[1766541779000,0.50800000],[1766542051000,0.50800000],[1766542371000,0.50800000],[1766542691000,0.50800000],[1766543011000,0.50800000],[1766543252000,0.50800000],[1766543603000,0.50800000],[1766543875000,0.50800000],[1766544179000,0.50800000],[1766544451000,0.50800000],[1766544803000,0.50800000],[1766545075000,0.50800000],[1766545379000,0.50800000],[1766545651000,0.50800000],[1766546004000,0.50800000],[1766546275000,0.50800000],[1766546580000,0.50800000],[1766546852000,0.50800000],[1766547324000,0.50800000],[1766547507000,0.50800000],[1766547779000,0.50800000],[1766548052000,0.50800000],[1766548403000,0.50800000],[1766548676000,0.50800000],[1766548979000,0.50800000],[1766549251000,0.50800000],[1766549603000,0.50800000],[1766549875000,0.50800000],], 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; }