var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1766530900000,3.10000000],[1766531013000,3.10000000],[1766531254000,3.10000000],[1766531605000,3.10000000],[1766531877000,3.10000000],[1766532150000,3.10000000],[1766532453000,3.10000000],[1766532805000,3.10000000],[1766533077000,3.10000000],[1766533381000,3.10000000],[1766533653000,3.10000000],[1766534006000,3.10000000],[1766534277000,3.10000000],[1766534582000,3.10000000],[1766534853000,3.10000000],[1766535205000,3.10000000],[1766535509000,3.10000000],[1766535750000,3.10000000],[1766536070000,3.10000000],[1766536405000,3.10000000],[1766536741000,3.10000000],[1766536981000,3.10000000],[1766537253000,3.08750000],[1766537606000,3.02857143],[1766537878000,3.03750000],[1766538182000,3.04285714],[1766538453000,3.00000000],[1766538805000,3.00000000],[1766539078000,3.00000000],[1766539381000,3.00000000],[1766539669000,3.00000000],[1766540005000,3.00000000],[1766540373000,3.00000000],[1766540581000,3.00000000],[1766540870000,2.93333333],[1766541173000,2.90000000],[1766541452000,2.87142857],[1766541782000,2.80000000],[1766542053000,2.72500000],[1766542405000,2.70000000],[1766542679000,2.61666667],[1766542951000,2.58750000],[1766543254000,2.48750000],[1766543606000,2.40000000],[1766543877000,2.37142857],[1766544150000,2.30000000],[1766544453000,2.28750000],[1766544773000,2.26250000],[1766545077000,2.20000000],[1766545382000,2.20000000],[1766545653000,2.20000000],[1766545973000,2.20000000],[1766546309000,2.20000000],[1766546581000,2.18000000],[1766546869000,2.10000000],[1766547205000,2.10000000],[1766547477000,2.10000000],[1766547750000,2.10000000],[1766548053000,2.10000000],[1766548405000,2.10000000],[1766548677000,2.10000000],[1766548981000,2.10000000],[1766549253000,2.10000000],[1766549606000,2.10000000],[1766549878000,2.10000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1766530900000,2.8],[1766531013000,2.8],[1766531254000,2.8],[1766531605000,2.8],[1766531877000,2.8],[1766532150000,2.8],[1766532453000,2.8],[1766532805000,2.8],[1766533077000,2.8],[1766533381000,2.8],[1766533653000,2.8],[1766534006000,2.8],[1766534277000,2.8],[1766534582000,2.8],[1766534853000,2.8],[1766535205000,2.8],[1766535509000,2.8],[1766535750000,2.8],[1766536070000,2.8],[1766536405000,2.8],[1766536741000,2.8],[1766536981000,2.8],[1766537253000,2.8],[1766537606000,2.7],[1766537878000,2.7],[1766538182000,2.8],[1766538453000,2.7],[1766538805000,2.7],[1766539078000,2.7],[1766539381000,2.7],[1766539669000,2.7],[1766540005000,2.7],[1766540373000,2.7],[1766540581000,2.7],[1766540870000,2.6],[1766541173000,2.6],[1766541452000,2.6],[1766541782000,2.5],[1766542053000,2.4],[1766542405000,2.4],[1766542679000,2.3],[1766542951000,2.3],[1766543254000,2.2],[1766543606000,2.1],[1766543877000,2.1],[1766544150000,1.9],[1766544453000,1.9],[1766544773000,1.8],[1766545077000,1.8],[1766545382000,1.8],[1766545653000,1.8],[1766545973000,1.8],[1766546309000,1.8],[1766546581000,1.7],[1766546869000,1.5],[1766547205000,1.5],[1766547477000,1.5],[1766547750000,1.5],[1766548053000,1.5],[1766548405000,1.4],[1766548677000,1.4],[1766548981000,1.4],[1766549253000,1.3],[1766549606000,1.2],[1766549878000,1.2],], 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: [[1766530900000,98.00000000],[1766531013000,98.00000000],[1766531254000,98.00000000],[1766531605000,98.00000000],[1766531877000,98.00000000],[1766532150000,98.00000000],[1766532453000,98.00000000],[1766532805000,98.00000000],[1766533077000,98.00000000],[1766533381000,98.00000000],[1766533653000,98.00000000],[1766534006000,98.00000000],[1766534277000,98.00000000],[1766534582000,98.00000000],[1766534853000,98.00000000],[1766535205000,98.00000000],[1766535509000,98.00000000],[1766535750000,98.00000000],[1766536070000,98.00000000],[1766536405000,98.00000000],[1766536741000,98.00000000],[1766536981000,98.00000000],[1766537253000,98.00000000],[1766537606000,98.00000000],[1766537878000,98.00000000],[1766538182000,98.00000000],[1766538453000,98.00000000],[1766538805000,98.00000000],[1766539078000,98.00000000],[1766539381000,98.00000000],[1766539669000,98.00000000],[1766540005000,98.00000000],[1766540373000,98.00000000],[1766540581000,98.00000000],[1766540870000,98.00000000],[1766541173000,98.00000000],[1766541452000,98.00000000],[1766541782000,98.00000000],[1766542053000,98.00000000],[1766542405000,98.00000000],[1766542679000,98.00000000],[1766542951000,98.00000000],[1766543254000,98.00000000],[1766543606000,98.00000000],[1766543877000,97.85714286],[1766544150000,97.00000000],[1766544453000,97.00000000],[1766544773000,97.00000000],[1766545077000,97.00000000],[1766545382000,97.00000000],[1766545653000,97.00000000],[1766545973000,97.00000000],[1766546309000,97.00000000],[1766546581000,96.80000000],[1766546869000,96.00000000],[1766547205000,96.00000000],[1766547477000,96.00000000],[1766547750000,96.00000000],[1766548053000,95.62500000],[1766548405000,95.00000000],[1766548677000,95.00000000],[1766548981000,95.00000000],[1766549253000,94.50000000],[1766549606000,94.00000000],[1766549878000,94.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: [[1766530900000,1020.9],[1766531013000,1020.9],[1766531254000,1021],[1766531605000,1021],[1766531877000,1021.1],[1766532150000,1021],[1766532453000,1021],[1766532805000,1021],[1766533077000,1021],[1766533381000,1021.1],[1766533653000,1021],[1766534006000,1021],[1766534277000,1021.1],[1766534582000,1021],[1766534853000,1021.1],[1766535205000,1021.1],[1766535509000,1021.1],[1766535750000,1021],[1766536070000,1021.1],[1766536405000,1021.1],[1766536741000,1021.1],[1766536981000,1021.1],[1766537253000,1021.1],[1766537606000,1021],[1766537878000,1021.1],[1766538182000,1021.2],[1766538453000,1021.3],[1766538805000,1021.3],[1766539078000,1021.2],[1766539381000,1021.3],[1766539669000,1021.3],[1766540005000,1021.3],[1766540373000,1021.3],[1766540581000,1021.4],[1766540870000,1021.4],[1766541173000,1021.2],[1766541452000,1021.4],[1766541782000,1021.3],[1766542053000,1021.2],[1766542405000,1021.2],[1766542679000,1021.3],[1766542951000,1021.2],[1766543254000,1021.3],[1766543606000,1021.4],[1766543877000,1021.4],[1766544150000,1021.4],[1766544453000,1021.4],[1766544773000,1021.4],[1766545077000,1021.4],[1766545382000,1021.3],[1766545653000,1021.4],[1766545973000,1021.4],[1766546309000,1021.3],[1766546581000,1021.2],[1766546869000,1021.3],[1766547205000,1021.3],[1766547477000,1021.3],[1766547750000,1021.4],[1766548053000,1021.3],[1766548405000,1021.2],[1766548677000,1021.3],[1766548981000,1021.3],[1766549253000,1021.3],[1766549606000,1021.4],[1766549878000,1021.6],], 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: [[1766530900000,5.76],[1766531013000,4.68],[1766531254000,4.095],[1766531605000,5.04],[1766531877000,4.68],[1766532150000,4.545],[1766532453000,4.635],[1766532805000,4.525714296],[1766533077000,4.05],[1766533381000,4.079999988],[1766533653000,2.79],[1766534006000,3.291428556],[1766534277000,2.262857148],[1766534582000,3.300000012],[1766534853000,5.04],[1766535205000,2.468571444],[1766535509000,3.744],[1766535750000,3.42],[1766536070000,2.639999988],[1766536405000,5.256],[1766536741000,6.171428556],[1766536981000,6.48],[1766537253000,7.065],[1766537606000,7.765714296],[1766537878000,4.77],[1766538182000,5.554285704],[1766538453000,5.119999992],[1766538805000,3.6],[1766539078000,4.960000008],[1766539381000,4.905],[1766539669000,5.04],[1766540005000,7.272],[1766540373000,7.080000012],[1766540581000,8.160000012],[1766540870000,8.1],[1766541173000,12.24],[1766541452000,10.8],[1766541782000,8.64],[1766542053000,10.845],[1766542405000,10.902857148],[1766542679000,6.540000012],[1766542951000,13.59],[1766543254000,12.645],[1766543606000,11.571428556],[1766543877000,10.028571444],[1766544150000,11.7],[1766544453000,13.185],[1766544773000,12.69],[1766545077000,10.491428556],[1766545382000,12.465],[1766545653000,11.279999988],[1766545973000,10.845],[1766546309000,12.168],[1766546581000,12.312],[1766546869000,15.180000012],[1766547205000,14.328],[1766547477000,13.731428556],[1766547750000,12.555],[1766548053000,13.77],[1766548405000,13.062857148],[1766548677000,15.345],[1766548981000,14.339999988],[1766549253000,15.03],[1766549606000,13.422857148],[1766549878000,10.8],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1766530900000,7.56],[1766531013000,6.3],[1766531254000,5.67],[1766531605000,6.12],[1766531877000,6.12],[1766532150000,5.985],[1766532453000,5.985],[1766532805000,6.12],[1766533077000,5.985],[1766533381000,5.879999988],[1766533653000,5.04],[1766534006000,4.32],[1766534277000,3.96],[1766534582000,5.04],[1766534853000,6.84],[1766535205000,3.96],[1766535509000,5.544],[1766535750000,5.04],[1766536070000,4.200000012],[1766536405000,7.056],[1766536741000,7.92],[1766536981000,8.64],[1766537253000,9.45],[1766537606000,11.005714296],[1766537878000,7.245],[1766538182000,7.971428556],[1766538453000,6.720000012],[1766538805000,5.67],[1766539078000,6.440000004],[1766539381000,7.245],[1766539669000,6.615],[1766540005000,10.152],[1766540373000,10.08],[1766540581000,10.199999988],[1766540870000,9.780000012],[1766541173000,17.160000012],[1766541452000,13.628571444],[1766541782000,11.459999988],[1766542053000,15.165],[1766542405000,13.988571444],[1766542679000,8.880000012],[1766542951000,17.595],[1766543254000,17.64],[1766543606000,14.708571444],[1766543877000,13.937142852],[1766544150000,16.065],[1766544453000,17.37],[1766544773000,17.01],[1766545077000,14.348571444],[1766545382000,16.11],[1766545653000,14.839999992],[1766545973000,14.49],[1766546309000,18],[1766546581000,16.488],[1766546869000,20.099999988],[1766547205000,18.936],[1766547477000,19.44],[1766547750000,18.27],[1766548053000,18.63],[1766548405000,16.56],[1766548677000,19.89],[1766548981000,18.839999988],[1766549253000,18.315],[1766549606000,18],[1766549878000,12.96],], 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: [[1766530900000,72.00000000],[1766531013000,70.50000000],[1766531254000,118.25000000],[1766531605000,93.57142857],[1766531877000,90.71428571],[1766532150000,94.75000000],[1766532453000,84.87500000],[1766532805000,93.57142857],[1766533077000,87.12500000],[1766533381000,91.66666667],[1766533653000,102.00000000],[1766534006000,122.57142857],[1766534277000,121.00000000],[1766534582000,113.66666667],[1766534853000,96.42857143],[1766535205000,106.85714286],[1766535509000,88.00000000],[1766535750000,103.33333333],[1766536070000,114.33333333],[1766536405000,92.80000000],[1766536741000,70.71428571],[1766536981000,75.42857143],[1766537253000,64.25000000],[1766537606000,90.71428571],[1766537878000,94.50000000],[1766538182000,87.28571429],[1766538453000,98.33333333],[1766538805000,95.12500000],[1766539078000,110.22222222],[1766539381000,112.62500000],[1766539669000,110.12500000],[1766540005000,74.00000000],[1766540373000,67.00000000],[1766540581000,53.83333333],[1766540870000,64.66666667],[1766541173000,62.00000000],[1766541452000,69.14285714],[1766541782000,68.16666667],[1766542053000,59.25000000],[1766542405000,63.42857143],[1766542679000,102.33333333],[1766542951000,48.37500000],[1766543254000,76.12500000],[1766543606000,80.71428571],[1766543877000,77.00000000],[1766544150000,57.37500000],[1766544453000,62.50000000],[1766544773000,68.37500000],[1766545077000,52.14285714],[1766545382000,77.25000000],[1766545653000,55.55555556],[1766545973000,65.37500000],[1766546309000,73.80000000],[1766546581000,70.60000000],[1766546869000,76.83333333],[1766547205000,51.60000000],[1766547477000,64.14285714],[1766547750000,58.37500000],[1766548053000,68.25000000],[1766548405000,75.71428571],[1766548677000,54.87500000],[1766548981000,66.00000000],[1766549253000,61.50000000],[1766549606000,63.14285714],[1766549878000,52.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: [[1766530900000,0.00000000],[1766531013000,0.00000000],[1766531254000,0.00000000],[1766531605000,0.00000000],[1766531877000,0.00000000],[1766532150000,0.00000000],[1766532453000,0.00000000],[1766532805000,0.00000000],[1766533077000,0.00000000],[1766533381000,0.00000000],[1766533653000,0.00000000],[1766534006000,0.00000000],[1766534277000,0.00000000],[1766534582000,0.00000000],[1766534853000,0.00000000],[1766535205000,0.00000000],[1766535509000,0.00000000],[1766535750000,0.00000000],[1766536070000,0.00000000],[1766536405000,0.00000000],[1766536741000,0.00000000],[1766536981000,0.00000000],[1766537253000,0.00000000],[1766537606000,0.00000000],[1766537878000,0.00000000],[1766538182000,0.00000000],[1766538453000,0.00000000],[1766538805000,0.00000000],[1766539078000,0.00000000],[1766539381000,0.00000000],[1766539669000,0.00000000],[1766540005000,0.00000000],[1766540373000,0.00000000],[1766540581000,0.00000000],[1766540870000,0.00000000],[1766541173000,0.00000000],[1766541452000,0.00000000],[1766541782000,0.00000000],[1766542053000,0.00000000],[1766542405000,0.00000000],[1766542679000,0.00000000],[1766542951000,0.00000000],[1766543254000,0.00000000],[1766543606000,0.00000000],[1766543877000,0.00000000],[1766544150000,0.00000000],[1766544453000,0.00000000],[1766544773000,0.00000000],[1766545077000,0.00000000],[1766545382000,0.00000000],[1766545653000,0.00000000],[1766545973000,0.00000000],[1766546309000,0.00000000],[1766546581000,0.00000000],[1766546869000,0.00000000],[1766547205000,0.00000000],[1766547477000,0.00000000],[1766547750000,0.00000000],[1766548053000,0.00000000],[1766548405000,0.00000000],[1766548677000,0.00000000],[1766548981000,0.00000000],[1766549253000,0.00000000],[1766549606000,0.00000000],[1766549878000,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: [[1766530900000,0.00000000],[1766531013000,0.00000000],[1766531254000,0.00000000],[1766531605000,0.00000000],[1766531877000,0.00000000],[1766532150000,0.00000000],[1766532453000,0.00000000],[1766532805000,0.00000000],[1766533077000,0.00000000],[1766533381000,0.00000000],[1766533653000,0.00000000],[1766534006000,0.00000000],[1766534277000,0.00000000],[1766534582000,0.00000000],[1766534853000,0.00000000],[1766535205000,0.00000000],[1766535509000,0.00000000],[1766535750000,0.00000000],[1766536070000,0.00000000],[1766536405000,0.00000000],[1766536741000,0.00000000],[1766536981000,0.00000000],[1766537253000,0.00000000],[1766537606000,0.00000000],[1766537878000,0.00000000],[1766538182000,0.00000000],[1766538453000,0.00000000],[1766538805000,0.00000000],[1766539078000,0.00000000],[1766539381000,0.00000000],[1766539669000,0.00000000],[1766540005000,0.00000000],[1766540373000,0.00000000],[1766540581000,0.00000000],[1766540870000,0.00000000],[1766541173000,0.00000000],[1766541452000,0.00000000],[1766541782000,0.00000000],[1766542053000,0.00000000],[1766542405000,0.00000000],[1766542679000,0.00000000],[1766542951000,0.00000000],[1766543254000,0.00000000],[1766543606000,0.00000000],[1766543877000,0.00000000],[1766544150000,0.00000000],[1766544453000,0.00000000],[1766544773000,0.00000000],[1766545077000,0.00000000],[1766545382000,0.00000000],[1766545653000,0.00000000],[1766545973000,0.00000000],[1766546309000,0.00000000],[1766546581000,0.00000000],[1766546869000,0.00000000],[1766547205000,0.00000000],[1766547477000,0.00000000],[1766547750000,0.00000000],[1766548053000,0.00000000],[1766548405000,0.00000000],[1766548677000,0.00000000],[1766548981000,0.00000000],[1766549253000,0.00000000],[1766549606000,0.00000000],[1766549878000,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: [[1766530900000,0.00000000],[1766531013000,0.00000000],[1766531254000,0.00000000],[1766531605000,0.00000000],[1766531877000,0.00000000],[1766532150000,0.00000000],[1766532453000,0.05075000],[1766532805000,0.20300000],[1766533077000,0.24112500],[1766533381000,0.50800000],[1766533653000,0.53337500],[1766534006000,0.71100000],[1766534277000,0.71100000],[1766534582000,0.89766667],[1766534853000,0.99100000],[1766535205000,0.99100000],[1766535509000,0.99100000],[1766535750000,0.99100000],[1766536070000,0.99100000],[1766536405000,1.03160000],[1766536741000,1.19400000],[1766536981000,1.19400000],[1766537253000,1.19400000],[1766537606000,1.19400000],[1766537878000,1.19400000],[1766538182000,1.19400000],[1766538453000,1.19400000],[1766538805000,1.19400000],[1766539078000,1.19400000],[1766539381000,1.19400000],[1766539669000,1.19400000],[1766540005000,1.19400000],[1766540373000,1.19400000],[1766540581000,1.19400000],[1766540870000,1.19400000],[1766541173000,1.19400000],[1766541452000,1.19400000],[1766541782000,1.19400000],[1766542053000,1.19400000],[1766542405000,1.19400000],[1766542679000,1.19400000],[1766542951000,1.19400000],[1766543254000,1.19400000],[1766543606000,1.19400000],[1766543877000,1.19400000],[1766544150000,1.34650000],[1766544453000,1.49900000],[1766544773000,1.49900000],[1766545077000,1.49900000],[1766545382000,1.49900000],[1766545653000,1.49900000],[1766545973000,1.49900000],[1766546309000,1.49900000],[1766546581000,1.49900000],[1766546869000,1.70200000],[1766547205000,1.70200000],[1766547477000,1.70200000],[1766547750000,1.70200000],[1766548053000,1.70200000],[1766548405000,1.70200000],[1766548677000,1.70200000],[1766548981000,1.70200000],[1766549253000,1.70200000],[1766549606000,1.70200000],[1766549878000,1.70200000],], 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; }