var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1777845670000,13.40000000],[1777845861000,13.50000000],[1777846309000,13.40000000],[1777846373000,13.28571429],[1777846757000,12.73333333],[1777846982000,12.66666667],[1777847252000,12.83750000],[1777847606000,13.14285714],[1777847878000,13.87500000],[1777848181000,13.31250000],[1777848453000,12.72500000],[1777848774000,12.47500000],[1777849077000,12.34285714],[1777849350000,12.17500000],[1777849652000,12.11111111],[1777849973000,12.18750000],[1777850277000,12.97777778],[1777850582000,12.30000000],[1777850869000,12.18571429],[1777851173000,11.85714286],[1777851509000,11.72500000],[1777851812000,11.13333333],[1777852053000,10.98750000],[1777852405000,10.80000000],[1777852677000,10.78750000],[1777852950000,10.57500000],[1777853252000,10.41250000],[1777853573000,10.37777778],[1777853878000,10.17500000],[1777854181000,10.10000000],[1777854501000,10.02500000],[1777854773000,9.75000000],[1777855077000,9.63333333],[1777855414000,9.62500000],[1777855652000,9.55000000],[1777855973000,9.46000000],[1777856389000,9.16666667],[1777856597000,9.01666667],[1777856853000,8.98000000],[1777857206000,8.82857143],[1777857477000,8.75555556],[1777857782000,8.76666667],[1777858052000,8.81111111],[1777858405000,8.93750000],[1777858678000,8.93750000],[1777858981000,8.95000000],[1777859269000,8.94285714],[1777859574000,8.75000000],[1777859909000,8.92500000],[1777860181000,8.88000000],[1777860470000,8.87500000],[1777860949000,8.90000000],[1777861077000,8.95000000],[1777861381000,8.85000000],[1777861669000,8.70000000],[1777861973000,8.71666667],[1777862277000,8.75000000],[1777862581000,8.68571429],[1777862852000,8.66250000],[1777863205000,8.78571429],[1777863477000,8.58750000],[1777863781000,8.27500000],[1777864053000,8.06250000],[1777864374000,8.00000000],[1777864694000,8.00000000],[1777864950000,8.08571429],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1777845670000,3.9],[1777845861000,3.6],[1777846309000,3.9],[1777846373000,3.8],[1777846757000,3.8],[1777846982000,3.7],[1777847252000,3.7],[1777847606000,3.6],[1777847878000,3.9],[1777848181000,4],[1777848453000,4],[1777848774000,4.1],[1777849077000,3.8],[1777849350000,4],[1777849652000,3.9],[1777849973000,3.9],[1777850277000,4],[1777850582000,3.9],[1777850869000,4],[1777851173000,4],[1777851509000,4.2],[1777851812000,4.1],[1777852053000,4],[1777852405000,4],[1777852677000,4],[1777852950000,4.1],[1777853252000,4.2],[1777853573000,4.2],[1777853878000,4.1],[1777854181000,4.2],[1777854501000,4.3],[1777854773000,4.3],[1777855077000,4.4],[1777855414000,4.6],[1777855652000,4.7],[1777855973000,4.7],[1777856389000,4.8],[1777856597000,4.9],[1777856853000,4.9],[1777857206000,4.8],[1777857477000,4.8],[1777857782000,4.6],[1777858052000,4.6],[1777858405000,4.5],[1777858678000,4.5],[1777858981000,4.5],[1777859269000,4.5],[1777859574000,4.3],[1777859909000,4.5],[1777860181000,4.4],[1777860470000,4.3],[1777860949000,4.4],[1777861077000,4.4],[1777861381000,4.3],[1777861669000,4.1],[1777861973000,4.1],[1777862277000,4.3],[1777862581000,4.3],[1777862852000,4.4],[1777863205000,4.4],[1777863477000,4.4],[1777863781000,4.2],[1777864053000,4],[1777864374000,4],[1777864694000,4.2],[1777864950000,4.3],], 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: [[1777845670000,53.00000000],[1777845861000,51.60000000],[1777846309000,53.00000000],[1777846373000,52.71428571],[1777846757000,55.00000000],[1777846982000,54.66666667],[1777847252000,54.00000000],[1777847606000,52.71428571],[1777847878000,51.25000000],[1777848181000,53.62500000],[1777848453000,55.75000000],[1777848774000,57.00000000],[1777849077000,56.28571429],[1777849350000,57.50000000],[1777849652000,57.55555556],[1777849973000,57.12500000],[1777850277000,54.66666667],[1777850582000,57.00000000],[1777850869000,57.57142857],[1777851173000,58.71428571],[1777851509000,60.25000000],[1777851812000,62.00000000],[1777852053000,62.37500000],[1777852405000,63.33333333],[1777852677000,63.37500000],[1777852950000,64.37500000],[1777853252000,65.50000000],[1777853573000,65.88888889],[1777853878000,66.37500000],[1777854181000,67.12500000],[1777854501000,68.00000000],[1777854773000,69.25000000],[1777855077000,70.16666667],[1777855414000,71.00000000],[1777855652000,71.87500000],[1777855973000,72.40000000],[1777856389000,74.33333333],[1777856597000,75.50000000],[1777856853000,76.00000000],[1777857206000,76.00000000],[1777857477000,76.66666667],[1777857782000,75.33333333],[1777858052000,75.00000000],[1777858405000,73.87500000],[1777858678000,73.87500000],[1777858981000,74.00000000],[1777859269000,74.00000000],[1777859574000,74.00000000],[1777859909000,74.00000000],[1777860181000,73.80000000],[1777860470000,73.50000000],[1777860949000,73.50000000],[1777861077000,73.33333333],[1777861381000,73.33333333],[1777861669000,73.20000000],[1777861973000,73.00000000],[1777862277000,73.75000000],[1777862581000,74.28571429],[1777862852000,75.00000000],[1777863205000,74.14285714],[1777863477000,75.37500000],[1777863781000,76.00000000],[1777864053000,76.00000000],[1777864374000,76.16666667],[1777864694000,77.00000000],[1777864950000,77.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: [[1777845670000,1018.2],[1777845861000,1018],[1777846309000,1017.9],[1777846373000,1018],[1777846757000,1018.1],[1777846982000,1017.8],[1777847252000,1018],[1777847606000,1017.9],[1777847878000,1017.8],[1777848181000,1017.9],[1777848453000,1017.9],[1777848774000,1017.9],[1777849077000,1018],[1777849350000,1018],[1777849652000,1018.1],[1777849973000,1017.9],[1777850277000,1017.8],[1777850582000,1017.9],[1777850869000,1017.8],[1777851173000,1018],[1777851509000,1017.8],[1777851812000,1017.9],[1777852053000,1018],[1777852405000,1017.9],[1777852677000,1017.9],[1777852950000,1017.8],[1777853252000,1017.8],[1777853573000,1017.9],[1777853878000,1017.9],[1777854181000,1017.9],[1777854501000,1017.9],[1777854773000,1017.9],[1777855077000,1018],[1777855414000,1017.9],[1777855652000,1017.9],[1777855973000,1017.8],[1777856389000,1017.9],[1777856597000,1017.9],[1777856853000,1017.9],[1777857206000,1017.9],[1777857477000,1018],[1777857782000,1018],[1777858052000,1018.2],[1777858405000,1018],[1777858678000,1018.2],[1777858981000,1018.2],[1777859269000,1018.3],[1777859574000,1018.2],[1777859909000,1018.3],[1777860181000,1018.2],[1777860470000,1018.3],[1777860949000,1018.3],[1777861077000,1018.4],[1777861381000,1018.4],[1777861669000,1018.5],[1777861973000,1018.5],[1777862277000,1018.5],[1777862581000,1018.5],[1777862852000,1018.4],[1777863205000,1018.4],[1777863477000,1018.3],[1777863781000,1018.3],[1777864053000,1018.3],[1777864374000,1018.3],[1777864694000,1018.2],[1777864950000,1018.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: [[1777845670000,0.72],[1777845861000,1.656],[1777846309000,0],[1777846373000,2.16],[1777846757000,1.98],[1777846982000,3.359999988],[1777847252000,1.71],[1777847606000,2.365714296],[1777847878000,2.295],[1777848181000,3.375],[1777848453000,1.125],[1777848774000,1.035],[1777849077000,0.925714296],[1777849350000,0.54],[1777849652000,1.08],[1777849973000,1.44],[1777850277000,3.399999984],[1777850582000,0.051428556],[1777850869000,1.182857148],[1777851173000,3.754285704],[1777851509000,1.53],[1777851812000,2.999999988],[1777852053000,1.845],[1777852405000,1.98],[1777852677000,3.375],[1777852950000,3.735],[1777853252000,4.545],[1777853573000,3.279999996],[1777853878000,3.24],[1777854181000,3.735],[1777854501000,2.88],[1777854773000,3.33],[1777855077000,4.5],[1777855414000,3.87],[1777855652000,5.31],[1777855973000,5.04],[1777856389000,4.439999988],[1777856597000,5.94],[1777856853000,4.464],[1777857206000,6.171428556],[1777857477000,4.759999992],[1777857782000,6.599999988],[1777858052000,5.559999984],[1777858405000,7.65],[1777858678000,5.265],[1777858981000,5.625],[1777859269000,3.291428556],[1777859574000,3.359999988],[1777859909000,5.22],[1777860181000,3.744],[1777860470000,3.33],[1777860949000,6.12],[1777861077000,4.86],[1777861381000,5.460000012],[1777861669000,4.536],[1777861973000,6.180000012],[1777862277000,6.48],[1777862581000,6.737142852],[1777862852000,7.2],[1777863205000,6.634285704],[1777863477000,5.31],[1777863781000,5.04],[1777864053000,4.32],[1777864374000,4.920000012],[1777864694000,6.93],[1777864950000,5.348571444],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1777845670000,2.52],[1777845861000,2.016],[1777846309000,0],[1777846373000,3.24],[1777846757000,3.359999988],[1777846982000,4.619999988],[1777847252000,2.52],[1777847606000,2.52],[1777847878000,3.465],[1777848181000,4.14],[1777848453000,1.575],[1777848774000,1.575],[1777849077000,1.44],[1777849350000,0.945],[1777849652000,1.400000004],[1777849973000,2.205],[1777850277000,5.04],[1777850582000,0.36],[1777850869000,1.8],[1777851173000,5.04],[1777851509000,1.89],[1777851812000,3.359999988],[1777852053000,2.52],[1777852405000,2.52],[1777852677000,4.41],[1777852950000,5.04],[1777853252000,5.04],[1777853573000,4.479999984],[1777853878000,3.78],[1777854181000,4.725],[1777854501000,3.465],[1777854773000,4.095],[1777855077000,5.04],[1777855414000,4.41],[1777855652000,5.985],[1777855973000,7.56],[1777856389000,5.879999988],[1777856597000,7.139999988],[1777856853000,6.552],[1777857206000,7.92],[1777857477000,5.879999988],[1777857782000,7.56],[1777858052000,7.279999992],[1777858405000,9.225],[1777858678000,7.245],[1777858981000,6.93],[1777859269000,5.04],[1777859574000,4.200000012],[1777859909000,6.93],[1777860181000,4.536],[1777860470000,5.04],[1777860949000,7.56],[1777861077000,6.3],[1777861381000,7.139999988],[1777861669000,5.544],[1777861973000,7.980000012],[1777862277000,8.235],[1777862581000,8.331428556],[1777862852000,8.865],[1777863205000,7.56],[1777863477000,6.615],[1777863781000,6.615],[1777864053000,5.985],[1777864374000,5.879999988],[1777864694000,8.82],[1777864950000,7.2],], 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: [[1777845670000,121.00000000],[1777845861000,138.00000000],[1777846309000,173.00000000],[1777846373000,131.57142857],[1777846757000,133.83333333],[1777846982000,143.33333333],[1777847252000,151.50000000],[1777847606000,141.14285714],[1777847878000,162.50000000],[1777848181000,114.25000000],[1777848453000,158.75000000],[1777848774000,169.75000000],[1777849077000,155.85714286],[1777849350000,154.62500000],[1777849652000,173.33333333],[1777849973000,138.50000000],[1777850277000,124.55555556],[1777850582000,156.42857143],[1777850869000,141.42857143],[1777851173000,112.00000000],[1777851509000,138.75000000],[1777851812000,123.66666667],[1777852053000,132.62500000],[1777852405000,132.00000000],[1777852677000,122.12500000],[1777852950000,104.25000000],[1777853252000,99.00000000],[1777853573000,124.11111111],[1777853878000,121.50000000],[1777854181000,103.12500000],[1777854501000,116.87500000],[1777854773000,113.12500000],[1777855077000,115.16666667],[1777855414000,110.00000000],[1777855652000,106.00000000],[1777855973000,105.40000000],[1777856389000,109.66666667],[1777856597000,99.50000000],[1777856853000,102.80000000],[1777857206000,100.00000000],[1777857477000,101.44444444],[1777857782000,81.83333333],[1777858052000,92.22222222],[1777858405000,85.00000000],[1777858678000,83.87500000],[1777858981000,99.00000000],[1777859269000,116.85714286],[1777859574000,125.66666667],[1777859909000,107.75000000],[1777860181000,118.20000000],[1777860470000,126.25000000],[1777860949000,85.00000000],[1777861077000,115.33333333],[1777861381000,91.00000000],[1777861669000,108.80000000],[1777861973000,98.83333333],[1777862277000,90.75000000],[1777862581000,94.71428571],[1777862852000,83.50000000],[1777863205000,92.57142857],[1777863477000,86.25000000],[1777863781000,98.87500000],[1777864053000,92.37500000],[1777864374000,95.16666667],[1777864694000,73.75000000],[1777864950000,94.57142857],], 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: [[1777845670000,0.00000000],[1777845861000,0.00000000],[1777846309000,0.00000000],[1777846373000,0.00000000],[1777846757000,0.00000000],[1777846982000,0.00000000],[1777847252000,0.00000000],[1777847606000,0.00000000],[1777847878000,0.00000000],[1777848181000,0.00000000],[1777848453000,0.00000000],[1777848774000,0.00000000],[1777849077000,0.00000000],[1777849350000,0.00000000],[1777849652000,0.00000000],[1777849973000,0.00000000],[1777850277000,0.00000000],[1777850582000,0.00000000],[1777850869000,0.00000000],[1777851173000,0.00000000],[1777851509000,0.00000000],[1777851812000,0.00000000],[1777852053000,0.00000000],[1777852405000,0.00000000],[1777852677000,0.00000000],[1777852950000,0.00000000],[1777853252000,0.00000000],[1777853573000,0.00000000],[1777853878000,0.00000000],[1777854181000,0.00000000],[1777854501000,0.00000000],[1777854773000,0.00000000],[1777855077000,0.00000000],[1777855414000,0.00000000],[1777855652000,0.00000000],[1777855973000,0.00000000],[1777856389000,0.00000000],[1777856597000,0.00000000],[1777856853000,0.00000000],[1777857206000,0.00000000],[1777857477000,0.00000000],[1777857782000,0.00000000],[1777858052000,0.00000000],[1777858405000,0.00000000],[1777858678000,0.00000000],[1777858981000,0.00000000],[1777859269000,0.00000000],[1777859574000,0.00000000],[1777859909000,0.00000000],[1777860181000,0.00000000],[1777860470000,0.00000000],[1777860949000,0.00000000],[1777861077000,0.00000000],[1777861381000,0.00000000],[1777861669000,0.00000000],[1777861973000,0.00000000],[1777862277000,0.00000000],[1777862581000,0.00000000],[1777862852000,0.00000000],[1777863205000,0.00000000],[1777863477000,0.00000000],[1777863781000,0.00000000],[1777864053000,0.00000000],[1777864374000,0.00000000],[1777864694000,0.00000000],[1777864950000,0.57142857],], 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: [[1777845670000,0.00000000],[1777845861000,0.00000000],[1777846309000,0.00000000],[1777846373000,0.00000000],[1777846757000,0.00000000],[1777846982000,0.00000000],[1777847252000,0.00000000],[1777847606000,0.00000000],[1777847878000,0.00000000],[1777848181000,0.00000000],[1777848453000,0.00000000],[1777848774000,0.00000000],[1777849077000,0.00000000],[1777849350000,0.00000000],[1777849652000,0.00000000],[1777849973000,0.00000000],[1777850277000,0.00000000],[1777850582000,0.00000000],[1777850869000,0.00000000],[1777851173000,0.00000000],[1777851509000,0.00000000],[1777851812000,0.00000000],[1777852053000,0.00000000],[1777852405000,0.00000000],[1777852677000,0.00000000],[1777852950000,0.00000000],[1777853252000,0.00000000],[1777853573000,0.00000000],[1777853878000,0.00000000],[1777854181000,0.00000000],[1777854501000,0.00000000],[1777854773000,0.00000000],[1777855077000,0.00000000],[1777855414000,0.00000000],[1777855652000,0.00000000],[1777855973000,0.00000000],[1777856389000,0.00000000],[1777856597000,0.00000000],[1777856853000,0.00000000],[1777857206000,0.00000000],[1777857477000,0.00000000],[1777857782000,0.00000000],[1777858052000,0.00000000],[1777858405000,0.00000000],[1777858678000,0.00000000],[1777858981000,0.00000000],[1777859269000,0.00000000],[1777859574000,0.00000000],[1777859909000,0.00000000],[1777860181000,0.00000000],[1777860470000,0.00000000],[1777860949000,0.00000000],[1777861077000,0.00000000],[1777861381000,0.00000000],[1777861669000,0.00000000],[1777861973000,0.00000000],[1777862277000,0.00000000],[1777862581000,0.00000000],[1777862852000,0.00000000],[1777863205000,0.00000000],[1777863477000,0.00000000],[1777863781000,0.00000000],[1777864053000,0.00000000],[1777864374000,0.00000000],[1777864694000,0.00000000],[1777864950000,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: [[1777845670000,0.00000000],[1777845861000,0.00000000],[1777846309000,0.00000000],[1777846373000,0.00000000],[1777846757000,0.00000000],[1777846982000,0.00000000],[1777847252000,0.00000000],[1777847606000,0.00000000],[1777847878000,0.00000000],[1777848181000,0.00000000],[1777848453000,0.00000000],[1777848774000,0.00000000],[1777849077000,0.00000000],[1777849350000,0.00000000],[1777849652000,0.00000000],[1777849973000,0.00000000],[1777850277000,0.00000000],[1777850582000,0.00000000],[1777850869000,0.00000000],[1777851173000,0.00000000],[1777851509000,0.00000000],[1777851812000,0.00000000],[1777852053000,0.00000000],[1777852405000,0.00000000],[1777852677000,0.00000000],[1777852950000,0.00000000],[1777853252000,0.00000000],[1777853573000,0.00000000],[1777853878000,0.00000000],[1777854181000,0.00000000],[1777854501000,0.00000000],[1777854773000,0.00000000],[1777855077000,0.00000000],[1777855414000,0.00000000],[1777855652000,0.00000000],[1777855973000,0.00000000],[1777856389000,0.00000000],[1777856597000,0.00000000],[1777856853000,0.00000000],[1777857206000,0.00000000],[1777857477000,0.00000000],[1777857782000,0.00000000],[1777858052000,0.00000000],[1777858405000,0.00000000],[1777858678000,0.00000000],[1777858981000,0.00000000],[1777859269000,0.00000000],[1777859574000,0.00000000],[1777859909000,0.00000000],[1777860181000,0.00000000],[1777860470000,0.00000000],[1777860949000,0.00000000],[1777861077000,0.00000000],[1777861381000,0.00000000],[1777861669000,0.00000000],[1777861973000,0.00000000],[1777862277000,0.00000000],[1777862581000,0.00000000],[1777862852000,0.00000000],[1777863205000,0.00000000],[1777863477000,0.00000000],[1777863781000,0.00000000],[1777864053000,0.00000000],[1777864374000,0.00000000],[1777864694000,0.00000000],[1777864950000,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; }