var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1610838017000,-6.40000000],[1610838618000,-6.90000000],[1610839217000,-7.10000000],[1610839817000,-7.20000000],[1610840418000,-7.30000000],[1610841017000,-7.30000000],[1610841618000,-7.20000000],[1610842218000,-7.30000000],[1610842818000,-7.30000000],[1610843418000,-7.20000000],[1610844018000,-7.20000000],[1610844618000,-7.20000000],[1610845218000,-7.20000000],[1610845817000,-7.10000000],[1610846418000,-7.00000000],[1610847018000,-7.00000000],[1610847618000,-7.00000000],[1610848218000,-7.00000000],[1610848818000,-6.90000000],[1610849417000,-6.90000000],[1610850018000,-6.80000000],[1610850618000,-6.80000000],[1610851218000,-6.80000000],[1610851818000,-6.80000000],[1610852418000,-6.90000000],[1610853018000,-6.90000000],[1610853618000,-6.90000000],[1610854218000,-7.00000000],[1610854818000,-6.90000000],[1610855418000,-6.80000000],[1610856018000,-6.90000000],[1610856618000,-7.00000000],[1610857218000,-7.10000000],[1610857818000,-7.00000000],[1610858418000,-6.40000000],[1610859018000,-6.10000000],[1610859618000,-6.10000000],[1610860218000,-6.00000000],[1610860819000,-6.00000000],[1610861418000,-6.00000000],[1610862019000,-6.30000000],[1610862618000,-6.70000000],[1610863218000,-6.30000000],[1610863818000,-6.00000000],[1610864419000,-5.90000000],[1610865019000,-6.00000000],[1610865618000,-6.00000000],[1610866219000,-6.00000000],[1610866818000,-6.10000000],[1610867419000,-6.20000000],[1610868019000,-6.10000000],[1610868618000,-5.90000000],[1610869219000,-5.90000000],[1610869819000,-5.90000000],[1610870419000,-5.40000000],[1610871019000,-5.00000000],[1610871619000,-4.70000000],[1610872219000,-4.20000000],[1610872819000,-4.10000000],[1610873419000,-4.00000000],[1610874019000,-3.50000000],[1610874619000,-3.30000000],[1610875219000,-3.20000000],[1610875819000,-3.20000000],[1610876419000,-3.00000000],[1610877019000,-2.40000000],[1610877619000,-2.80000000],[1610878219000,-3.30000000],[1610878819000,-3.40000000],[1610879419000,-3.20000000],[1610880019000,-3.00000000],[1610880619000,-3.10000000],[1610881219000,-3.20000000],[1610881819000,-3.10000000],[1610882419000,-3.20000000],[1610883019000,-3.30000000],[1610883619000,-3.30000000],[1610884219000,-3.50000000],[1610884819000,-3.70000000],[1610885419000,-3.90000000],[1610886019000,-4.00000000],[1610886619000,-3.80000000],[1610887220000,-3.40000000],[1610887819000,-2.90000000],[1610888420000,-2.60000000],[1610889020000,-2.50000000],[1610889619000,-2.70000000],[1610890220000,-2.90000000],[1610890820000,-3.40000000],[1610891419000,-3.80000000],[1610892019000,-3.90000000],[1610892619000,-4.10000000],[1610893219000,-4.40000000],[1610893820000,-4.50000000],[1610894419000,-4.50000000],[1610895020000,-4.60000000],[1610895620000,-4.70000000],[1610896219000,-5.00000000],[1610896819000,-5.20000000],[1610897419000,-5.30000000],[1610898019000,-5.40000000],[1610898620000,-5.40000000],[1610899220000,-5.40000000],[1610899820000,-5.40000000],[1610900419000,-5.70000000],[1610901020000,-5.90000000],[1610901619000,-5.80000000],[1610902220000,-5.70000000],[1610902820000,-5.60000000],[1610903420000,-5.60000000],[1610904020000,-5.60000000],[1610904620000,-5.70000000],[1610905220000,-6.00000000],[1610905820000,-6.00000000],[1610906420000,-6.00000000],[1610907020000,-6.20000000],[1610907620000,-6.30000000],[1610908220000,-6.50000000],[1610908820000,-6.60000000],[1610909420000,-6.70000000],[1610910020000,-6.80000000],[1610910620000,-6.60000000],[1610911220000,-6.20000000],[1610911820000,-6.20000000],[1610912420000,-6.20000000],[1610913021000,-6.20000000],[1610913620000,-6.20000000],[1610914220000,-6.40000000],[1610914821000,-6.20000000],[1610915420000,-6.40000000],[1610916020000,-6.50000000],[1610916620000,-6.60000000],[1610917220000,-6.70000000],[1610917820000,-7.10000000],[1610918421000,-7.00000000],[1610919021000,-6.80000000],[1610919620000,-7.20000000],[1610920221000,-7.80000000],[1610920820000,-7.90000000],[1610921420000,-7.20000000],[1610922021000,-7.30000000],[1610922621000,-7.40000000],[1610923221000,-7.30000000],[1610923821000,-8.00000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1610838017000,-9],[1610838618000,-9.3],[1610839217000,-9.3],[1610839817000,-9.3],[1610840418000,-9.3],[1610841017000,-9.2],[1610841618000,-9.1],[1610842218000,-9.2],[1610842818000,-9.1],[1610843418000,-9],[1610844018000,-9.1],[1610844618000,-9.1],[1610845218000,-9.1],[1610845817000,-8.9],[1610846418000,-8.8],[1610847018000,-8.8],[1610847618000,-8.7],[1610848218000,-8.7],[1610848818000,-8.5],[1610849417000,-8.5],[1610850018000,-8.4],[1610850618000,-8.4],[1610851218000,-8.5],[1610851818000,-8.5],[1610852418000,-8.6],[1610853018000,-8.5],[1610853618000,-8.6],[1610854218000,-8.6],[1610854818000,-8.5],[1610855418000,-8.5],[1610856018000,-8.5],[1610856618000,-8.6],[1610857218000,-8.6],[1610857818000,-8.5],[1610858418000,-8.1],[1610859018000,-7.9],[1610859618000,-8],[1610860218000,-7.9],[1610860819000,-8],[1610861418000,-8],[1610862019000,-8.2],[1610862618000,-8.5],[1610863218000,-8.1],[1610863818000,-8],[1610864419000,-8],[1610865019000,-8.1],[1610865618000,-8.1],[1610866219000,-8.1],[1610866818000,-8.2],[1610867419000,-8.3],[1610868019000,-8.2],[1610868618000,-8.1],[1610869219000,-8.1],[1610869819000,-8],[1610870419000,-7.6],[1610871019000,-7.3],[1610871619000,-7.1],[1610872219000,-6.9],[1610872819000,-6.9],[1610873419000,-6.9],[1610874019000,-6.5],[1610874619000,-6.5],[1610875219000,-6.6],[1610875819000,-6.7],[1610876419000,-6.7],[1610877019000,-6.3],[1610877619000,-7],[1610878219000,-7.4],[1610878819000,-7.6],[1610879419000,-7.5],[1610880019000,-7.5],[1610880619000,-7.8],[1610881219000,-7.8],[1610881819000,-7.8],[1610882419000,-8],[1610883019000,-8.1],[1610883619000,-8.1],[1610884219000,-8.4],[1610884819000,-8.6],[1610885419000,-8.8],[1610886019000,-8.9],[1610886619000,-8.7],[1610887220000,-8.5],[1610887819000,-8.2],[1610888420000,-8.1],[1610889020000,-8.2],[1610889619000,-8.6],[1610890220000,-8.8],[1610890820000,-9.3],[1610891419000,-9.7],[1610892019000,-9.7],[1610892619000,-9.9],[1610893219000,-10.1],[1610893820000,-10],[1610894419000,-10],[1610895020000,-10.1],[1610895620000,-10.2],[1610896219000,-10.4],[1610896819000,-10.6],[1610897419000,-10.7],[1610898019000,-10.8],[1610898620000,-10.8],[1610899220000,-10.8],[1610899820000,-10.7],[1610900419000,-10.9],[1610901020000,-10.8],[1610901619000,-10.6],[1610902220000,-10.6],[1610902820000,-10.5],[1610903420000,-10.4],[1610904020000,-10.2],[1610904620000,-9.9],[1610905220000,-10],[1610905820000,-9.7],[1610906420000,-9.6],[1610907020000,-9.7],[1610907620000,-9.7],[1610908220000,-9.8],[1610908820000,-9.8],[1610909420000,-9.9],[1610910020000,-9.9],[1610910620000,-9.6],[1610911220000,-9.3],[1610911820000,-9.3],[1610912420000,-9.3],[1610913021000,-9.2],[1610913620000,-9.2],[1610914220000,-9.3],[1610914821000,-9.1],[1610915420000,-9.4],[1610916020000,-9.4],[1610916620000,-9.4],[1610917220000,-9.5],[1610917820000,-9.9],[1610918421000,-9.8],[1610919021000,-9.7],[1610919620000,-10.1],[1610920221000,-10.6],[1610920820000,-10.5],[1610921420000,-9.9],[1610922021000,-10.1],[1610922621000,-10.1],[1610923221000,-10.1],[1610923821000,-10.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: [[1610838017000,82.20000000],[1610838618000,83.20000000],[1610839217000,84.20000000],[1610839817000,85.00000000],[1610840418000,85.60000000],[1610841017000,86.20000000],[1610841618000,86.20000000],[1610842218000,86.40000000],[1610842818000,86.80000000],[1610843418000,87.00000000],[1610844018000,86.80000000],[1610844618000,86.80000000],[1610845218000,86.80000000],[1610845817000,87.00000000],[1610846418000,87.20000000],[1610847018000,87.40000000],[1610847618000,87.80000000],[1610848218000,88.00000000],[1610848818000,88.20000000],[1610849417000,88.40000000],[1610850018000,88.40000000],[1610850618000,88.20000000],[1610851218000,88.00000000],[1610851818000,88.00000000],[1610852418000,88.00000000],[1610853018000,88.20000000],[1610853618000,88.00000000],[1610854218000,88.40000000],[1610854818000,88.40000000],[1610855418000,88.00000000],[1610856018000,88.20000000],[1610856618000,88.60000000],[1610857218000,89.00000000],[1610857818000,89.00000000],[1610858418000,88.20000000],[1610859018000,87.00000000],[1610859618000,86.60000000],[1610860218000,86.40000000],[1610860819000,86.00000000],[1610861418000,86.00000000],[1610862019000,86.40000000],[1610862618000,87.20000000],[1610863218000,87.00000000],[1610863818000,86.20000000],[1610864419000,85.60000000],[1610865019000,85.40000000],[1610865618000,85.20000000],[1610866219000,85.20000000],[1610866818000,85.20000000],[1610867419000,85.20000000],[1610868019000,85.20000000],[1610868618000,84.80000000],[1610869219000,84.60000000],[1610869819000,85.20000000],[1610870419000,85.00000000],[1610871019000,84.00000000],[1610871619000,83.20000000],[1610872219000,81.80000000],[1610872819000,81.00000000],[1610873419000,80.60000000],[1610874019000,80.00000000],[1610874619000,78.80000000],[1610875219000,77.80000000],[1610875819000,76.80000000],[1610876419000,76.20000000],[1610877019000,75.00000000],[1610877619000,73.20000000],[1610878219000,73.60000000],[1610878819000,73.00000000],[1610879419000,72.60000000],[1610880019000,71.60000000],[1610880619000,70.60000000],[1610881219000,70.60000000],[1610881819000,70.20000000],[1610882419000,69.80000000],[1610883019000,69.60000000],[1610883619000,69.80000000],[1610884219000,69.40000000],[1610884819000,69.20000000],[1610885419000,69.00000000],[1610886019000,69.20000000],[1610886619000,69.00000000],[1610887220000,68.40000000],[1610887819000,67.20000000],[1610888420000,66.40000000],[1610889020000,65.40000000],[1610889619000,64.40000000],[1610890220000,64.40000000],[1610890820000,64.00000000],[1610891419000,64.20000000],[1610892019000,64.40000000],[1610892619000,64.20000000],[1610893219000,65.00000000],[1610893820000,65.60000000],[1610894419000,65.80000000],[1610895020000,65.80000000],[1610895620000,65.80000000],[1610896219000,66.20000000],[1610896819000,66.40000000],[1610897419000,66.40000000],[1610898019000,66.20000000],[1610898620000,66.00000000],[1610899220000,66.20000000],[1610899820000,66.60000000],[1610900419000,67.00000000],[1610901020000,68.60000000],[1610901619000,69.20000000],[1610902220000,68.80000000],[1610902820000,68.80000000],[1610903420000,69.00000000],[1610904020000,70.40000000],[1610904620000,72.40000000],[1610905220000,73.60000000],[1610905820000,75.20000000],[1610906420000,76.00000000],[1610907020000,76.60000000],[1610907620000,77.20000000],[1610908220000,77.40000000],[1610908820000,78.20000000],[1610909420000,78.40000000],[1610910020000,78.80000000],[1610910620000,79.40000000],[1610911220000,79.00000000],[1610911820000,79.00000000],[1610912420000,79.20000000],[1610913021000,79.40000000],[1610913620000,79.40000000],[1610914220000,80.00000000],[1610914821000,80.20000000],[1610915420000,79.80000000],[1610916020000,80.40000000],[1610916620000,80.60000000],[1610917220000,80.60000000],[1610917820000,80.60000000],[1610918421000,80.80000000],[1610919021000,80.20000000],[1610919620000,80.20000000],[1610920221000,80.80000000],[1610920820000,81.60000000],[1610921420000,81.20000000],[1610922021000,80.80000000],[1610922621000,81.00000000],[1610923221000,80.80000000],[1610923821000,80.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: [[1610838017000,1019.2],[1610838618000,1019.2],[1610839217000,1019.1],[1610839817000,1019.1],[1610840418000,1019],[1610841017000,1019],[1610841618000,1018.9],[1610842218000,1018.8],[1610842818000,1018.7],[1610843418000,1018.6],[1610844018000,1018.6],[1610844618000,1018.6],[1610845218000,1018.6],[1610845817000,1018.5],[1610846418000,1018.4],[1610847018000,1018.3],[1610847618000,1018.2],[1610848218000,1018.2],[1610848818000,1018.1],[1610849417000,1018],[1610850018000,1017.9],[1610850618000,1017.8],[1610851218000,1017.8],[1610851818000,1017.7],[1610852418000,1017.6],[1610853018000,1017.5],[1610853618000,1017.4],[1610854218000,1017.3],[1610854818000,1017.1],[1610855418000,1017],[1610856018000,1016.9],[1610856618000,1017],[1610857218000,1017.1],[1610857818000,1016.9],[1610858418000,1016.7],[1610859018000,1016.7],[1610859618000,1016.8],[1610860218000,1016.8],[1610860819000,1016.8],[1610861418000,1016.9],[1610862019000,1017.1],[1610862618000,1017.3],[1610863218000,1017.1],[1610863818000,1017],[1610864419000,1017],[1610865019000,1017.1],[1610865618000,1017.2],[1610866219000,1017.3],[1610866818000,1017.4],[1610867419000,1017.6],[1610868019000,1017.5],[1610868618000,1017.5],[1610869219000,1017.8],[1610869819000,1017.8],[1610870419000,1017.7],[1610871019000,1017.7],[1610871619000,1017.5],[1610872219000,1017.4],[1610872819000,1017.6],[1610873419000,1017.8],[1610874019000,1017.9],[1610874619000,1018],[1610875219000,1018.1],[1610875819000,1018.2],[1610876419000,1018.1],[1610877019000,1018.1],[1610877619000,1018.2],[1610878219000,1018.3],[1610878819000,1018.4],[1610879419000,1018.4],[1610880019000,1018.4],[1610880619000,1018.4],[1610881219000,1018.5],[1610881819000,1018.4],[1610882419000,1018.4],[1610883019000,1018.4],[1610883619000,1018.4],[1610884219000,1018.5],[1610884819000,1018.6],[1610885419000,1018.6],[1610886019000,1018.7],[1610886619000,1018.6],[1610887220000,1018.5],[1610887819000,1018.4],[1610888420000,1018.4],[1610889020000,1018.5],[1610889619000,1018.7],[1610890220000,1018.8],[1610890820000,1019],[1610891419000,1019.2],[1610892019000,1019.4],[1610892619000,1019.6],[1610893219000,1019.7],[1610893820000,1019.7],[1610894419000,1019.9],[1610895020000,1020],[1610895620000,1020.1],[1610896219000,1020.2],[1610896819000,1020.4],[1610897419000,1020.5],[1610898019000,1020.6],[1610898620000,1020.7],[1610899220000,1020.9],[1610899820000,1020.9],[1610900419000,1021.2],[1610901020000,1021.4],[1610901619000,1021.5],[1610902220000,1021.6],[1610902820000,1021.7],[1610903420000,1021.9],[1610904020000,1022],[1610904620000,1022.1],[1610905220000,1022.3],[1610905820000,1022.4],[1610906420000,1022.5],[1610907020000,1022.5],[1610907620000,1022.7],[1610908220000,1022.8],[1610908820000,1022.8],[1610909420000,1022.9],[1610910020000,1023],[1610910620000,1023],[1610911220000,1023],[1610911820000,1023.1],[1610912420000,1023.2],[1610913021000,1023.3],[1610913620000,1023.4],[1610914220000,1023.5],[1610914821000,1023.5],[1610915420000,1023.6],[1610916020000,1023.6],[1610916620000,1023.6],[1610917220000,1023.8],[1610917820000,1024],[1610918421000,1024],[1610919021000,1024],[1610919620000,1024.1],[1610920221000,1024.2],[1610920820000,1024.2],[1610921420000,1024.1],[1610922021000,1024.2],[1610922621000,1024.3],[1610923221000,1024.1],[1610923821000,1024.4],], 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: [[1610838017000,0.00000000],[1610838618000,0.00000000],[1610839217000,0.00000000],[1610839817000,0.00000000],[1610840418000,0.00000000],[1610841017000,0.00000000],[1610841618000,0.00000000],[1610842218000,0.00000000],[1610842818000,0.00000000],[1610843418000,0.00000000],[1610844018000,0.00000000],[1610844618000,0.00000000],[1610845218000,0.00000000],[1610845817000,0.00000000],[1610846418000,0.00000000],[1610847018000,0.00000000],[1610847618000,0.00000000],[1610848218000,0.00000000],[1610848818000,0.00000000],[1610849417000,0.00000000],[1610850018000,0.00000000],[1610850618000,0.00000000],[1610851218000,0.00000000],[1610851818000,0.00000000],[1610852418000,0.00000000],[1610853018000,0.00000000],[1610853618000,0.00000000],[1610854218000,0.00000000],[1610854818000,0.00000000],[1610855418000,0.00000000],[1610856018000,0.00000000],[1610856618000,0.00000000],[1610857218000,0.00000000],[1610857818000,0.00000000],[1610858418000,0.00000000],[1610859018000,0.00000000],[1610859618000,0.00000000],[1610860218000,0.00000000],[1610860819000,0.00000000],[1610861418000,0.00000000],[1610862019000,0.00000000],[1610862618000,0.00000000],[1610863218000,0.00000000],[1610863818000,0.00000000],[1610864419000,0.00000000],[1610865019000,2.00000000],[1610865618000,4.00000000],[1610866219000,6.00000000],[1610866818000,8.00000000],[1610867419000,10.00000000],[1610868019000,18.00000000],[1610868618000,28.00000000],[1610869219000,54.00000000],[1610869819000,70.00000000],[1610870419000,78.00000000],[1610871019000,88.00000000],[1610871619000,104.00000000],[1610872219000,122.00000000],[1610872819000,140.00000000],[1610873419000,164.00000000],[1610874019000,190.00000000],[1610874619000,226.00000000],[1610875219000,260.00000000],[1610875819000,274.00000000],[1610876419000,288.00000000],[1610877019000,304.00000000],[1610877619000,166.00000000],[1610878219000,136.00000000],[1610878819000,160.00000000],[1610879419000,252.00000000],[1610880019000,288.00000000],[1610880619000,312.00000000],[1610881219000,186.00000000],[1610881819000,172.00000000],[1610882419000,174.00000000],[1610883019000,204.00000000],[1610883619000,170.00000000],[1610884219000,136.00000000],[1610884819000,110.00000000],[1610885419000,114.00000000],[1610886019000,108.00000000],[1610886619000,208.00000000],[1610887220000,270.00000000],[1610887819000,280.00000000],[1610888420000,290.00000000],[1610889020000,248.00000000],[1610889619000,184.00000000],[1610890220000,148.00000000],[1610890820000,58.00000000],[1610891419000,56.00000000],[1610892019000,66.00000000],[1610892619000,36.00000000],[1610893219000,36.00000000],[1610893820000,48.00000000],[1610894419000,36.00000000],[1610895020000,28.00000000],[1610895620000,20.00000000],[1610896219000,12.00000000],[1610896819000,8.00000000],[1610897419000,2.00000000],[1610898019000,0.00000000],[1610898620000,0.00000000],[1610899220000,0.00000000],[1610899820000,0.00000000],[1610900419000,0.00000000],[1610901020000,0.00000000],[1610901619000,0.00000000],[1610902220000,0.00000000],[1610902820000,0.00000000],[1610903420000,0.00000000],[1610904020000,0.00000000],[1610904620000,0.00000000],[1610905220000,0.00000000],[1610905820000,0.00000000],[1610906420000,0.00000000],[1610907020000,0.00000000],[1610907620000,0.00000000],[1610908220000,0.00000000],[1610908820000,0.00000000],[1610909420000,0.00000000],[1610910020000,0.00000000],[1610910620000,0.00000000],[1610911220000,0.00000000],[1610911820000,0.00000000],[1610912420000,0.00000000],[1610913021000,0.00000000],[1610913620000,0.00000000],[1610914220000,0.00000000],[1610914821000,0.00000000],[1610915420000,0.00000000],[1610916020000,0.00000000],[1610916620000,0.00000000],[1610917220000,0.00000000],[1610917820000,0.00000000],[1610918421000,0.00000000],[1610919021000,0.00000000],[1610919620000,0.00000000],[1610920221000,0.00000000],[1610920820000,0.00000000],[1610921420000,0.00000000],[1610922021000,0.00000000],[1610922621000,0.00000000],[1610923221000,0.00000000],[1610923821000,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; }