var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1605913211000,1.10000000],[1605913811000,1.10000000],[1605914410000,1.10000000],[1605915011000,1.10000000],[1605915611000,1.10000000],[1605916211000,1.00000000],[1605916811000,1.00000000],[1605917410000,0.90000000],[1605918010000,0.90000000],[1605918611000,0.90000000],[1605919211000,0.80000000],[1605919811000,0.80000000],[1605920411000,0.80000000],[1605921010000,0.90000000],[1605921611000,0.90000000],[1605922211000,1.00000000],[1605922810000,0.90000000],[1605923410000,0.90000000],[1605924011000,0.80000000],[1605924610000,0.70000000],[1605925211000,0.70000000],[1605925811000,0.70000000],[1605926411000,0.80000000],[1605927011000,0.70000000],[1605927611000,0.80000000],[1605928211000,0.80000000],[1605928810000,0.90000000],[1605929411000,1.00000000],[1605930011000,0.90000000],[1605930611000,0.90000000],[1605931211000,0.80000000],[1605931811000,0.60000000],[1605932411000,0.40000000],[1605933011000,0.10000000],[1605933611000,0.10000000],[1605934211000,-0.40000000],[1605934811000,-0.60000000],[1605935411000,-0.40000000],[1605936011000,-0.50000000],[1605936611000,-0.40000000],[1605937211000,-0.40000000],[1605937811000,-0.50000000],[1605938411000,-0.60000000],[1605939011000,-0.50000000],[1605939611000,-0.40000000],[1605940212000,0.00000000],[1605940811000,0.40000000],[1605941412000,0.70000000],[1605942011000,1.10000000],[1605942611000,1.60000000],[1605943211000,1.90000000],[1605943811000,2.40000000],[1605944411000,2.90000000],[1605945012000,2.60000000],[1605945611000,2.50000000],[1605946211000,3.00000000],[1605946812000,3.20000000],[1605947411000,3.20000000],[1605948012000,3.20000000],[1605948612000,3.30000000],[1605949211000,3.60000000],[1605949811000,4.00000000],[1605950412000,4.20000000],[1605951011000,4.50000000],[1605951611000,4.30000000],[1605952212000,4.20000000],[1605952811000,4.30000000],[1605953412000,4.50000000],[1605954012000,4.10000000],[1605954611000,4.40000000],[1605955212000,4.70000000],[1605955812000,4.80000000],[1605956411000,4.90000000],[1605957012000,4.80000000],[1605957612000,4.70000000],[1605958212000,4.70000000],[1605958812000,4.80000000],[1605959412000,4.80000000],[1605960011000,4.60000000],[1605960612000,4.70000000],[1605961212000,4.80000000],[1605961811000,4.80000000],[1605962411000,4.80000000],[1605963012000,4.80000000],[1605963611000,4.80000000],[1605964212000,4.50000000],[1605964812000,4.50000000],[1605965411000,4.50000000],[1605966012000,4.50000000],[1605966612000,4.30000000],[1605967211000,3.80000000],[1605967812000,3.50000000],[1605968412000,3.20000000],[1605969011000,3.00000000],[1605969612000,2.70000000],[1605970212000,2.40000000],[1605970812000,2.20000000],[1605971412000,1.90000000],[1605972012000,1.80000000],[1605972612000,1.40000000],[1605973212000,1.00000000],[1605973812000,1.00000000],[1605974411000,1.00000000],[1605975012000,0.90000000],[1605975612000,0.80000000],[1605976212000,0.70000000],[1605976812000,0.50000000],[1605977412000,0.30000000],[1605978012000,0.30000000],[1605978612000,0.20000000],[1605979212000,0.00000000],[1605979812000,-0.10000000],[1605980412000,-0.10000000],[1605981012000,-0.10000000],[1605981612000,0.10000000],[1605982212000,-0.10000000],[1605982812000,-0.20000000],[1605983412000,0.10000000],[1605984012000,0.10000000],[1605984612000,-0.10000000],[1605985212000,-0.20000000],[1605985813000,-0.30000000],[1605986412000,-0.40000000],[1605987012000,-0.40000000],[1605987612000,-0.30000000],[1605988213000,-0.20000000],[1605988812000,-0.30000000],[1605989413000,-0.10000000],[1605990012000,-0.20000000],[1605990613000,-0.30000000],[1605991212000,-0.30000000],[1605991813000,-0.20000000],[1605992413000,-0.40000000],[1605993012000,-0.30000000],[1605993613000,-0.40000000],[1605994212000,-0.90000000],[1605994813000,-0.60000000],[1605995412000,-0.40000000],[1605996012000,-0.40000000],[1605996613000,-0.60000000],[1605997212000,-0.80000000],[1605997812000,-0.70000000],[1605998413000,-0.60000000],[1605999012000,-0.60000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1605913211000,-4.2],[1605913811000,-4.2],[1605914410000,-4.3],[1605915011000,-4.3],[1605915611000,-4.4],[1605916211000,-4.5],[1605916811000,-4.5],[1605917410000,-4.6],[1605918010000,-4.6],[1605918611000,-4.6],[1605919211000,-4.7],[1605919811000,-4.7],[1605920411000,-4.8],[1605921010000,-4.8],[1605921611000,-4.9],[1605922211000,-4.9],[1605922810000,-5.1],[1605923410000,-5.1],[1605924011000,-5.3],[1605924610000,-5.4],[1605925211000,-5.4],[1605925811000,-5.5],[1605926411000,-5.6],[1605927011000,-5.7],[1605927611000,-5.8],[1605928211000,-6],[1605928810000,-6.1],[1605929411000,-6.1],[1605930011000,-6.1],[1605930611000,-6.2],[1605931211000,-6.3],[1605931811000,-6.4],[1605932411000,-6.6],[1605933011000,-6.8],[1605933611000,-6.6],[1605934211000,-6.6],[1605934811000,-6.6],[1605935411000,-6.4],[1605936011000,-6.4],[1605936611000,-6.5],[1605937211000,-6.5],[1605937811000,-6.6],[1605938411000,-6.5],[1605939011000,-6.3],[1605939611000,-6.2],[1605940212000,-5.9],[1605940811000,-5.6],[1605941412000,-5.5],[1605942011000,-5.3],[1605942611000,-5.1],[1605943211000,-5.1],[1605943811000,-5],[1605944411000,-4.9],[1605945012000,-4.7],[1605945611000,-4.7],[1605946211000,-4.5],[1605946812000,-4.4],[1605947411000,-4.5],[1605948012000,-4.6],[1605948612000,-4.7],[1605949211000,-4.6],[1605949811000,-4.1],[1605950412000,-3.8],[1605951011000,-3.6],[1605951611000,-3.5],[1605952212000,-3.5],[1605952811000,-3.6],[1605953412000,-3.6],[1605954012000,-4.1],[1605954611000,-3.8],[1605955212000,-3.6],[1605955812000,-3.5],[1605956411000,-3.3],[1605957012000,-3.5],[1605957612000,-3.6],[1605958212000,-3.3],[1605958812000,-2.9],[1605959412000,-3.1],[1605960011000,-3.4],[1605960612000,-3.5],[1605961212000,-3.3],[1605961811000,-3.3],[1605962411000,-3.2],[1605963012000,-3.2],[1605963611000,-3.1],[1605964212000,-3.3],[1605964812000,-3.2],[1605965411000,-3.3],[1605966012000,-3.5],[1605966612000,-3.7],[1605967211000,-3.6],[1605967812000,-3.7],[1605968412000,-3.8],[1605969011000,-3.9],[1605969612000,-4.1],[1605970212000,-4.2],[1605970812000,-4.2],[1605971412000,-4.2],[1605972012000,-4.2],[1605972612000,-4.4],[1605973212000,-4.5],[1605973812000,-4.5],[1605974411000,-4.5],[1605975012000,-4.5],[1605975612000,-4.5],[1605976212000,-4.5],[1605976812000,-4.6],[1605977412000,-4.7],[1605978012000,-4.7],[1605978612000,-4.7],[1605979212000,-4.8],[1605979812000,-4.8],[1605980412000,-4.6],[1605981012000,-4.6],[1605981612000,-4.4],[1605982212000,-4.6],[1605982812000,-4.6],[1605983412000,-4.4],[1605984012000,-4.4],[1605984612000,-4.6],[1605985212000,-4.7],[1605985813000,-4.8],[1605986412000,-4.8],[1605987012000,-4.9],[1605987612000,-4.7],[1605988213000,-4.7],[1605988812000,-4.8],[1605989413000,-4.6],[1605990012000,-4.7],[1605990613000,-4.8],[1605991212000,-4.8],[1605991813000,-4.8],[1605992413000,-5],[1605993012000,-4.9],[1605993613000,-5],[1605994212000,-5.4],[1605994813000,-5.1],[1605995412000,-5],[1605996012000,-5.1],[1605996613000,-5.4],[1605997212000,-5.6],[1605997812000,-5.6],[1605998413000,-5.7],[1605999012000,-5.7],], 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: [[1605913211000,68.00000000],[1605913811000,68.20000000],[1605914410000,67.80000000],[1605915011000,67.40000000],[1605915611000,67.20000000],[1605916211000,67.20000000],[1605916811000,67.20000000],[1605917410000,67.20000000],[1605918010000,67.20000000],[1605918611000,67.20000000],[1605919211000,67.00000000],[1605919811000,66.80000000],[1605920411000,66.60000000],[1605921010000,66.00000000],[1605921611000,65.40000000],[1605922211000,65.00000000],[1605922810000,64.80000000],[1605923410000,64.40000000],[1605924011000,64.20000000],[1605924610000,64.00000000],[1605925211000,64.00000000],[1605925811000,63.40000000],[1605926411000,62.60000000],[1605927011000,62.40000000],[1605927611000,61.60000000],[1605928211000,61.00000000],[1605928810000,60.00000000],[1605929411000,59.40000000],[1605930011000,59.80000000],[1605930611000,59.60000000],[1605931211000,59.40000000],[1605931811000,59.80000000],[1605932411000,59.80000000],[1605933011000,60.00000000],[1605933611000,61.00000000],[1605934211000,63.40000000],[1605934811000,64.20000000],[1605935411000,64.20000000],[1605936011000,64.60000000],[1605936611000,64.00000000],[1605937211000,63.80000000],[1605937811000,64.00000000],[1605938411000,64.80000000],[1605939011000,65.20000000],[1605939611000,65.40000000],[1605940212000,65.00000000],[1605940811000,64.40000000],[1605941412000,63.60000000],[1605942011000,62.60000000],[1605942611000,61.40000000],[1605943211000,60.00000000],[1605943811000,58.60000000],[1605944411000,57.00000000],[1605945012000,59.00000000],[1605945611000,59.20000000],[1605946211000,58.20000000],[1605946812000,57.80000000],[1605947411000,57.20000000],[1605948012000,56.80000000],[1605948612000,56.20000000],[1605949211000,55.60000000],[1605949811000,55.80000000],[1605950412000,56.20000000],[1605951011000,56.20000000],[1605951611000,57.20000000],[1605952212000,57.60000000],[1605952811000,56.80000000],[1605953412000,56.20000000],[1605954012000,55.40000000],[1605954611000,55.60000000],[1605955212000,55.20000000],[1605955812000,55.40000000],[1605956411000,55.60000000],[1605957012000,55.20000000],[1605957612000,55.20000000],[1605958212000,56.40000000],[1605958812000,57.80000000],[1605959412000,57.00000000],[1605960011000,56.60000000],[1605960612000,55.80000000],[1605961212000,56.20000000],[1605961811000,56.00000000],[1605962411000,56.40000000],[1605963012000,56.40000000],[1605963611000,57.00000000],[1605964212000,57.20000000],[1605964812000,57.60000000],[1605965411000,57.40000000],[1605966012000,56.60000000],[1605966612000,56.60000000],[1605967211000,59.00000000],[1605967812000,59.80000000],[1605968412000,60.40000000],[1605969011000,61.00000000],[1605969612000,61.40000000],[1605970212000,62.00000000],[1605970812000,63.00000000],[1605971412000,64.20000000],[1605972012000,64.60000000],[1605972612000,65.80000000],[1605973212000,67.00000000],[1605973812000,67.20000000],[1605974411000,67.20000000],[1605975012000,67.60000000],[1605975612000,68.20000000],[1605976212000,68.40000000],[1605976812000,68.80000000],[1605977412000,69.20000000],[1605978012000,69.60000000],[1605978612000,70.00000000],[1605979212000,70.60000000],[1605979812000,71.20000000],[1605980412000,71.80000000],[1605981012000,71.80000000],[1605981612000,71.80000000],[1605982212000,72.00000000],[1605982812000,72.60000000],[1605983412000,72.20000000],[1605984012000,72.00000000],[1605984612000,72.00000000],[1605985212000,72.00000000],[1605985813000,72.20000000],[1605986412000,72.40000000],[1605987012000,72.20000000],[1605987612000,72.40000000],[1605988213000,72.00000000],[1605988812000,72.00000000],[1605989413000,72.00000000],[1605990012000,72.00000000],[1605990613000,72.00000000],[1605991212000,71.80000000],[1605991813000,71.60000000],[1605992413000,71.40000000],[1605993012000,71.40000000],[1605993613000,71.20000000],[1605994212000,72.00000000],[1605994813000,71.80000000],[1605995412000,71.40000000],[1605996012000,70.80000000],[1605996613000,70.40000000],[1605997212000,70.20000000],[1605997812000,69.60000000],[1605998413000,69.00000000],[1605999012000,69.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: [[1605913211000,1034.5],[1605913811000,1034.5],[1605914410000,1034.5],[1605915011000,1034.6],[1605915611000,1034.7],[1605916211000,1034.7],[1605916811000,1034.8],[1605917410000,1034.9],[1605918010000,1035],[1605918611000,1035],[1605919211000,1035.1],[1605919811000,1035.2],[1605920411000,1035.3],[1605921010000,1035.3],[1605921611000,1035.3],[1605922211000,1035.5],[1605922810000,1035.7],[1605923410000,1035.7],[1605924011000,1035.7],[1605924610000,1035.7],[1605925211000,1035.7],[1605925811000,1035.8],[1605926411000,1035.9],[1605927011000,1036],[1605927611000,1036],[1605928211000,1036.2],[1605928810000,1036.2],[1605929411000,1036.3],[1605930011000,1036.5],[1605930611000,1036.8],[1605931211000,1037],[1605931811000,1037],[1605932411000,1037],[1605933011000,1037.2],[1605933611000,1037.2],[1605934211000,1037.4],[1605934811000,1037.5],[1605935411000,1037.4],[1605936011000,1037.5],[1605936611000,1037.5],[1605937211000,1037.5],[1605937811000,1037.6],[1605938411000,1037.8],[1605939011000,1037.8],[1605939611000,1037.8],[1605940212000,1037.8],[1605940811000,1037.8],[1605941412000,1037.8],[1605942011000,1037.8],[1605942611000,1037.8],[1605943211000,1037.7],[1605943811000,1037.6],[1605944411000,1037.6],[1605945012000,1037.8],[1605945611000,1037.8],[1605946211000,1037.8],[1605946812000,1037.9],[1605947411000,1038.1],[1605948012000,1038.1],[1605948612000,1038.2],[1605949211000,1038.3],[1605949811000,1038.3],[1605950412000,1038.2],[1605951011000,1038.1],[1605951611000,1038.2],[1605952212000,1038.2],[1605952811000,1038.1],[1605953412000,1038],[1605954012000,1038.1],[1605954611000,1038],[1605955212000,1037.8],[1605955812000,1037.8],[1605956411000,1037.8],[1605957012000,1037.8],[1605957612000,1037.8],[1605958212000,1037.7],[1605958812000,1037.5],[1605959412000,1037.4],[1605960011000,1037.3],[1605960612000,1037.2],[1605961212000,1037.1],[1605961811000,1037.2],[1605962411000,1037.2],[1605963012000,1037.2],[1605963611000,1037.2],[1605964212000,1037.3],[1605964812000,1037.3],[1605965411000,1037.1],[1605966012000,1037],[1605966612000,1037.1],[1605967211000,1037.1],[1605967812000,1037.1],[1605968412000,1037.1],[1605969011000,1037.3],[1605969612000,1037.4],[1605970212000,1037.5],[1605970812000,1037.5],[1605971412000,1037.6],[1605972012000,1037.6],[1605972612000,1037.7],[1605973212000,1037.9],[1605973812000,1037.7],[1605974411000,1037.7],[1605975012000,1037.8],[1605975612000,1037.7],[1605976212000,1037.8],[1605976812000,1037.8],[1605977412000,1037.8],[1605978012000,1037.8],[1605978612000,1037.8],[1605979212000,1037.9],[1605979812000,1037.9],[1605980412000,1037.9],[1605981012000,1037.9],[1605981612000,1038],[1605982212000,1038.2],[1605982812000,1038.1],[1605983412000,1038.1],[1605984012000,1038],[1605984612000,1038],[1605985212000,1038],[1605985813000,1038],[1605986412000,1038.2],[1605987012000,1038.2],[1605987612000,1038.1],[1605988213000,1038.1],[1605988812000,1038],[1605989413000,1038],[1605990012000,1038.1],[1605990613000,1038],[1605991212000,1038],[1605991813000,1038],[1605992413000,1037.9],[1605993012000,1037.9],[1605993613000,1037.9],[1605994212000,1038],[1605994813000,1037.9],[1605995412000,1037.8],[1605996012000,1037.8],[1605996613000,1037.8],[1605997212000,1037.8],[1605997812000,1037.7],[1605998413000,1037.7],[1605999012000,1037.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: [[1605913211000,0.00000000],[1605913811000,0.00000000],[1605914410000,0.00000000],[1605915011000,0.00000000],[1605915611000,0.00000000],[1605916211000,0.00000000],[1605916811000,0.00000000],[1605917410000,0.00000000],[1605918010000,0.00000000],[1605918611000,0.00000000],[1605919211000,0.00000000],[1605919811000,0.00000000],[1605920411000,0.00000000],[1605921010000,0.00000000],[1605921611000,0.00000000],[1605922211000,0.00000000],[1605922810000,0.00000000],[1605923410000,0.00000000],[1605924011000,0.00000000],[1605924610000,0.00000000],[1605925211000,0.00000000],[1605925811000,0.00000000],[1605926411000,0.00000000],[1605927011000,0.00000000],[1605927611000,0.00000000],[1605928211000,0.00000000],[1605928810000,0.00000000],[1605929411000,0.00000000],[1605930011000,0.00000000],[1605930611000,0.00000000],[1605931211000,0.00000000],[1605931811000,0.00000000],[1605932411000,0.00000000],[1605933011000,0.00000000],[1605933611000,0.00000000],[1605934211000,0.00000000],[1605934811000,0.00000000],[1605935411000,0.00000000],[1605936011000,0.00000000],[1605936611000,0.00000000],[1605937211000,0.00000000],[1605937811000,0.00000000],[1605938411000,2.00000000],[1605939011000,6.00000000],[1605939611000,12.00000000],[1605940212000,24.00000000],[1605940811000,38.00000000],[1605941412000,56.00000000],[1605942011000,74.00000000],[1605942611000,92.00000000],[1605943211000,112.00000000],[1605943811000,132.00000000],[1605944411000,152.00000000],[1605945012000,170.00000000],[1605945611000,190.00000000],[1605946211000,208.00000000],[1605946812000,226.00000000],[1605947411000,242.00000000],[1605948012000,256.00000000],[1605948612000,272.00000000],[1605949211000,284.00000000],[1605949811000,296.00000000],[1605950412000,308.00000000],[1605951011000,318.00000000],[1605951611000,328.00000000],[1605952212000,334.00000000],[1605952811000,340.00000000],[1605953412000,344.00000000],[1605954012000,348.00000000],[1605954611000,350.00000000],[1605955212000,350.00000000],[1605955812000,350.00000000],[1605956411000,346.00000000],[1605957012000,342.00000000],[1605957612000,338.00000000],[1605958212000,332.00000000],[1605958812000,324.00000000],[1605959412000,314.00000000],[1605960011000,304.00000000],[1605960612000,292.00000000],[1605961212000,280.00000000],[1605961811000,266.00000000],[1605962411000,250.00000000],[1605963012000,234.00000000],[1605963611000,218.00000000],[1605964212000,200.00000000],[1605964812000,184.00000000],[1605965411000,164.00000000],[1605966012000,144.00000000],[1605966612000,80.00000000],[1605967211000,34.00000000],[1605967812000,48.00000000],[1605968412000,28.00000000],[1605969011000,20.00000000],[1605969612000,12.00000000],[1605970212000,8.00000000],[1605970812000,6.00000000],[1605971412000,2.00000000],[1605972012000,0.00000000],[1605972612000,0.00000000],[1605973212000,0.00000000],[1605973812000,0.00000000],[1605974411000,0.00000000],[1605975012000,0.00000000],[1605975612000,0.00000000],[1605976212000,0.00000000],[1605976812000,0.00000000],[1605977412000,0.00000000],[1605978012000,0.00000000],[1605978612000,0.00000000],[1605979212000,0.00000000],[1605979812000,0.00000000],[1605980412000,0.00000000],[1605981012000,0.00000000],[1605981612000,0.00000000],[1605982212000,0.00000000],[1605982812000,0.00000000],[1605983412000,0.00000000],[1605984012000,0.00000000],[1605984612000,0.00000000],[1605985212000,0.00000000],[1605985813000,0.00000000],[1605986412000,0.00000000],[1605987012000,0.00000000],[1605987612000,0.00000000],[1605988213000,0.00000000],[1605988812000,0.00000000],[1605989413000,0.00000000],[1605990012000,0.00000000],[1605990613000,0.00000000],[1605991212000,0.00000000],[1605991813000,0.00000000],[1605992413000,0.00000000],[1605993012000,0.00000000],[1605993613000,0.00000000],[1605994212000,0.00000000],[1605994813000,0.00000000],[1605995412000,0.00000000],[1605996012000,0.00000000],[1605996613000,0.00000000],[1605997212000,0.00000000],[1605997812000,0.00000000],[1605998413000,0.00000000],[1605999012000,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; }