var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1765580427000,0.50000000],[1765580553000,0.50000000],[1765580875000,0.55000000],[1765581178000,0.52500000],[1765581451000,0.55555556],[1765581802000,0.45000000],[1765582074000,0.32857143],[1765582394000,0.36000000],[1765582650000,0.30000000],[1765582970000,0.24000000],[1765583290000,0.12000000],[1765583610000,0.10000000],[1765583930000,0.05000000],[1765584250000,-0.05000000],[1765584506000,-0.02000000],[1765584778000,-0.10000000],[1765585050000,-0.10000000],[1765585402000,-0.10000000],[1765585674000,-0.16000000],[1765586242000,-0.20000000],[1765586346000,-0.30000000],[1765586602000,-0.30000000],[1765587050000,-0.50000000],[1765587178000,-0.50000000],[1765587450000,-0.42857143],[1765587802000,-0.37142857],[1765588074000,-0.26250000],[1765588378000,-0.20000000],[1765588650000,-0.11250000],[1765589013000,-0.11666667],[1765589275000,-0.20000000],[1765589578000,-0.20000000],[1765589851000,-0.14444444],[1765590202000,-0.12857143],[1765590474000,-0.10000000],[1765590778000,-0.10000000],[1765591050000,-0.18333333],[1765591402000,-0.30000000],[1765591674000,-0.30000000],[1765591978000,-0.31666667],[1765592250000,-0.30000000],[1765592603000,-0.30000000],[1765592906000,-0.28333333],[1765593179000,-0.20000000],[1765593450000,-0.10000000],[1765593803000,-0.05714286],[1765594074000,0.00000000],[1765594410000,0.00000000],[1765594794000,-0.02000000],[1765594953000,-0.02500000],[1765595290000,-0.02500000],[1765595610000,0.00000000],[1765595851000,0.00000000],[1765596202000,-0.06000000],[1765596650000,0.00000000],[1765596778000,0.01666667],[1765597050000,0.10000000],[1765597403000,0.10000000],[1765597674000,0.10000000],[1765597979000,0.10000000],[1765598250000,0.10000000],[1765598602000,0.10000000],[1765598875000,0.10000000],[1765599178000,0.10000000],[1765599451000,0.11250000],[1765599802000,0.20000000],[1765600074000,0.18750000],[1765600378000,0.15000000],[1765600650000,0.10000000],[1765601002000,0.12857143],[1765601307000,0.18333333],[1765601578000,0.14285714],[1765601883000,0.20000000],[1765602202000,0.20000000],[1765602506000,0.20000000],[1765602779000,0.20000000],[1765603050000,0.20000000],[1765603353000,0.20000000],[1765603675000,0.25000000],[1765603978000,0.20000000],[1765604251000,0.20000000],[1765604602000,0.20000000],[1765604874000,0.20000000],[1765605178000,0.20000000],[1765605450000,0.12500000],[1765605802000,0.10000000],[1765606074000,0.10000000],[1765606378000,0.10000000],[1765606650000,0.10000000],[1765606970000,0.10000000],[1765607338000,0.10000000],[1765607690000,0.10000000],[1765607962000,0.10000000],[1765608587000,0.10000000],[1765608810000,0.10000000],[1765609227000,0.10000000],[1765609356000,0.10000000],[1765609674000,0.10000000],[1765609978000,0.10000000],[1765610250000,0.18750000],[1765610602000,0.20000000],[1765610874000,0.20000000],[1765611178000,0.20000000],[1765611450000,0.20000000],[1765611786000,0.24000000],[1765612074000,0.20000000],[1765612378000,0.22500000],[1765612652000,0.20000000],[1765613002000,0.20000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1765580427000,0.4],[1765580553000,0.4],[1765580875000,0.4],[1765581178000,0.4],[1765581451000,0.4],[1765581802000,0.3],[1765582074000,0.2],[1765582394000,0.2],[1765582650000,0.2],[1765582970000,0.1],[1765583290000,-0],[1765583610000,-0],[1765583930000,-0.1],[1765584250000,-0.2],[1765584506000,-0.2],[1765584778000,-0.2],[1765585050000,-0.2],[1765585402000,-0.2],[1765585674000,-0.3],[1765586242000,-0.3],[1765586346000,-0.4],[1765586602000,-0.4],[1765587050000,-0.6],[1765587178000,-0.6],[1765587450000,-0.6],[1765587802000,-0.5],[1765588074000,-0.4],[1765588378000,-0.3],[1765588650000,-0.3],[1765589013000,-0.3],[1765589275000,-0.3],[1765589578000,-0.3],[1765589851000,-0.3],[1765590202000,-0.3],[1765590474000,-0.2],[1765590778000,-0.2],[1765591050000,-0.3],[1765591402000,-0.4],[1765591674000,-0.4],[1765591978000,-0.5],[1765592250000,-0.4],[1765592603000,-0.4],[1765592906000,-0.4],[1765593179000,-0.3],[1765593450000,-0.2],[1765593803000,-0.2],[1765594074000,-0.1],[1765594410000,-0.1],[1765594794000,-0.2],[1765594953000,-0.2],[1765595290000,-0.2],[1765595610000,-0.1],[1765595851000,-0.1],[1765596202000,-0.2],[1765596650000,-0.1],[1765596778000,-0.1],[1765597050000,-0],[1765597403000,-0],[1765597674000,-0],[1765597979000,-0],[1765598250000,-0],[1765598602000,-0],[1765598875000,-0],[1765599178000,-0],[1765599451000,-0],[1765599802000,0.1],[1765600074000,0],[1765600378000,0],[1765600650000,-0],[1765601002000,-0],[1765601307000,0],[1765601578000,0],[1765601883000,0.1],[1765602202000,0.1],[1765602506000,0.1],[1765602779000,0.1],[1765603050000,0.1],[1765603353000,0.1],[1765603675000,0.1],[1765603978000,0.1],[1765604251000,0.1],[1765604602000,0.1],[1765604874000,0.1],[1765605178000,0.1],[1765605450000,-0],[1765605802000,-0],[1765606074000,-0],[1765606378000,-0],[1765606650000,-0],[1765606970000,-0],[1765607338000,-0],[1765607690000,-0],[1765607962000,-0],[1765608587000,-0],[1765608810000,-0],[1765609227000,-0],[1765609356000,-0],[1765609674000,-0],[1765609978000,-0],[1765610250000,0],[1765610602000,0.1],[1765610874000,0.1],[1765611178000,0.1],[1765611450000,0.1],[1765611786000,0.1],[1765612074000,0.1],[1765612378000,0.1],[1765612652000,0.1],[1765613002000,0.1],], 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: [[1765580427000,99.00000000],[1765580553000,99.00000000],[1765580875000,99.00000000],[1765581178000,99.00000000],[1765581451000,99.00000000],[1765581802000,99.00000000],[1765582074000,99.00000000],[1765582394000,99.00000000],[1765582650000,99.00000000],[1765582970000,99.00000000],[1765583290000,99.00000000],[1765583610000,99.00000000],[1765583930000,99.00000000],[1765584250000,99.00000000],[1765584506000,99.00000000],[1765584778000,99.00000000],[1765585050000,99.00000000],[1765585402000,99.00000000],[1765585674000,99.00000000],[1765586242000,99.00000000],[1765586346000,99.00000000],[1765586602000,99.00000000],[1765587050000,99.00000000],[1765587178000,99.00000000],[1765587450000,99.00000000],[1765587802000,99.00000000],[1765588074000,99.00000000],[1765588378000,99.00000000],[1765588650000,99.00000000],[1765589013000,99.00000000],[1765589275000,99.00000000],[1765589578000,99.00000000],[1765589851000,99.00000000],[1765590202000,99.00000000],[1765590474000,99.00000000],[1765590778000,99.00000000],[1765591050000,99.00000000],[1765591402000,99.00000000],[1765591674000,99.00000000],[1765591978000,99.00000000],[1765592250000,99.00000000],[1765592603000,99.00000000],[1765592906000,99.00000000],[1765593179000,99.00000000],[1765593450000,99.00000000],[1765593803000,99.00000000],[1765594074000,99.00000000],[1765594410000,99.00000000],[1765594794000,99.00000000],[1765594953000,99.00000000],[1765595290000,99.00000000],[1765595610000,99.00000000],[1765595851000,99.00000000],[1765596202000,99.00000000],[1765596650000,99.00000000],[1765596778000,99.00000000],[1765597050000,99.00000000],[1765597403000,99.00000000],[1765597674000,99.00000000],[1765597979000,99.00000000],[1765598250000,99.00000000],[1765598602000,99.00000000],[1765598875000,99.00000000],[1765599178000,99.00000000],[1765599451000,99.00000000],[1765599802000,99.00000000],[1765600074000,99.00000000],[1765600378000,99.00000000],[1765600650000,99.00000000],[1765601002000,99.00000000],[1765601307000,99.00000000],[1765601578000,99.00000000],[1765601883000,99.00000000],[1765602202000,99.00000000],[1765602506000,99.00000000],[1765602779000,99.00000000],[1765603050000,99.00000000],[1765603353000,99.00000000],[1765603675000,99.00000000],[1765603978000,99.00000000],[1765604251000,99.00000000],[1765604602000,99.00000000],[1765604874000,99.00000000],[1765605178000,99.00000000],[1765605450000,99.00000000],[1765605802000,99.00000000],[1765606074000,99.00000000],[1765606378000,99.00000000],[1765606650000,99.00000000],[1765606970000,99.00000000],[1765607338000,99.00000000],[1765607690000,99.00000000],[1765607962000,99.00000000],[1765608587000,99.00000000],[1765608810000,99.00000000],[1765609227000,99.00000000],[1765609356000,99.00000000],[1765609674000,99.00000000],[1765609978000,99.00000000],[1765610250000,99.00000000],[1765610602000,99.00000000],[1765610874000,99.00000000],[1765611178000,99.00000000],[1765611450000,99.00000000],[1765611786000,99.00000000],[1765612074000,99.00000000],[1765612378000,99.00000000],[1765612652000,99.00000000],[1765613002000,99.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: [[1765580427000,1029.9],[1765580553000,1030],[1765580875000,1030],[1765581178000,1030],[1765581451000,1030.1],[1765581802000,1030.1],[1765582074000,1030.2],[1765582394000,1030.1],[1765582650000,1030.2],[1765582970000,1030.3],[1765583290000,1030.3],[1765583610000,1030.3],[1765583930000,1030.3],[1765584250000,1030.2],[1765584506000,1030.3],[1765584778000,1030.3],[1765585050000,1030.2],[1765585402000,1030.2],[1765585674000,1030.3],[1765586242000,1030.4],[1765586346000,1030.4],[1765586602000,1030.3],[1765587050000,1030.3],[1765587178000,1030.4],[1765587450000,1030.4],[1765587802000,1030.3],[1765588074000,1030.4],[1765588378000,1030.4],[1765588650000,1030.4],[1765589013000,1030.5],[1765589275000,1030.5],[1765589578000,1030.5],[1765589851000,1030.4],[1765590202000,1030.6],[1765590474000,1030.5],[1765590778000,1030.5],[1765591050000,1030.4],[1765591402000,1030.5],[1765591674000,1030.6],[1765591978000,1030.5],[1765592250000,1030.6],[1765592603000,1030.7],[1765592906000,1030.6],[1765593179000,1030.5],[1765593450000,1030.5],[1765593803000,1030.4],[1765594074000,1030.5],[1765594410000,1030.5],[1765594794000,1030.5],[1765594953000,1030.4],[1765595290000,1030.5],[1765595610000,1030.3],[1765595851000,1030.3],[1765596202000,1030.3],[1765596650000,1030.5],[1765596778000,1030.4],[1765597050000,1030.4],[1765597403000,1030.4],[1765597674000,1030.6],[1765597979000,1030.6],[1765598250000,1030.6],[1765598602000,1030.5],[1765598875000,1030.5],[1765599178000,1030.5],[1765599451000,1030.5],[1765599802000,1030.5],[1765600074000,1030.5],[1765600378000,1030.5],[1765600650000,1030.7],[1765601002000,1030.7],[1765601307000,1030.6],[1765601578000,1030.7],[1765601883000,1030.7],[1765602202000,1030.6],[1765602506000,1030.8],[1765602779000,1030.8],[1765603050000,1030.8],[1765603353000,1030.7],[1765603675000,1030.9],[1765603978000,1030.8],[1765604251000,1030.8],[1765604602000,1030.9],[1765604874000,1030.9],[1765605178000,1030.9],[1765605450000,1030.8],[1765605802000,1031],[1765606074000,1031.1],[1765606378000,1031.1],[1765606650000,1031.2],[1765606970000,1031.3],[1765607338000,1031.3],[1765607690000,1031.3],[1765607962000,1031.5],[1765608587000,1031.5],[1765608810000,1031.6],[1765609227000,1031.6],[1765609356000,1031.7],[1765609674000,1031.7],[1765609978000,1031.6],[1765610250000,1031.6],[1765610602000,1031.7],[1765610874000,1031.7],[1765611178000,1031.7],[1765611450000,1031.6],[1765611786000,1031.7],[1765612074000,1031.6],[1765612378000,1031.6],[1765612652000,1031.7],[1765613002000,1031.8],], 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: [[1765580427000,0],[1765580553000,0.240000012],[1765580875000,0.945],[1765581178000,0],[1765581451000,0.039999996],[1765581802000,0.119999988],[1765582074000,0.308571444],[1765582394000,0.576],[1765582650000,0],[1765582970000,1.656],[1765583290000,0.72],[1765583610000,2.52],[1765583930000,1.62],[1765584250000,0.63],[1765584506000,0.792],[1765584778000,0.257142852],[1765585050000,0.045],[1765585402000,0.874285704],[1765585674000,1.368],[1765586242000,0.36],[1765586346000,1.44],[1765586602000,1.559999988],[1765587050000,1.26],[1765587178000,0],[1765587450000,0],[1765587802000,0],[1765588074000,0],[1765588378000,0],[1765588650000,0],[1765589013000,0],[1765589275000,0],[1765589578000,0],[1765589851000,0],[1765590202000,0.411428556],[1765590474000,1.08],[1765590778000,0.771428556],[1765591050000,3.24],[1765591402000,2.16],[1765591674000,2.005714296],[1765591978000,1.98],[1765592250000,0.855],[1765592603000,0],[1765592906000,0.18],[1765593179000,1.388571444],[1765593450000,0.765],[1765593803000,0.565714296],[1765594074000,1.125],[1765594410000,2.040000012],[1765594794000,3.312],[1765594953000,1.71],[1765595290000,0.18],[1765595610000,3.359999988],[1765595851000,2.760000012],[1765596202000,3.096],[1765596650000,2.88],[1765596778000,1.379999988],[1765597050000,1.08],[1765597403000,0.675],[1765597674000,0.045],[1765597979000,0.72],[1765598250000,0.36],[1765598602000,1.542857148],[1765598875000,1.125],[1765599178000,1.739999988],[1765599451000,1.665],[1765599802000,1.645714296],[1765600074000,1.8],[1765600378000,1.8],[1765600650000,2.205],[1765601002000,1.542857148],[1765601307000,1.199999988],[1765601578000,2.005714296],[1765601883000,1.285714296],[1765602202000,1.17],[1765602506000,0.060000012],[1765602779000,1.285714296],[1765603050000,1.035],[1765603353000,0.72],[1765603675000,1.26],[1765603978000,1.08],[1765604251000,1.8],[1765604602000,2.674285704],[1765604874000,5.085],[1765605178000,4.165714296],[1765605450000,4.05],[1765605802000,4.834285704],[1765606074000,2.360000016],[1765606378000,3.24],[1765606650000,2.7],[1765606970000,2.468571444],[1765607338000,2.7],[1765607690000,2.400000012],[1765607962000,2.819999988],[1765608587000,5.76],[1765608810000,3.24],[1765609227000,5.49],[1765609356000,6.696],[1765609674000,4.275],[1765609978000,3.6],[1765610250000,3.96],[1765610602000,3.6],[1765610874000,2.720000016],[1765611178000,3.660000012],[1765611450000,3.15],[1765611786000,3.6],[1765612074000,3.555],[1765612378000,3.555],[1765612652000,3.744],[1765613002000,3.24],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1765580427000,0],[1765580553000,0.839999988],[1765580875000,1.26],[1765581178000,0],[1765581451000,0.280000008],[1765581802000,0.839999988],[1765582074000,0.36],[1765582394000,1.008],[1765582650000,0],[1765582970000,3.024],[1765583290000,2.016],[1765583610000,3.78],[1765583930000,2.52],[1765584250000,1.26],[1765584506000,1.512],[1765584778000,0.72],[1765585050000,0.315],[1765585402000,1.8],[1765585674000,2.52],[1765586242000,2.52],[1765586346000,1.89],[1765586602000,2.52],[1765587050000,1.26],[1765587178000,0],[1765587450000,0],[1765587802000,0],[1765588074000,0],[1765588378000,0],[1765588650000,0],[1765589013000,0],[1765589275000,0],[1765589578000,0],[1765589851000,0],[1765590202000,0.72],[1765590474000,1.89],[1765590778000,1.8],[1765591050000,5.04],[1765591402000,3.24],[1765591674000,3.24],[1765591978000,3.78],[1765592250000,2.52],[1765592603000,0],[1765592906000,0.839999988],[1765593179000,2.52],[1765593450000,1.26],[1765593803000,1.08],[1765594074000,1.89],[1765594410000,4.200000012],[1765594794000,4.536],[1765594953000,3.78],[1765595290000,1.26],[1765595610000,5.04],[1765595851000,5.04],[1765596202000,5.04],[1765596650000,5.04],[1765596778000,2.940000012],[1765597050000,2.835],[1765597403000,1.575],[1765597674000,0.315],[1765597979000,1.8],[1765598250000,0.63],[1765598602000,2.88],[1765598875000,2.835],[1765599178000,2.52],[1765599451000,3.15],[1765599802000,3.6],[1765600074000,3.465],[1765600378000,3.15],[1765600650000,4.095],[1765601002000,2.88],[1765601307000,2.940000012],[1765601578000,2.88],[1765601883000,2.52],[1765602202000,2.205],[1765602506000,0.420000012],[1765602779000,2.52],[1765603050000,2.835],[1765603353000,1.8],[1765603675000,3.15],[1765603978000,2.52],[1765604251000,3.465],[1765604602000,4.32],[1765604874000,7.875],[1765605178000,6.84],[1765605450000,6.615],[1765605802000,6.48],[1765606074000,3.639999996],[1765606378000,5.76],[1765606650000,4.200000012],[1765606970000,4.32],[1765607338000,3.78],[1765607690000,3.359999988],[1765607962000,5.460000012],[1765608587000,7.56],[1765608810000,5.04],[1765609227000,8.91],[1765609356000,8.64],[1765609674000,5.67],[1765609978000,5.76],[1765610250000,6.615],[1765610602000,5.460000012],[1765610874000,4.479999984],[1765611178000,5.879999988],[1765611450000,5.355],[1765611786000,5.04],[1765612074000,5.67],[1765612378000,5.67],[1765612652000,5.04],[1765613002000,5.04],], 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: [[1765580427000,297.25000000],[1765580553000,278.55555556],[1765580875000,266.75000000],[1765581178000,305.75000000],[1765581451000,283.55555556],[1765581802000,285.83333333],[1765582074000,192.14285714],[1765582394000,241.80000000],[1765582650000,296.50000000],[1765582970000,104.60000000],[1765583290000,228.60000000],[1765583610000,6.00000000],[1765583930000,112.50000000],[1765584250000,244.50000000],[1765584506000,236.60000000],[1765584778000,194.00000000],[1765585050000,343.50000000],[1765585402000,124.28571429],[1765585674000,33.40000000],[1765586242000,346.00000000],[1765586346000,272.00000000],[1765586602000,256.33333333],[1765587050000,180.50000000],[1765587178000,297.40000000],[1765587450000,325.14285714],[1765587802000,319.85714286],[1765588074000,311.87500000],[1765588378000,310.57142857],[1765588650000,317.50000000],[1765589013000,304.16666667],[1765589275000,310.12500000],[1765589578000,308.71428571],[1765589851000,301.33333333],[1765590202000,310.57142857],[1765590474000,183.87500000],[1765590778000,125.57142857],[1765591050000,44.00000000],[1765591402000,129.42857143],[1765591674000,90.14285714],[1765591978000,96.16666667],[1765592250000,192.12500000],[1765592603000,325.85714286],[1765592906000,283.83333333],[1765593179000,259.00000000],[1765593450000,186.25000000],[1765593803000,252.14285714],[1765594074000,255.00000000],[1765594410000,50.66666667],[1765594794000,111.00000000],[1765594953000,108.75000000],[1765595290000,103.50000000],[1765595610000,158.66666667],[1765595851000,99.50000000],[1765596202000,51.80000000],[1765596650000,35.00000000],[1765596778000,190.83333333],[1765597050000,189.37500000],[1765597403000,258.62500000],[1765597674000,267.75000000],[1765597979000,165.42857143],[1765598250000,296.87500000],[1765598602000,80.71428571],[1765598875000,117.37500000],[1765599178000,189.16666667],[1765599451000,115.75000000],[1765599802000,89.42857143],[1765600074000,98.25000000],[1765600378000,161.25000000],[1765600650000,162.87500000],[1765601002000,118.00000000],[1765601307000,74.50000000],[1765601578000,76.42857143],[1765601883000,47.42857143],[1765602202000,143.25000000],[1765602506000,275.83333333],[1765602779000,65.00000000],[1765603050000,145.75000000],[1765603353000,245.57142857],[1765603675000,146.12500000],[1765603978000,125.14285714],[1765604251000,83.62500000],[1765604602000,125.71428571],[1765604874000,99.62500000],[1765605178000,60.85714286],[1765605450000,88.62500000],[1765605802000,109.85714286],[1765606074000,84.77777778],[1765606378000,140.28571429],[1765606650000,66.16666667],[1765606970000,162.57142857],[1765607338000,55.00000000],[1765607690000,125.66666667],[1765607962000,58.16666667],[1765608587000,160.00000000],[1765608810000,61.50000000],[1765609227000,73.75000000],[1765609356000,68.00000000],[1765609674000,69.75000000],[1765609978000,109.85714286],[1765610250000,130.75000000],[1765610602000,61.00000000],[1765610874000,83.66666667],[1765611178000,151.66666667],[1765611450000,49.12500000],[1765611786000,114.80000000],[1765612074000,121.50000000],[1765612378000,62.37500000],[1765612652000,121.20000000],[1765613002000,190.50000000],], 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: [[1765580427000,0.00000000],[1765580553000,0.00000000],[1765580875000,0.00000000],[1765581178000,0.00000000],[1765581451000,0.00000000],[1765581802000,0.00000000],[1765582074000,0.00000000],[1765582394000,0.00000000],[1765582650000,0.00000000],[1765582970000,0.00000000],[1765583290000,0.00000000],[1765583610000,0.00000000],[1765583930000,0.00000000],[1765584250000,0.00000000],[1765584506000,0.00000000],[1765584778000,0.00000000],[1765585050000,0.00000000],[1765585402000,0.00000000],[1765585674000,0.00000000],[1765586242000,0.00000000],[1765586346000,0.00000000],[1765586602000,0.00000000],[1765587050000,0.00000000],[1765587178000,0.00000000],[1765587450000,0.00000000],[1765587802000,0.00000000],[1765588074000,0.00000000],[1765588378000,0.00000000],[1765588650000,0.00000000],[1765589013000,0.00000000],[1765589275000,0.00000000],[1765589578000,0.00000000],[1765589851000,0.00000000],[1765590202000,0.00000000],[1765590474000,0.00000000],[1765590778000,0.00000000],[1765591050000,0.00000000],[1765591402000,0.00000000],[1765591674000,0.00000000],[1765591978000,0.00000000],[1765592250000,0.00000000],[1765592603000,0.00000000],[1765592906000,0.00000000],[1765593179000,0.00000000],[1765593450000,0.00000000],[1765593803000,0.00000000],[1765594074000,0.00000000],[1765594410000,0.00000000],[1765594794000,0.00000000],[1765594953000,0.00000000],[1765595290000,0.00000000],[1765595610000,0.00000000],[1765595851000,0.00000000],[1765596202000,0.00000000],[1765596650000,0.00000000],[1765596778000,0.00000000],[1765597050000,0.00000000],[1765597403000,0.00000000],[1765597674000,0.00000000],[1765597979000,0.00000000],[1765598250000,0.00000000],[1765598602000,0.00000000],[1765598875000,0.00000000],[1765599178000,0.00000000],[1765599451000,0.00000000],[1765599802000,0.00000000],[1765600074000,0.00000000],[1765600378000,0.00000000],[1765600650000,0.00000000],[1765601002000,0.00000000],[1765601307000,0.00000000],[1765601578000,0.00000000],[1765601883000,0.00000000],[1765602202000,0.00000000],[1765602506000,0.00000000],[1765602779000,0.00000000],[1765603050000,0.00000000],[1765603353000,0.00000000],[1765603675000,0.00000000],[1765603978000,0.00000000],[1765604251000,0.00000000],[1765604602000,0.00000000],[1765604874000,0.00000000],[1765605178000,0.00000000],[1765605450000,0.00000000],[1765605802000,0.00000000],[1765606074000,0.00000000],[1765606378000,0.57142857],[1765606650000,1.00000000],[1765606970000,1.14285714],[1765607338000,2.00000000],[1765607690000,3.00000000],[1765607962000,3.50000000],[1765608587000,5.33333333],[1765608810000,6.50000000],[1765609227000,8.00000000],[1765609356000,8.80000000],[1765609674000,10.62500000],[1765609978000,11.85714286],[1765610250000,13.75000000],[1765610602000,15.33333333],[1765610874000,16.77777778],[1765611178000,18.33333333],[1765611450000,21.50000000],[1765611786000,23.40000000],[1765612074000,25.62500000],[1765612378000,28.50000000],[1765612652000,29.80000000],[1765613002000,29.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: [[1765580427000,0.00000000],[1765580553000,0.00000000],[1765580875000,0.00000000],[1765581178000,0.00000000],[1765581451000,0.00000000],[1765581802000,0.00000000],[1765582074000,0.00000000],[1765582394000,0.00000000],[1765582650000,0.00000000],[1765582970000,0.00000000],[1765583290000,0.00000000],[1765583610000,0.00000000],[1765583930000,0.00000000],[1765584250000,0.00000000],[1765584506000,0.00000000],[1765584778000,0.00000000],[1765585050000,0.00000000],[1765585402000,0.00000000],[1765585674000,0.00000000],[1765586242000,0.00000000],[1765586346000,0.00000000],[1765586602000,0.00000000],[1765587050000,0.00000000],[1765587178000,0.00000000],[1765587450000,0.00000000],[1765587802000,0.00000000],[1765588074000,0.00000000],[1765588378000,0.00000000],[1765588650000,0.00000000],[1765589013000,0.00000000],[1765589275000,0.00000000],[1765589578000,0.00000000],[1765589851000,0.00000000],[1765590202000,0.00000000],[1765590474000,0.00000000],[1765590778000,0.00000000],[1765591050000,0.00000000],[1765591402000,0.00000000],[1765591674000,0.00000000],[1765591978000,0.00000000],[1765592250000,0.00000000],[1765592603000,0.00000000],[1765592906000,0.00000000],[1765593179000,0.00000000],[1765593450000,0.00000000],[1765593803000,0.00000000],[1765594074000,0.00000000],[1765594410000,0.00000000],[1765594794000,0.00000000],[1765594953000,0.00000000],[1765595290000,0.00000000],[1765595610000,0.00000000],[1765595851000,0.00000000],[1765596202000,0.00000000],[1765596650000,0.00000000],[1765596778000,0.00000000],[1765597050000,0.00000000],[1765597403000,0.00000000],[1765597674000,0.00000000],[1765597979000,0.00000000],[1765598250000,0.00000000],[1765598602000,0.00000000],[1765598875000,0.00000000],[1765599178000,0.00000000],[1765599451000,0.00000000],[1765599802000,0.00000000],[1765600074000,0.00000000],[1765600378000,0.00000000],[1765600650000,0.00000000],[1765601002000,0.00000000],[1765601307000,0.00000000],[1765601578000,0.00000000],[1765601883000,0.00000000],[1765602202000,0.00000000],[1765602506000,0.00000000],[1765602779000,0.00000000],[1765603050000,0.00000000],[1765603353000,0.00000000],[1765603675000,0.00000000],[1765603978000,0.00000000],[1765604251000,0.00000000],[1765604602000,0.00000000],[1765604874000,0.00000000],[1765605178000,0.00000000],[1765605450000,0.00000000],[1765605802000,0.00000000],[1765606074000,0.00000000],[1765606378000,0.00000000],[1765606650000,0.00000000],[1765606970000,0.00000000],[1765607338000,0.00000000],[1765607690000,0.00000000],[1765607962000,0.00000000],[1765608587000,0.00000000],[1765608810000,0.00000000],[1765609227000,0.00000000],[1765609356000,0.00000000],[1765609674000,0.00000000],[1765609978000,0.00000000],[1765610250000,0.00000000],[1765610602000,0.00000000],[1765610874000,0.00000000],[1765611178000,0.00000000],[1765611450000,0.00000000],[1765611786000,0.00000000],[1765612074000,0.00000000],[1765612378000,0.00000000],[1765612652000,0.00000000],[1765613002000,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: [[1765580427000,0.00000000],[1765580553000,0.00000000],[1765580875000,0.00000000],[1765581178000,0.00000000],[1765581451000,0.00000000],[1765581802000,0.00000000],[1765582074000,0.00000000],[1765582394000,0.00000000],[1765582650000,0.00000000],[1765582970000,0.00000000],[1765583290000,0.00000000],[1765583610000,0.00000000],[1765583930000,0.00000000],[1765584250000,0.00000000],[1765584506000,0.00000000],[1765584778000,0.00000000],[1765585050000,0.00000000],[1765585402000,0.00000000],[1765585674000,0.00000000],[1765586242000,0.00000000],[1765586346000,0.00000000],[1765586602000,0.00000000],[1765587050000,0.00000000],[1765587178000,0.00000000],[1765587450000,0.00000000],[1765587802000,0.00000000],[1765588074000,0.00000000],[1765588378000,0.00000000],[1765588650000,0.00000000],[1765589013000,0.00000000],[1765589275000,0.00000000],[1765589578000,0.00000000],[1765589851000,0.00000000],[1765590202000,0.00000000],[1765590474000,0.00000000],[1765590778000,0.00000000],[1765591050000,0.00000000],[1765591402000,0.00000000],[1765591674000,0.00000000],[1765591978000,0.00000000],[1765592250000,0.00000000],[1765592603000,0.00000000],[1765592906000,0.00000000],[1765593179000,0.00000000],[1765593450000,0.00000000],[1765593803000,0.00000000],[1765594074000,0.00000000],[1765594410000,0.00000000],[1765594794000,0.00000000],[1765594953000,0.00000000],[1765595290000,0.00000000],[1765595610000,0.00000000],[1765595851000,0.00000000],[1765596202000,0.00000000],[1765596650000,0.00000000],[1765596778000,0.00000000],[1765597050000,0.00000000],[1765597403000,0.00000000],[1765597674000,0.00000000],[1765597979000,0.00000000],[1765598250000,0.00000000],[1765598602000,0.00000000],[1765598875000,0.11437500],[1765599178000,0.30500000],[1765599451000,0.30500000],[1765599802000,0.30500000],[1765600074000,0.30500000],[1765600378000,0.30500000],[1765600650000,0.30500000],[1765601002000,0.30500000],[1765601307000,0.30500000],[1765601578000,0.30500000],[1765601883000,0.30500000],[1765602202000,0.30500000],[1765602506000,0.30500000],[1765602779000,0.30500000],[1765603050000,0.30500000],[1765603353000,0.30500000],[1765603675000,0.30500000],[1765603978000,0.30500000],[1765604251000,0.30500000],[1765604602000,0.30500000],[1765604874000,0.30500000],[1765605178000,0.30500000],[1765605450000,0.30500000],[1765605802000,0.30500000],[1765606074000,0.30500000],[1765606378000,0.30500000],[1765606650000,0.30500000],[1765606970000,0.30500000],[1765607338000,0.30500000],[1765607690000,0.30500000],[1765607962000,0.30500000],[1765608587000,0.30500000],[1765608810000,0.30500000],[1765609227000,0.30500000],[1765609356000,0.30500000],[1765609674000,0.30500000],[1765609978000,0.30500000],[1765610250000,0.30500000],[1765610602000,0.30500000],[1765610874000,0.30500000],[1765611178000,0.30500000],[1765611450000,0.30500000],[1765611786000,0.30500000],[1765612074000,0.30500000],[1765612378000,0.30500000],[1765612652000,0.30500000],[1765613002000,0.30500000],], 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; }