var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1777068052000,8.85000000],[1777068179000,8.52000000],[1777068500000,7.97500000],[1777068755000,7.72000000],[1777069076000,7.70000000],[1777069396000,7.65000000],[1777069651000,8.22000000],[1777069972000,9.42000000],[1777070292000,10.72000000],[1777070611000,11.32500000],[1777070866000,11.32000000],[1777071188000,11.30000000],[1777071508000,11.30000000],[1777071764000,11.14000000],[1777072084000,10.86000000],[1777072401000,10.52500000],[1777072660000,10.50000000],[1777072996000,10.55000000],[1777073252000,10.70000000],[1777073557000,10.62000000],[1777073876000,10.56000000],[1777074196000,10.57500000],[1777074452000,10.36000000],[1777074772000,10.18000000],[1777075092000,10.10000000],[1777075412000,10.10000000],[1777075662000,9.96000000],[1777075988000,9.90000000],[1777076308000,9.82500000],[1777076555000,9.80000000],[1777076865000,9.74000000],[1777077188000,9.56000000],[1777077508000,9.55000000],[1777077758000,9.40000000],[1777078063000,9.10000000],[1777078387000,8.84000000],[1777078708000,8.60000000],[1777078964000,8.26000000],[1777079284000,8.20000000],[1777079601000,8.17500000],[1777079854000,7.96000000],[1777080180000,7.94000000],[1777080499000,8.27500000],[1777080755000,8.54000000],[1777081075000,8.22000000],[1777081396000,8.47500000],[1777081652000,8.40000000],[1777081971000,8.28000000],[1777082292000,8.10000000],[1777082612000,8.00000000],[1777082861000,7.76000000],[1777083187000,7.66000000],[1777083507000,7.80000000],[1777083763000,7.74000000],[1777084083000,7.70000000],[1777084401000,7.65000000],[1777084657000,7.58000000],[1777084980000,7.32000000],[1777085300000,7.07500000],[1777085553000,6.96000000],[1777085858000,6.72000000],[1777086179000,6.80000000],[1777086499000,6.82500000],[1777086755000,6.66000000],[1777087061000,6.44000000],[1777087380000,6.28000000],[1777087701000,6.20000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1777068052000,2.8],[1777068179000,2.9],[1777068500000,2.8],[1777068755000,2.7],[1777069076000,2.7],[1777069396000,2.5],[1777069651000,2.2],[1777069972000,2.3],[1777070292000,3.1],[1777070611000,3.2],[1777070866000,3.2],[1777071188000,3.2],[1777071508000,3.2],[1777071764000,3.3],[1777072084000,3.3],[1777072401000,3.1],[1777072660000,3.1],[1777072996000,3],[1777073252000,3],[1777073557000,3.1],[1777073876000,3],[1777074196000,3.1],[1777074452000,3.1],[1777074772000,3],[1777075092000,3.1],[1777075412000,3.1],[1777075662000,3.1],[1777075988000,3.1],[1777076308000,3],[1777076555000,3],[1777076865000,3.1],[1777077188000,2.9],[1777077508000,3],[1777077758000,3],[1777078063000,2.9],[1777078387000,2.8],[1777078708000,2.8],[1777078964000,2.7],[1777079284000,2.5],[1777079601000,2.6],[1777079854000,2.6],[1777080180000,2.4],[1777080499000,2.4],[1777080755000,2.7],[1777081075000,2.6],[1777081396000,2.7],[1777081652000,2.8],[1777081971000,2.8],[1777082292000,2.8],[1777082612000,3],[1777082861000,2.8],[1777083187000,2.7],[1777083507000,2.9],[1777083763000,3],[1777084083000,2.9],[1777084401000,3.1],[1777084657000,3],[1777084980000,3],[1777085300000,2.9],[1777085553000,2.9],[1777085858000,2.9],[1777086179000,2.9],[1777086499000,3],[1777086755000,2.9],[1777087061000,2.9],[1777087380000,2.9],[1777087701000,2.8],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1777068052000,66.00000000],[1777068179000,68.20000000],[1777068500000,70.00000000],[1777068755000,70.80000000],[1777069076000,70.80000000],[1777069396000,70.25000000],[1777069651000,66.20000000],[1777069972000,61.60000000],[1777070292000,59.60000000],[1777070611000,57.75000000],[1777070866000,57.80000000],[1777071188000,57.80000000],[1777071508000,57.75000000],[1777071764000,58.60000000],[1777072084000,60.00000000],[1777072401000,60.50000000],[1777072660000,60.40000000],[1777072996000,60.00000000],[1777073252000,59.40000000],[1777073557000,60.00000000],[1777073876000,59.80000000],[1777074196000,60.00000000],[1777074452000,61.00000000],[1777074772000,61.40000000],[1777075092000,62.00000000],[1777075412000,62.25000000],[1777075662000,62.80000000],[1777075988000,62.80000000],[1777076308000,63.00000000],[1777076555000,63.00000000],[1777076865000,63.60000000],[1777077188000,63.60000000],[1777077508000,64.00000000],[1777077758000,64.60000000],[1777078063000,65.60000000],[1777078387000,66.00000000],[1777078708000,67.00000000],[1777078964000,68.20000000],[1777079284000,67.60000000],[1777079601000,68.00000000],[1777079854000,69.20000000],[1777080180000,68.20000000],[1777080499000,66.75000000],[1777080755000,67.00000000],[1777081075000,67.80000000],[1777081396000,67.25000000],[1777081652000,68.20000000],[1777081971000,68.60000000],[1777082292000,69.60000000],[1777082612000,70.75000000],[1777082861000,71.00000000],[1777083187000,71.20000000],[1777083507000,71.50000000],[1777083763000,72.00000000],[1777084083000,72.00000000],[1777084401000,73.00000000],[1777084657000,73.20000000],[1777084980000,74.40000000],[1777085300000,75.00000000],[1777085553000,75.60000000],[1777085858000,76.80000000],[1777086179000,76.40000000],[1777086499000,77.00000000],[1777086755000,77.40000000],[1777087061000,78.60000000],[1777087380000,79.00000000],[1777087701000,79.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: [[1777068052000,1015.1],[1777068179000,1015.1],[1777068500000,1015],[1777068755000,1015.1],[1777069076000,1015],[1777069396000,1015],[1777069651000,1014.9],[1777069972000,1014.9],[1777070292000,1014.8],[1777070611000,1014.8],[1777070866000,1014.8],[1777071188000,1014.7],[1777071508000,1014.9],[1777071764000,1014.9],[1777072084000,1014.9],[1777072401000,1014.9],[1777072660000,1014.9],[1777072996000,1014.9],[1777073252000,1014.8],[1777073557000,1015],[1777073876000,1014.9],[1777074196000,1014.8],[1777074452000,1014.7],[1777074772000,1014.7],[1777075092000,1014.5],[1777075412000,1014.4],[1777075662000,1014.4],[1777075988000,1014.5],[1777076308000,1014.5],[1777076555000,1014.4],[1777076865000,1014.5],[1777077188000,1014.5],[1777077508000,1014.5],[1777077758000,1014.6],[1777078063000,1014.8],[1777078387000,1014.9],[1777078708000,1014.9],[1777078964000,1015],[1777079284000,1015],[1777079601000,1015.1],[1777079854000,1015.1],[1777080180000,1015],[1777080499000,1015],[1777080755000,1015],[1777081075000,1015.1],[1777081396000,1015.1],[1777081652000,1015.2],[1777081971000,1015.2],[1777082292000,1015.2],[1777082612000,1015.2],[1777082861000,1015.2],[1777083187000,1015.3],[1777083507000,1015.2],[1777083763000,1015.2],[1777084083000,1015.1],[1777084401000,1015.2],[1777084657000,1015.2],[1777084980000,1015.2],[1777085300000,1015.2],[1777085553000,1015.1],[1777085858000,1015.2],[1777086179000,1015.1],[1777086499000,1015.2],[1777086755000,1015.3],[1777087061000,1015.3],[1777087380000,1015.4],[1777087701000,1015.3],], 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: [[1777068052000,0],[1777068179000,0],[1777068500000,0],[1777068755000,0.576],[1777069076000,0],[1777069396000,0.09],[1777069651000,0.864],[1777069972000,4.104],[1777070292000,3.456],[1777070611000,1.08],[1777070866000,1.872],[1777071188000,2.016],[1777071508000,2.7],[1777071764000,1.08],[1777072084000,0.36],[1777072401000,0.81],[1777072660000,0.504],[1777072996000,2.16],[1777073252000,1.296],[1777073557000,1.296],[1777073876000,2.448],[1777074196000,1.26],[1777074452000,1.728],[1777074772000,1.224],[1777075092000,2.016],[1777075412000,3.15],[1777075662000,1.368],[1777075988000,1.944],[1777076308000,1.89],[1777076555000,2.304],[1777076865000,0.576],[1777077188000,2.16],[1777077508000,0.99],[1777077758000,0.504],[1777078063000,0.072],[1777078387000,0],[1777078708000,0],[1777078964000,0],[1777079284000,0],[1777079601000,0],[1777079854000,0],[1777080180000,1.224],[1777080499000,1.71],[1777080755000,0.072],[1777081075000,1.368],[1777081396000,0.09],[1777081652000,0.72],[1777081971000,0],[1777082292000,0.648],[1777082612000,0.09],[1777082861000,0.144],[1777083187000,1.152],[1777083507000,0.27],[1777083763000,2.016],[1777084083000,1.512],[1777084401000,1.17],[1777084657000,0.504],[1777084980000,0],[1777085300000,0],[1777085553000,0],[1777085858000,1.512],[1777086179000,1.296],[1777086499000,0.54],[1777086755000,0],[1777087061000,0],[1777087380000,0],[1777087701000,0.479999988],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1777068052000,0],[1777068179000,0],[1777068500000,0],[1777068755000,1.512],[1777069076000,0],[1777069396000,0.63],[1777069651000,2.016],[1777069972000,7.128],[1777070292000,6.048],[1777070611000,2.52],[1777070866000,3.528],[1777071188000,3.528],[1777071508000,5.04],[1777071764000,2.52],[1777072084000,1.008],[1777072401000,1.89],[1777072660000,2.016],[1777072996000,5.04],[1777073252000,2.016],[1777073557000,2.52],[1777073876000,4.536],[1777074196000,2.52],[1777074452000,3.528],[1777074772000,2.52],[1777075092000,4.536],[1777075412000,4.41],[1777075662000,2.52],[1777075988000,3.024],[1777076308000,3.15],[1777076555000,3.528],[1777076865000,1.512],[1777077188000,4.032],[1777077508000,2.52],[1777077758000,1.008],[1777078063000,0.504],[1777078387000,0],[1777078708000,0],[1777078964000,0],[1777079284000,0],[1777079601000,0],[1777079854000,0],[1777080180000,2.52],[1777080499000,4.41],[1777080755000,0.504],[1777081075000,2.52],[1777081396000,0.63],[1777081652000,1.512],[1777081971000,0],[1777082292000,1.008],[1777082612000,0.63],[1777082861000,1.008],[1777083187000,2.52],[1777083507000,0.63],[1777083763000,4.536],[1777084083000,2.52],[1777084401000,2.52],[1777084657000,1.008],[1777084980000,0],[1777085300000,0],[1777085553000,0],[1777085858000,2.52],[1777086179000,2.52],[1777086499000,0.63],[1777086755000,0],[1777087061000,0],[1777087380000,0],[1777087701000,0.839999988],], 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: [[1777068052000,95.00000000],[1777068179000,102.40000000],[1777068500000,97.25000000],[1777068755000,139.00000000],[1777069076000,83.40000000],[1777069396000,144.25000000],[1777069651000,127.40000000],[1777069972000,54.80000000],[1777070292000,137.60000000],[1777070611000,109.00000000],[1777070866000,79.40000000],[1777071188000,111.40000000],[1777071508000,110.00000000],[1777071764000,131.60000000],[1777072084000,98.80000000],[1777072401000,139.25000000],[1777072660000,101.00000000],[1777072996000,136.75000000],[1777073252000,136.20000000],[1777073557000,180.40000000],[1777073876000,118.80000000],[1777074196000,150.75000000],[1777074452000,185.00000000],[1777074772000,75.80000000],[1777075092000,165.80000000],[1777075412000,61.00000000],[1777075662000,120.40000000],[1777075988000,142.40000000],[1777076308000,163.75000000],[1777076555000,115.80000000],[1777076865000,189.60000000],[1777077188000,141.20000000],[1777077508000,70.75000000],[1777077758000,84.60000000],[1777078063000,103.60000000],[1777078387000,98.80000000],[1777078708000,103.00000000],[1777078964000,92.80000000],[1777079284000,90.60000000],[1777079601000,90.50000000],[1777079854000,88.60000000],[1777080180000,64.40000000],[1777080499000,67.00000000],[1777080755000,92.00000000],[1777081075000,132.60000000],[1777081396000,99.00000000],[1777081652000,87.40000000],[1777081971000,119.00000000],[1777082292000,126.20000000],[1777082612000,78.75000000],[1777082861000,78.20000000],[1777083187000,133.20000000],[1777083507000,78.00000000],[1777083763000,164.60000000],[1777084083000,98.60000000],[1777084401000,84.25000000],[1777084657000,89.20000000],[1777084980000,92.80000000],[1777085300000,92.00000000],[1777085553000,100.40000000],[1777085858000,137.40000000],[1777086179000,102.40000000],[1777086499000,75.75000000],[1777086755000,107.20000000],[1777087061000,101.00000000],[1777087380000,110.80000000],[1777087701000,162.33333333],], 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: [[1777068052000,0.00000000],[1777068179000,0.00000000],[1777068500000,0.00000000],[1777068755000,0.00000000],[1777069076000,0.00000000],[1777069396000,0.00000000],[1777069651000,0.00000000],[1777069972000,0.00000000],[1777070292000,0.00000000],[1777070611000,0.00000000],[1777070866000,0.00000000],[1777071188000,0.00000000],[1777071508000,0.00000000],[1777071764000,0.00000000],[1777072084000,0.00000000],[1777072401000,0.00000000],[1777072660000,0.00000000],[1777072996000,0.00000000],[1777073252000,0.00000000],[1777073557000,0.00000000],[1777073876000,0.00000000],[1777074196000,0.00000000],[1777074452000,0.00000000],[1777074772000,0.00000000],[1777075092000,0.00000000],[1777075412000,0.00000000],[1777075662000,0.00000000],[1777075988000,0.00000000],[1777076308000,0.00000000],[1777076555000,0.00000000],[1777076865000,0.00000000],[1777077188000,0.00000000],[1777077508000,0.00000000],[1777077758000,0.00000000],[1777078063000,0.00000000],[1777078387000,0.00000000],[1777078708000,0.00000000],[1777078964000,0.00000000],[1777079284000,0.00000000],[1777079601000,0.00000000],[1777079854000,0.00000000],[1777080180000,0.00000000],[1777080499000,0.00000000],[1777080755000,0.00000000],[1777081075000,0.00000000],[1777081396000,0.00000000],[1777081652000,0.00000000],[1777081971000,0.00000000],[1777082292000,0.00000000],[1777082612000,0.00000000],[1777082861000,0.00000000],[1777083187000,0.00000000],[1777083507000,0.00000000],[1777083763000,0.00000000],[1777084083000,0.00000000],[1777084401000,0.00000000],[1777084657000,0.00000000],[1777084980000,0.00000000],[1777085300000,0.00000000],[1777085553000,0.00000000],[1777085858000,0.00000000],[1777086179000,0.00000000],[1777086499000,0.00000000],[1777086755000,0.00000000],[1777087061000,0.00000000],[1777087380000,0.00000000],[1777087701000,1.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: [[1777068052000,0.00000000],[1777068179000,0.00000000],[1777068500000,0.00000000],[1777068755000,0.00000000],[1777069076000,0.00000000],[1777069396000,0.00000000],[1777069651000,0.00000000],[1777069972000,0.00000000],[1777070292000,0.00000000],[1777070611000,0.00000000],[1777070866000,0.00000000],[1777071188000,0.00000000],[1777071508000,0.00000000],[1777071764000,0.00000000],[1777072084000,0.00000000],[1777072401000,0.00000000],[1777072660000,0.00000000],[1777072996000,0.00000000],[1777073252000,0.00000000],[1777073557000,0.00000000],[1777073876000,0.00000000],[1777074196000,0.00000000],[1777074452000,0.00000000],[1777074772000,0.00000000],[1777075092000,0.00000000],[1777075412000,0.00000000],[1777075662000,0.00000000],[1777075988000,0.00000000],[1777076308000,0.00000000],[1777076555000,0.00000000],[1777076865000,0.00000000],[1777077188000,0.00000000],[1777077508000,0.00000000],[1777077758000,0.00000000],[1777078063000,0.00000000],[1777078387000,0.00000000],[1777078708000,0.00000000],[1777078964000,0.00000000],[1777079284000,0.00000000],[1777079601000,0.00000000],[1777079854000,0.00000000],[1777080180000,0.00000000],[1777080499000,0.00000000],[1777080755000,0.00000000],[1777081075000,0.00000000],[1777081396000,0.00000000],[1777081652000,0.00000000],[1777081971000,0.00000000],[1777082292000,0.00000000],[1777082612000,0.00000000],[1777082861000,0.00000000],[1777083187000,0.00000000],[1777083507000,0.00000000],[1777083763000,0.00000000],[1777084083000,0.00000000],[1777084401000,0.00000000],[1777084657000,0.00000000],[1777084980000,0.00000000],[1777085300000,0.00000000],[1777085553000,0.00000000],[1777085858000,0.00000000],[1777086179000,0.00000000],[1777086499000,0.00000000],[1777086755000,0.00000000],[1777087061000,0.00000000],[1777087380000,0.00000000],[1777087701000,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: [[1777068052000,0.00000000],[1777068179000,0.00000000],[1777068500000,0.00000000],[1777068755000,0.00000000],[1777069076000,0.00000000],[1777069396000,0.00000000],[1777069651000,0.00000000],[1777069972000,0.00000000],[1777070292000,0.00000000],[1777070611000,0.00000000],[1777070866000,0.00000000],[1777071188000,0.00000000],[1777071508000,0.00000000],[1777071764000,0.00000000],[1777072084000,0.00000000],[1777072401000,0.00000000],[1777072660000,0.00000000],[1777072996000,0.00000000],[1777073252000,0.00000000],[1777073557000,0.00000000],[1777073876000,0.00000000],[1777074196000,0.00000000],[1777074452000,0.00000000],[1777074772000,0.00000000],[1777075092000,0.00000000],[1777075412000,0.00000000],[1777075662000,0.00000000],[1777075988000,0.00000000],[1777076308000,0.00000000],[1777076555000,0.00000000],[1777076865000,0.00000000],[1777077188000,0.00000000],[1777077508000,0.00000000],[1777077758000,0.00000000],[1777078063000,0.00000000],[1777078387000,0.00000000],[1777078708000,0.00000000],[1777078964000,0.00000000],[1777079284000,0.00000000],[1777079601000,0.00000000],[1777079854000,0.00000000],[1777080180000,0.00000000],[1777080499000,0.00000000],[1777080755000,0.00000000],[1777081075000,0.00000000],[1777081396000,0.00000000],[1777081652000,0.00000000],[1777081971000,0.00000000],[1777082292000,0.00000000],[1777082612000,0.00000000],[1777082861000,0.00000000],[1777083187000,0.00000000],[1777083507000,0.00000000],[1777083763000,0.00000000],[1777084083000,0.00000000],[1777084401000,0.00000000],[1777084657000,0.00000000],[1777084980000,0.00000000],[1777085300000,0.00000000],[1777085553000,0.00000000],[1777085858000,0.00000000],[1777086179000,0.00000000],[1777086499000,0.00000000],[1777086755000,0.00000000],[1777087061000,0.00000000],[1777087380000,0.00000000],[1777087701000,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; }