var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1586556008000,11.70000000],[1586556608000,11.50000000],[1586557208000,10.90000000],[1586557809000,10.50000000],[1586558409000,10.00000000],[1586559008000,10.00000000],[1586559609000,10.20000000],[1586560209000,10.30000000],[1586560808000,10.40000000],[1586561408000,10.60000000],[1586562009000,10.60000000],[1586562609000,10.50000000],[1586563208000,10.50000000],[1586563809000,10.40000000],[1586564408000,10.30000000],[1586565009000,10.30000000],[1586565609000,10.20000000],[1586566208000,10.10000000],[1586566809000,10.10000000],[1586567409000,9.80000000],[1586568009000,9.40000000],[1586568609000,9.50000000],[1586569209000,9.50000000],[1586569809000,9.40000000],[1586570409000,9.20000000],[1586571009000,9.10000000],[1586571609000,8.90000000],[1586572208000,8.90000000],[1586572809000,8.80000000],[1586573409000,8.80000000],[1586574008000,8.70000000],[1586574609000,8.80000000],[1586575209000,8.70000000],[1586575808000,8.50000000],[1586576408000,8.40000000],[1586577009000,9.00000000],[1586577609000,9.20000000],[1586578209000,9.40000000],[1586578809000,9.50000000],[1586579409000,9.50000000],[1586580009000,9.60000000],[1586580609000,9.80000000],[1586581209000,10.50000000],[1586581809000,11.40000000],[1586582409000,11.90000000],[1586583009000,12.00000000],[1586583609000,11.60000000],[1586584209000,11.60000000],[1586584809000,12.20000000],[1586585409000,12.20000000],[1586586009000,12.30000000],[1586586609000,12.20000000],[1586587209000,12.40000000],[1586587809000,12.60000000],[1586588409000,12.80000000],[1586589009000,13.20000000],[1586589609000,13.20000000],[1586590209000,13.30000000],[1586590810000,13.30000000],[1586591409000,13.50000000],[1586592010000,13.30000000],[1586592610000,13.40000000],[1586593209000,13.70000000],[1586593809000,13.80000000],[1586594409000,14.10000000],[1586595010000,14.30000000],[1586595609000,14.50000000],[1586596209000,14.40000000],[1586596809000,14.20000000],[1586597409000,14.40000000],[1586598009000,15.00000000],[1586598609000,15.40000000],[1586599209000,15.50000000],[1586599809000,15.60000000],[1586600409000,15.60000000],[1586601009000,15.80000000],[1586601609000,15.90000000],[1586602209000,16.20000000],[1586602809000,16.50000000],[1586603409000,16.50000000],[1586604009000,16.50000000],[1586604610000,16.50000000],[1586605209000,16.80000000],[1586605810000,16.80000000],[1586606409000,17.20000000],[1586607009000,17.30000000],[1586607610000,17.10000000],[1586608209000,17.30000000],[1586608809000,17.50000000],[1586609410000,17.40000000],[1586610009000,17.20000000],[1586610609000,17.40000000],[1586611209000,17.80000000],[1586611809000,18.10000000],[1586612409000,17.80000000],[1586613009000,17.50000000],[1586613609000,17.70000000],[1586614209000,17.90000000],[1586614809000,17.80000000],[1586615410000,17.50000000],[1586616009000,17.40000000],[1586616609000,17.30000000],[1586617209000,17.60000000],[1586617809000,17.40000000],[1586618409000,17.40000000],[1586619009000,17.20000000],[1586619609000,17.30000000],[1586620209000,17.30000000],[1586620809000,17.20000000],[1586621409000,16.80000000],[1586622010000,16.50000000],[1586622610000,16.40000000],[1586623210000,15.80000000],[1586623809000,15.10000000],[1586624410000,14.80000000],[1586625010000,14.60000000],[1586625609000,14.30000000],[1586626210000,14.20000000],[1586626810000,14.10000000],[1586627409000,13.70000000],[1586628009000,13.50000000],[1586628609000,13.10000000],[1586629209000,12.80000000],[1586629809000,12.80000000],[1586630410000,12.50000000],[1586631009000,12.10000000],[1586631609000,12.00000000],[1586632210000,11.90000000],[1586632809000,12.00000000],[1586633409000,11.80000000],[1586634009000,11.50000000],[1586634609000,11.50000000],[1586635209000,11.60000000],[1586635810000,11.60000000],[1586636410000,11.60000000],[1586637010000,11.60000000],[1586637610000,11.70000000],[1586638210000,11.70000000],[1586638809000,11.60000000],[1586639410000,11.60000000],[1586640009000,11.50000000],[1586640609000,11.60000000],[1586641210000,11.50000000],[1586641810000,11.70000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1586556008000,-3.1],[1586556608000,-3],[1586557208000,-3.2],[1586557809000,-3.3],[1586558409000,-3.4],[1586559008000,-3.5],[1586559609000,-3.7],[1586560209000,-3.8],[1586560808000,-3.9],[1586561408000,-4],[1586562009000,-4],[1586562609000,-4.1],[1586563208000,-4.1],[1586563809000,-4],[1586564408000,-3.8],[1586565009000,-3.5],[1586565609000,-3.4],[1586566208000,-3.2],[1586566809000,-3],[1586567409000,-3],[1586568009000,-3],[1586568609000,-2.7],[1586569209000,-2.6],[1586569809000,-2.6],[1586570409000,-2.6],[1586571009000,-2.6],[1586571609000,-2.7],[1586572208000,-2.6],[1586572809000,-2.6],[1586573409000,-2.6],[1586574008000,-2.7],[1586574609000,-2.6],[1586575209000,-2.6],[1586575808000,-2.6],[1586576408000,-2.6],[1586577009000,-2.5],[1586577609000,-2.7],[1586578209000,-2.7],[1586578809000,-2.7],[1586579409000,-2.8],[1586580009000,-2.7],[1586580609000,-2.6],[1586581209000,-1.7],[1586581809000,-1.5],[1586582409000,-1.2],[1586583009000,-1.3],[1586583609000,-1.6],[1586584209000,-0.7],[1586584809000,-0.7],[1586585409000,-1],[1586586009000,-0.3],[1586586609000,-0.8],[1586587209000,-0.5],[1586587809000,-1],[1586588409000,-0.8],[1586589009000,-0.6],[1586589609000,-0.6],[1586590209000,-0.5],[1586590810000,-0.6],[1586591409000,-0.4],[1586592010000,-0.4],[1586592610000,-0.1],[1586593209000,0.2],[1586593809000,0.1],[1586594409000,0.5],[1586595010000,0.6],[1586595609000,0.8],[1586596209000,0.5],[1586596809000,0.4],[1586597409000,0.7],[1586598009000,1.5],[1586598609000,1.6],[1586599209000,1.6],[1586599809000,1.5],[1586600409000,1.2],[1586601009000,1.3],[1586601609000,1.4],[1586602209000,1.6],[1586602809000,1.1],[1586603409000,1.4],[1586604009000,1],[1586604610000,0.6],[1586605209000,0.3],[1586605810000,-0.2],[1586606409000,-0.5],[1586607009000,-0.3],[1586607610000,-1],[1586608209000,-0.9],[1586608809000,-0.7],[1586609410000,-1.3],[1586610009000,-1.8],[1586610609000,-1.8],[1586611209000,-1.2],[1586611809000,-1.2],[1586612409000,-1.4],[1586613009000,-1.7],[1586613609000,-1.5],[1586614209000,-1.4],[1586614809000,-1.7],[1586615410000,-2.2],[1586616009000,-2.1],[1586616609000,-2.1],[1586617209000,-1.9],[1586617809000,-2.2],[1586618409000,-2.3],[1586619009000,-2.3],[1586619609000,-2.4],[1586620209000,-2.6],[1586620809000,-2.7],[1586621409000,-2.9],[1586622010000,-2.8],[1586622610000,-2.4],[1586623210000,-1.6],[1586623809000,-1.3],[1586624410000,-1.5],[1586625010000,-1.7],[1586625609000,-1.9],[1586626210000,-2],[1586626810000,-2.1],[1586627409000,-2.3],[1586628009000,-2.4],[1586628609000,-2.6],[1586629209000,-2.5],[1586629809000,-2.2],[1586630410000,-2.1],[1586631009000,-2.1],[1586631609000,-2.1],[1586632210000,-2.2],[1586632809000,-2.4],[1586633409000,-2.2],[1586634009000,-2.4],[1586634609000,-2.5],[1586635209000,-2.6],[1586635810000,-2.7],[1586636410000,-2.8],[1586637010000,-2.9],[1586637610000,-2.9],[1586638210000,-2.9],[1586638809000,-3],[1586639410000,-3],[1586640009000,-3.1],[1586640609000,-3.1],[1586641210000,-3],[1586641810000,-2.9],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1586556008000,35.80000000],[1586556608000,36.40000000],[1586557208000,37.40000000],[1586557809000,38.20000000],[1586558409000,39.00000000],[1586559008000,38.80000000],[1586559609000,37.60000000],[1586560209000,37.20000000],[1586560808000,36.60000000],[1586561408000,36.00000000],[1586562009000,36.00000000],[1586562609000,36.00000000],[1586563208000,36.00000000],[1586563809000,36.40000000],[1586564408000,37.20000000],[1586565009000,38.00000000],[1586565609000,38.60000000],[1586566208000,39.40000000],[1586566809000,40.00000000],[1586567409000,40.80000000],[1586568009000,41.80000000],[1586568609000,42.60000000],[1586569209000,43.00000000],[1586569809000,43.20000000],[1586570409000,43.80000000],[1586571009000,44.00000000],[1586571609000,44.40000000],[1586572208000,44.80000000],[1586572809000,45.00000000],[1586573409000,45.00000000],[1586574008000,45.00000000],[1586574609000,45.00000000],[1586575209000,45.20000000],[1586575808000,45.80000000],[1586576408000,46.20000000],[1586577009000,44.60000000],[1586577609000,43.60000000],[1586578209000,43.00000000],[1586578809000,42.60000000],[1586579409000,42.40000000],[1586580009000,42.20000000],[1586580609000,42.20000000],[1586581209000,42.80000000],[1586581809000,41.00000000],[1586582409000,40.60000000],[1586583009000,40.00000000],[1586583609000,40.20000000],[1586584209000,42.80000000],[1586584809000,41.20000000],[1586585409000,40.40000000],[1586586009000,42.00000000],[1586586609000,40.80000000],[1586587209000,41.20000000],[1586587809000,39.40000000],[1586588409000,39.20000000],[1586589009000,39.00000000],[1586589609000,38.80000000],[1586590209000,39.00000000],[1586590810000,38.60000000],[1586591409000,38.80000000],[1586592010000,39.20000000],[1586592610000,39.80000000],[1586593209000,40.00000000],[1586593809000,39.40000000],[1586594409000,39.80000000],[1586595010000,39.60000000],[1586595609000,39.60000000],[1586596209000,39.00000000],[1586596809000,39.20000000],[1586597409000,39.60000000],[1586598009000,40.20000000],[1586598609000,39.40000000],[1586599209000,39.20000000],[1586599809000,38.60000000],[1586600409000,37.80000000],[1586601009000,37.80000000],[1586601609000,37.80000000],[1586602209000,37.40000000],[1586602809000,35.60000000],[1586603409000,36.40000000],[1586604009000,35.20000000],[1586604610000,34.20000000],[1586605209000,32.80000000],[1586605810000,31.60000000],[1586606409000,30.20000000],[1586607009000,30.60000000],[1586607610000,29.40000000],[1586608209000,29.20000000],[1586608809000,29.20000000],[1586609410000,28.20000000],[1586610009000,27.40000000],[1586610609000,27.20000000],[1586611209000,27.60000000],[1586611809000,27.20000000],[1586612409000,27.20000000],[1586613009000,27.20000000],[1586613609000,27.20000000],[1586614209000,27.00000000],[1586614809000,26.60000000],[1586615410000,26.20000000],[1586616009000,26.60000000],[1586616609000,26.80000000],[1586617209000,26.60000000],[1586617809000,26.40000000],[1586618409000,26.20000000],[1586619009000,26.40000000],[1586619609000,26.20000000],[1586620209000,25.80000000],[1586620809000,25.80000000],[1586621409000,26.00000000],[1586622010000,26.80000000],[1586622610000,27.60000000],[1586623210000,30.60000000],[1586623809000,32.60000000],[1586624410000,32.80000000],[1586625010000,32.80000000],[1586625609000,33.00000000],[1586626210000,32.80000000],[1586626810000,32.80000000],[1586627409000,33.20000000],[1586628009000,33.40000000],[1586628609000,33.80000000],[1586629209000,34.80000000],[1586629809000,35.40000000],[1586630410000,36.40000000],[1586631009000,37.40000000],[1586631609000,37.60000000],[1586632210000,37.60000000],[1586632809000,37.00000000],[1586633409000,37.80000000],[1586634009000,38.20000000],[1586634609000,37.80000000],[1586635209000,37.40000000],[1586635810000,37.00000000],[1586636410000,36.80000000],[1586637010000,36.40000000],[1586637610000,36.20000000],[1586638210000,36.20000000],[1586638809000,36.20000000],[1586639410000,36.20000000],[1586640009000,36.20000000],[1586640609000,36.00000000],[1586641210000,36.40000000],[1586641810000,36.20000000],], 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: [[1586556008000,1024],[1586556608000,1024],[1586557208000,1024.3],[1586557809000,1024.4],[1586558409000,1024.4],[1586559008000,1024.4],[1586559609000,1024.3],[1586560209000,1024.3],[1586560808000,1024.2],[1586561408000,1024.1],[1586562009000,1024.3],[1586562609000,1024.3],[1586563208000,1024.3],[1586563809000,1024.4],[1586564408000,1024.5],[1586565009000,1024.6],[1586565609000,1024.7],[1586566208000,1024.8],[1586566809000,1024.9],[1586567409000,1025],[1586568009000,1025],[1586568609000,1025],[1586569209000,1025],[1586569809000,1025],[1586570409000,1025.2],[1586571009000,1025.2],[1586571609000,1025.3],[1586572208000,1025.4],[1586572809000,1025.5],[1586573409000,1025.5],[1586574008000,1025.5],[1586574609000,1025.5],[1586575209000,1025.5],[1586575808000,1025.6],[1586576408000,1025.6],[1586577009000,1025.6],[1586577609000,1025.5],[1586578209000,1025.6],[1586578809000,1025.7],[1586579409000,1025.7],[1586580009000,1025.7],[1586580609000,1025.8],[1586581209000,1025.7],[1586581809000,1025.5],[1586582409000,1025.4],[1586583009000,1025.5],[1586583609000,1025.6],[1586584209000,1025.7],[1586584809000,1025.7],[1586585409000,1025.8],[1586586009000,1025.8],[1586586609000,1025.9],[1586587209000,1025.8],[1586587809000,1025.9],[1586588409000,1025.9],[1586589009000,1025.9],[1586589609000,1026],[1586590209000,1026],[1586590810000,1026.1],[1586591409000,1026.2],[1586592010000,1026.3],[1586592610000,1026.2],[1586593209000,1026.1],[1586593809000,1026.2],[1586594409000,1026.1],[1586595010000,1026.1],[1586595609000,1026.1],[1586596209000,1026],[1586596809000,1026.1],[1586597409000,1026],[1586598009000,1025.9],[1586598609000,1025.7],[1586599209000,1025.6],[1586599809000,1025.5],[1586600409000,1025.4],[1586601009000,1025.3],[1586601609000,1025.3],[1586602209000,1025.1],[1586602809000,1025],[1586603409000,1024.9],[1586604009000,1024.8],[1586604610000,1024.7],[1586605209000,1024.7],[1586605810000,1024.6],[1586606409000,1024.5],[1586607009000,1024.5],[1586607610000,1024.4],[1586608209000,1024.4],[1586608809000,1024.2],[1586609410000,1024.2],[1586610009000,1024.1],[1586610609000,1023.9],[1586611209000,1023.8],[1586611809000,1023.7],[1586612409000,1023.7],[1586613009000,1023.7],[1586613609000,1023.7],[1586614209000,1023.7],[1586614809000,1023.7],[1586615410000,1023.7],[1586616009000,1023.7],[1586616609000,1023.7],[1586617209000,1023.6],[1586617809000,1023.6],[1586618409000,1023.6],[1586619009000,1023.6],[1586619609000,1023.6],[1586620209000,1023.5],[1586620809000,1023.6],[1586621409000,1023.7],[1586622010000,1023.8],[1586622610000,1023.9],[1586623210000,1024],[1586623809000,1024.1],[1586624410000,1024.2],[1586625010000,1024.3],[1586625609000,1024.4],[1586626210000,1024.4],[1586626810000,1024.5],[1586627409000,1024.6],[1586628009000,1024.7],[1586628609000,1024.9],[1586629209000,1025.1],[1586629809000,1025.2],[1586630410000,1025.3],[1586631009000,1025.4],[1586631609000,1025.5],[1586632210000,1025.6],[1586632809000,1025.5],[1586633409000,1025.6],[1586634009000,1025.6],[1586634609000,1025.6],[1586635209000,1025.6],[1586635810000,1025.6],[1586636410000,1025.6],[1586637010000,1025.6],[1586637610000,1025.6],[1586638210000,1025.6],[1586638809000,1025.6],[1586639410000,1025.7],[1586640009000,1025.7],[1586640609000,1025.8],[1586641210000,1025.7],[1586641810000,1025.7],], 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: 'Slnečné žiarenie (W/m2)', data: [[1586556008000,0.00000000],[1586556608000,0.00000000],[1586557208000,0.00000000],[1586557809000,0.00000000],[1586558409000,0.00000000],[1586559008000,0.00000000],[1586559609000,0.00000000],[1586560209000,0.00000000],[1586560808000,0.00000000],[1586561408000,0.00000000],[1586562009000,0.00000000],[1586562609000,0.00000000],[1586563208000,0.00000000],[1586563809000,0.00000000],[1586564408000,0.00000000],[1586565009000,0.00000000],[1586565609000,0.00000000],[1586566208000,0.00000000],[1586566809000,0.00000000],[1586567409000,0.00000000],[1586568009000,0.00000000],[1586568609000,0.00000000],[1586569209000,0.00000000],[1586569809000,0.00000000],[1586570409000,0.00000000],[1586571009000,0.00000000],[1586571609000,0.00000000],[1586572208000,0.00000000],[1586572809000,0.00000000],[1586573409000,0.00000000],[1586574008000,0.00000000],[1586574609000,0.00000000],[1586575209000,0.00000000],[1586575808000,0.00000000],[1586576408000,0.00000000],[1586577009000,0.00000000],[1586577609000,2.00000000],[1586578209000,6.00000000],[1586578809000,14.00000000],[1586579409000,22.00000000],[1586580009000,30.00000000],[1586580609000,46.00000000],[1586581209000,62.00000000],[1586581809000,80.00000000],[1586582409000,88.00000000],[1586583009000,122.00000000],[1586583609000,140.00000000],[1586584209000,182.00000000],[1586584809000,210.00000000],[1586585409000,244.00000000],[1586586009000,274.00000000],[1586586609000,304.00000000],[1586587209000,334.00000000],[1586587809000,366.00000000],[1586588409000,396.00000000],[1586589009000,426.00000000],[1586589609000,456.00000000],[1586590209000,484.00000000],[1586590810000,514.00000000],[1586591409000,540.00000000],[1586592010000,566.00000000],[1586592610000,590.00000000],[1586593209000,616.00000000],[1586593809000,638.00000000],[1586594409000,658.00000000],[1586595010000,678.00000000],[1586595609000,696.00000000],[1586596209000,714.00000000],[1586596809000,730.00000000],[1586597409000,746.00000000],[1586598009000,760.00000000],[1586598609000,772.00000000],[1586599209000,782.00000000],[1586599809000,790.00000000],[1586600409000,798.00000000],[1586601009000,802.00000000],[1586601609000,810.00000000],[1586602209000,808.00000000],[1586602809000,810.00000000],[1586603409000,808.00000000],[1586604009000,810.00000000],[1586604610000,804.00000000],[1586605209000,800.00000000],[1586605810000,788.00000000],[1586606409000,778.00000000],[1586607009000,768.00000000],[1586607610000,756.00000000],[1586608209000,746.00000000],[1586608809000,732.00000000],[1586609410000,720.00000000],[1586610009000,686.00000000],[1586610609000,666.00000000],[1586611209000,658.00000000],[1586611809000,630.00000000],[1586612409000,606.00000000],[1586613009000,580.00000000],[1586613609000,556.00000000],[1586614209000,532.00000000],[1586614809000,504.00000000],[1586615410000,476.00000000],[1586616009000,448.00000000],[1586616609000,416.00000000],[1586617209000,388.00000000],[1586617809000,354.00000000],[1586618409000,324.00000000],[1586619009000,294.00000000],[1586619609000,262.00000000],[1586620209000,228.00000000],[1586620809000,194.00000000],[1586621409000,90.00000000],[1586622010000,58.00000000],[1586622610000,52.00000000],[1586623210000,36.00000000],[1586623809000,26.00000000],[1586624410000,20.00000000],[1586625010000,16.00000000],[1586625609000,12.00000000],[1586626210000,6.00000000],[1586626810000,2.00000000],[1586627409000,0.00000000],[1586628009000,0.00000000],[1586628609000,0.00000000],[1586629209000,0.00000000],[1586629809000,0.00000000],[1586630410000,0.00000000],[1586631009000,0.00000000],[1586631609000,0.00000000],[1586632210000,0.00000000],[1586632809000,0.00000000],[1586633409000,0.00000000],[1586634009000,0.00000000],[1586634609000,0.00000000],[1586635209000,0.00000000],[1586635810000,0.00000000],[1586636410000,0.00000000],[1586637010000,0.00000000],[1586637610000,0.00000000],[1586638210000,0.00000000],[1586638809000,0.00000000],[1586639410000,0.00000000],[1586640009000,0.00000000],[1586640609000,0.00000000],[1586641210000,0.00000000],[1586641810000,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); }); $('.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; }