var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1754863201000,21.70000000],[1754863379000,21.61428571],[1754863763000,21.60000000],[1754863969000,21.60000000],[1754864304000,21.50000000],[1754864577000,21.41666667],[1754864850000,21.31250000],[1754865201000,21.21428571],[1754865506000,21.11666667],[1754865777000,21.20000000],[1754866097000,21.15000000],[1754866356000,21.10000000],[1754866673000,21.05714286],[1754866977000,20.92857143],[1754867282000,20.74285714],[1754867553000,20.60000000],[1754867905000,20.44285714],[1754868178000,20.18750000],[1754868481000,19.94285714],[1754868755000,19.81428571],[1754869105000,19.70000000],[1754869378000,19.75714286],[1754869650000,19.65000000],[1754869953000,19.56250000],[1754870304000,19.48000000],[1754870610000,19.30000000],[1754870881000,19.10000000],[1754871169000,19.00000000],[1754871536000,18.90000000],[1754871778000,18.90000000],[1754872081000,18.88571429],[1754872355000,18.77142857],[1754872674000,18.70000000],[1754872977000,18.58571429],[1754873250000,18.50000000],[1754873553000,18.50000000],[1754873904000,18.60000000],[1754874177000,18.51428571],[1754874481000,18.42857143],[1754874786000,18.30000000],[1754875106000,18.30000000],[1754875377000,18.16250000],[1754875681000,18.05714286],[1754875953000,18.00000000],[1754876305000,17.92857143],[1754876577000,17.83333333],[1754876850000,17.75714286],[1754877154000,17.68000000],[1754877505000,17.50000000],[1754877777000,17.26250000],[1754878082000,17.18571429],[1754878353000,17.10000000],[1754878707000,17.01666667],[1754878977000,16.96250000],[1754879287000,16.91666667],[1754879554000,17.08750000],[1754879905000,17.11428571],[1754880177000,17.12857143],[1754880481000,17.10000000],[1754880753000,17.10000000],[1754881105000,17.01428571],[1754881377000,17.10000000],[1754881698000,17.06250000],[1754881954000,17.00000000],[1754882305000,16.95714286],[1754882576000,17.00000000],[1754882850000,17.05714286],[1754883152000,17.17142857],[1754883504000,17.07142857],[1754883809000,17.00000000],[1754884081000,16.92857143],[1754884352000,16.93750000],[1754884705000,17.06666667],[1754884977000,17.18750000],[1754885281000,17.30000000],[1754885553000,17.30000000],[1754885905000,17.30000000],[1754886177000,17.30000000],[1754886450000,17.50000000],[1754886752000,17.74000000],[1754887105000,17.95714286],[1754887376000,18.08571429],[1754887680000,18.36000000],[1754887952000,18.70000000],[1754888306000,18.84000000],[1754888576000,19.08750000],[1754888881000,19.30000000],[1754889184000,19.55714286],[1754889504000,19.81666667],[1754889777000,19.95000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1754863201000,16.6],[1754863379000,16.5],[1754863763000,16.4],[1754863969000,16.3],[1754864304000,16.2],[1754864577000,16.1],[1754864850000,16],[1754865201000,15.9],[1754865506000,15.7],[1754865777000,15.5],[1754866097000,15.4],[1754866356000,15.4],[1754866673000,15.3],[1754866977000,15.3],[1754867282000,15.3],[1754867553000,15.2],[1754867905000,15.2],[1754868178000,15.2],[1754868481000,14.9],[1754868755000,14.8],[1754869105000,14.5],[1754869378000,14.5],[1754869650000,14.4],[1754869953000,14.3],[1754870304000,14.2],[1754870610000,14.1],[1754870881000,14],[1754871169000,13.9],[1754871536000,13.9],[1754871778000,13.7],[1754872081000,13.7],[1754872355000,13.6],[1754872674000,13.5],[1754872977000,13.5],[1754873250000,13.3],[1754873553000,13.3],[1754873904000,13.2],[1754874177000,13.2],[1754874481000,13.2],[1754874786000,13.1],[1754875106000,13.1],[1754875377000,13],[1754875681000,12.9],[1754875953000,12.8],[1754876305000,12.9],[1754876577000,12.9],[1754876850000,12.8],[1754877154000,12.8],[1754877505000,12.8],[1754877777000,12.7],[1754878082000,12.5],[1754878353000,12.6],[1754878707000,12.5],[1754878977000,12.6],[1754879287000,12.5],[1754879554000,12.6],[1754879905000,12.5],[1754880177000,12.6],[1754880481000,12.5],[1754880753000,12.6],[1754881105000,12.5],[1754881377000,12.6],[1754881698000,12.5],[1754881954000,12.5],[1754882305000,12.5],[1754882576000,12.5],[1754882850000,12.6],[1754883152000,12.5],[1754883504000,12.6],[1754883809000,12.5],[1754884081000,12.4],[1754884352000,12.4],[1754884705000,12.4],[1754884977000,12.4],[1754885281000,12.4],[1754885553000,12.4],[1754885905000,12.4],[1754886177000,12.4],[1754886450000,12.6],[1754886752000,12.8],[1754887105000,13.3],[1754887376000,13],[1754887680000,13.2],[1754887952000,13.2],[1754888306000,13.2],[1754888576000,13.3],[1754888881000,13.4],[1754889184000,13.4],[1754889504000,13.5],[1754889777000,13.5],], 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: [[1754863201000,73.00000000],[1754863379000,73.00000000],[1754863763000,72.50000000],[1754863969000,72.00000000],[1754864304000,72.00000000],[1754864577000,72.00000000],[1754864850000,72.00000000],[1754865201000,72.00000000],[1754865506000,71.33333333],[1754865777000,70.28571429],[1754866097000,70.00000000],[1754866356000,70.00000000],[1754866673000,70.00000000],[1754866977000,70.28571429],[1754867282000,71.00000000],[1754867553000,71.14285714],[1754867905000,72.00000000],[1754868178000,73.00000000],[1754868481000,73.00000000],[1754868755000,73.00000000],[1754869105000,72.00000000],[1754869378000,72.00000000],[1754869650000,72.00000000],[1754869953000,71.87500000],[1754870304000,71.80000000],[1754870610000,72.20000000],[1754870881000,72.66666667],[1754871169000,72.62500000],[1754871536000,72.75000000],[1754871778000,72.00000000],[1754872081000,72.00000000],[1754872355000,72.14285714],[1754872674000,72.14285714],[1754872977000,72.28571429],[1754873250000,72.00000000],[1754873553000,71.71428571],[1754873904000,71.00000000],[1754874177000,71.42857143],[1754874481000,71.85714286],[1754874786000,72.00000000],[1754875106000,72.00000000],[1754875377000,72.00000000],[1754875681000,72.00000000],[1754875953000,72.00000000],[1754876305000,72.57142857],[1754876577000,73.00000000],[1754876850000,73.00000000],[1754877154000,73.20000000],[1754877505000,74.16666667],[1754877777000,74.50000000],[1754878082000,74.14285714],[1754878353000,74.87500000],[1754878707000,75.00000000],[1754878977000,75.50000000],[1754879287000,75.33333333],[1754879554000,75.00000000],[1754879905000,74.57142857],[1754880177000,74.85714286],[1754880481000,74.42857143],[1754880753000,74.85714286],[1754881105000,75.00000000],[1754881377000,74.85714286],[1754881698000,74.62500000],[1754881954000,75.00000000],[1754882305000,75.28571429],[1754882576000,75.00000000],[1754882850000,75.00000000],[1754883152000,74.14285714],[1754883504000,75.00000000],[1754883809000,75.00000000],[1754884081000,75.00000000],[1754884352000,74.62500000],[1754884705000,74.00000000],[1754884977000,73.75000000],[1754885281000,73.00000000],[1754885553000,73.00000000],[1754885905000,73.00000000],[1754886177000,73.16666667],[1754886450000,73.33333333],[1754886752000,73.00000000],[1754887105000,74.42857143],[1754887376000,72.42857143],[1754887680000,72.20000000],[1754887952000,70.62500000],[1754888306000,69.80000000],[1754888576000,69.50000000],[1754888881000,68.80000000],[1754889184000,67.85714286],[1754889504000,67.00000000],[1754889777000,66.50000000],], 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: [[1754863201000,1025.3],[1754863379000,1025.4],[1754863763000,1025.4],[1754863969000,1025.5],[1754864304000,1025.6],[1754864577000,1025.5],[1754864850000,1025.7],[1754865201000,1025.7],[1754865506000,1025.7],[1754865777000,1025.8],[1754866097000,1025.7],[1754866356000,1025.8],[1754866673000,1025.8],[1754866977000,1025.7],[1754867282000,1025.8],[1754867553000,1025.9],[1754867905000,1026],[1754868178000,1026.1],[1754868481000,1026.1],[1754868755000,1026],[1754869105000,1026],[1754869378000,1026.1],[1754869650000,1026.1],[1754869953000,1026.2],[1754870304000,1026.3],[1754870610000,1026.3],[1754870881000,1026.3],[1754871169000,1026.4],[1754871536000,1026.3],[1754871778000,1026.5],[1754872081000,1026.4],[1754872355000,1026.4],[1754872674000,1026.4],[1754872977000,1026.4],[1754873250000,1026.5],[1754873553000,1026.5],[1754873904000,1026.6],[1754874177000,1026.6],[1754874481000,1026.7],[1754874786000,1026.7],[1754875106000,1026.7],[1754875377000,1026.8],[1754875681000,1026.7],[1754875953000,1026.8],[1754876305000,1026.9],[1754876577000,1026.8],[1754876850000,1026.9],[1754877154000,1026.8],[1754877505000,1026.8],[1754877777000,1026.8],[1754878082000,1026.6],[1754878353000,1026.8],[1754878707000,1026.8],[1754878977000,1026.8],[1754879287000,1026.9],[1754879554000,1026.9],[1754879905000,1026.9],[1754880177000,1026.9],[1754880481000,1026.9],[1754880753000,1027],[1754881105000,1027.1],[1754881377000,1027],[1754881698000,1027.1],[1754881954000,1027.1],[1754882305000,1027.1],[1754882576000,1027.1],[1754882850000,1027.1],[1754883152000,1027.1],[1754883504000,1027],[1754883809000,1027.1],[1754884081000,1027],[1754884352000,1027],[1754884705000,1027],[1754884977000,1026.9],[1754885281000,1027],[1754885553000,1026.9],[1754885905000,1027],[1754886177000,1027],[1754886450000,1027],[1754886752000,1027.1],[1754887105000,1027.1],[1754887376000,1027.1],[1754887680000,1026.9],[1754887952000,1026.9],[1754888306000,1027],[1754888576000,1027],[1754888881000,1027.1],[1754889184000,1027.1],[1754889504000,1027.2],[1754889777000,1026.9],], 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: [[1754863201000,4.824],[1754863379000,3.188571444],[1754863763000,3.87],[1754863969000,3.039999984],[1754864304000,3.179999988],[1754864577000,4.079999988],[1754864850000,4.5],[1754865201000,3.96],[1754865506000,6.3],[1754865777000,5.297142852],[1754866097000,4.32],[1754866356000,5.100000012],[1754866673000,5.4],[1754866977000,4.937142852],[1754867282000,4.165714296],[1754867553000,4.268571444],[1754867905000,3.548571444],[1754868178000,3.195],[1754868481000,2.211428556],[1754868755000,2.262857148],[1754869105000,2.940000012],[1754869378000,3.651428556],[1754869650000,3.465],[1754869953000,2.16],[1754870304000,1.296],[1754870610000,0.72],[1754870881000,1.26],[1754871169000,3.24],[1754871536000,2.79],[1754871778000,2.828571444],[1754872081000,4.165714296],[1754872355000,3.548571444],[1754872674000,3.24],[1754872977000,2.777142852],[1754873250000,2.468571444],[1754873553000,3.085714296],[1754873904000,3.085714296],[1754874177000,4.062857148],[1754874481000,3.291428556],[1754874786000,3.394285704],[1754875106000,3.291428556],[1754875377000,2.97],[1754875681000,2.622857148],[1754875953000,1.028571444],[1754876305000,1.234285704],[1754876577000,0.659999988],[1754876850000,1.491428556],[1754877154000,0.144],[1754877505000,0],[1754877777000,0],[1754878082000,0],[1754878353000,0.045],[1754878707000,0.36],[1754878977000,0.72],[1754879287000,3.24],[1754879554000,1.71],[1754879905000,0.668571444],[1754880177000,1.337142852],[1754880481000,0.72],[1754880753000,1.028571444],[1754881105000,1.08],[1754881377000,1.234285704],[1754881698000,0],[1754881954000,0.27],[1754882305000,2.005714296],[1754882576000,1.512],[1754882850000,2.828571444],[1754883152000,3.754285704],[1754883504000,3.548571444],[1754883809000,2.931428556],[1754884081000,2.417142852],[1754884352000,3.33],[1754884705000,3.179999988],[1754884977000,4.905],[1754885281000,4.268571444],[1754885553000,4.095],[1754885905000,5.94],[1754886177000,4.14],[1754886450000,3.840000012],[1754886752000,2.88],[1754887105000,1.851428556],[1754887376000,3.754285704],[1754887680000,3.96],[1754887952000,2.025],[1754888306000,3.24],[1754888576000,3.78],[1754888881000,2.952],[1754889184000,4.474285704],[1754889504000,3.120000012],[1754889777000,3.96],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1754863201000,6.552],[1754863379000,4.32],[1754863763000,5.67],[1754863969000,4.799999988],[1754864304000,4.619999988],[1754864577000,6.3],[1754864850000,6.3],[1754865201000,5.76],[1754865506000,8.399999988],[1754865777000,7.611428556],[1754866097000,6.720000012],[1754866356000,7.620000012],[1754866673000,7.611428556],[1754866977000,7.2],[1754867282000,6.12],[1754867553000,6.12],[1754867905000,5.04],[1754868178000,4.725],[1754868481000,3.24],[1754868755000,3.24],[1754869105000,3.78],[1754869378000,5.76],[1754869650000,4.725],[1754869953000,3.465],[1754870304000,3.024],[1754870610000,2.016],[1754870881000,2.52],[1754871169000,4.095],[1754871536000,3.15],[1754871778000,4.32],[1754872081000,5.4],[1754872355000,4.68],[1754872674000,5.04],[1754872977000,4.32],[1754873250000,3.6],[1754873553000,3.96],[1754873904000,4.68],[1754874177000,5.04],[1754874481000,4.68],[1754874786000,4.68],[1754875106000,5.04],[1754875377000,4.41],[1754875681000,4.32],[1754875953000,2.52],[1754876305000,2.52],[1754876577000,1.26],[1754876850000,2.16],[1754877154000,0.504],[1754877505000,0],[1754877777000,0],[1754878082000,0],[1754878353000,0.315],[1754878707000,0.420000012],[1754878977000,1.575],[1754879287000,4.200000012],[1754879554000,2.835],[1754879905000,2.16],[1754880177000,1.8],[1754880481000,1.44],[1754880753000,2.16],[1754881105000,2.16],[1754881377000,1.8],[1754881698000,0],[1754881954000,0.945],[1754882305000,3.24],[1754882576000,2.52],[1754882850000,3.6],[1754883152000,6.12],[1754883504000,4.68],[1754883809000,3.96],[1754884081000,2.88],[1754884352000,5.04],[1754884705000,5.04],[1754884977000,7.92],[1754885281000,7.251428556],[1754885553000,5.355],[1754885905000,8.19],[1754886177000,6.3],[1754886450000,5.460000012],[1754886752000,4.536],[1754887105000,2.88],[1754887376000,5.4],[1754887680000,5.04],[1754887952000,2.835],[1754888306000,5.544],[1754888576000,4.725],[1754888881000,4.536],[1754889184000,6.48],[1754889504000,5.460000012],[1754889777000,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: [[1754863201000,247.00000000],[1754863379000,279.57142857],[1754863763000,316.75000000],[1754863969000,248.11111111],[1754864304000,325.33333333],[1754864577000,280.33333333],[1754864850000,278.62500000],[1754865201000,311.85714286],[1754865506000,253.00000000],[1754865777000,336.85714286],[1754866097000,291.66666667],[1754866356000,319.66666667],[1754866673000,270.57142857],[1754866977000,307.00000000],[1754867282000,262.71428571],[1754867553000,277.42857143],[1754867905000,319.42857143],[1754868178000,276.25000000],[1754868481000,315.28571429],[1754868755000,224.71428571],[1754869105000,214.50000000],[1754869378000,315.85714286],[1754869650000,298.62500000],[1754869953000,311.62500000],[1754870304000,194.40000000],[1754870610000,339.80000000],[1754870881000,339.50000000],[1754871169000,332.75000000],[1754871536000,325.00000000],[1754871778000,320.57142857],[1754872081000,303.14285714],[1754872355000,313.85714286],[1754872674000,318.28571429],[1754872977000,278.85714286],[1754873250000,308.42857143],[1754873553000,324.57142857],[1754873904000,260.00000000],[1754874177000,263.42857143],[1754874481000,308.85714286],[1754874786000,320.14285714],[1754875106000,311.42857143],[1754875377000,299.87500000],[1754875681000,277.71428571],[1754875953000,333.71428571],[1754876305000,323.42857143],[1754876577000,332.16666667],[1754876850000,326.71428571],[1754877154000,313.40000000],[1754877505000,316.83333333],[1754877777000,317.00000000],[1754878082000,308.42857143],[1754878353000,317.62500000],[1754878707000,300.16666667],[1754878977000,284.75000000],[1754879287000,311.66666667],[1754879554000,286.00000000],[1754879905000,189.57142857],[1754880177000,307.85714286],[1754880481000,198.00000000],[1754880753000,338.85714286],[1754881105000,242.71428571],[1754881377000,336.85714286],[1754881698000,23.50000000],[1754881954000,144.87500000],[1754882305000,338.42857143],[1754882576000,324.00000000],[1754882850000,326.00000000],[1754883152000,313.71428571],[1754883504000,287.00000000],[1754883809000,327.71428571],[1754884081000,322.42857143],[1754884352000,326.25000000],[1754884705000,225.66666667],[1754884977000,289.12500000],[1754885281000,270.57142857],[1754885553000,285.00000000],[1754885905000,185.62500000],[1754886177000,281.16666667],[1754886450000,310.00000000],[1754886752000,327.40000000],[1754887105000,277.14285714],[1754887376000,258.57142857],[1754887680000,299.00000000],[1754887952000,223.00000000],[1754888306000,155.40000000],[1754888576000,280.00000000],[1754888881000,207.40000000],[1754889184000,260.57142857],[1754889504000,319.16666667],[1754889777000,308.00000000],], 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: [[1754863201000,0.00000000],[1754863379000,0.00000000],[1754863763000,0.00000000],[1754863969000,0.00000000],[1754864304000,0.00000000],[1754864577000,0.00000000],[1754864850000,0.00000000],[1754865201000,0.00000000],[1754865506000,0.00000000],[1754865777000,0.00000000],[1754866097000,0.00000000],[1754866356000,0.00000000],[1754866673000,0.00000000],[1754866977000,0.00000000],[1754867282000,0.00000000],[1754867553000,0.00000000],[1754867905000,0.00000000],[1754868178000,0.00000000],[1754868481000,0.00000000],[1754868755000,0.00000000],[1754869105000,0.00000000],[1754869378000,0.00000000],[1754869650000,0.00000000],[1754869953000,0.00000000],[1754870304000,0.00000000],[1754870610000,0.00000000],[1754870881000,0.00000000],[1754871169000,0.00000000],[1754871536000,0.00000000],[1754871778000,0.00000000],[1754872081000,0.00000000],[1754872355000,0.00000000],[1754872674000,0.00000000],[1754872977000,0.00000000],[1754873250000,0.00000000],[1754873553000,0.00000000],[1754873904000,0.00000000],[1754874177000,0.00000000],[1754874481000,0.00000000],[1754874786000,0.00000000],[1754875106000,0.00000000],[1754875377000,0.00000000],[1754875681000,0.00000000],[1754875953000,0.00000000],[1754876305000,0.00000000],[1754876577000,0.00000000],[1754876850000,0.00000000],[1754877154000,0.00000000],[1754877505000,0.00000000],[1754877777000,0.00000000],[1754878082000,0.00000000],[1754878353000,0.00000000],[1754878707000,0.00000000],[1754878977000,0.00000000],[1754879287000,0.00000000],[1754879554000,0.00000000],[1754879905000,0.00000000],[1754880177000,0.00000000],[1754880481000,0.00000000],[1754880753000,0.00000000],[1754881105000,0.00000000],[1754881377000,0.00000000],[1754881698000,0.00000000],[1754881954000,0.00000000],[1754882305000,0.00000000],[1754882576000,0.00000000],[1754882850000,0.00000000],[1754883152000,0.28571429],[1754883504000,2.14285714],[1754883809000,4.28571429],[1754884081000,6.85714286],[1754884352000,9.50000000],[1754884705000,12.33333333],[1754884977000,15.25000000],[1754885281000,18.71428571],[1754885553000,21.75000000],[1754885905000,25.75000000],[1754886177000,33.16666667],[1754886450000,37.66666667],[1754886752000,44.00000000],[1754887105000,49.28571429],[1754887376000,54.71428571],[1754887680000,59.60000000],[1754887952000,66.75000000],[1754888306000,74.20000000],[1754888576000,87.37500000],[1754888881000,104.00000000],[1754889184000,111.28571429],[1754889504000,121.33333333],[1754889777000,128.50000000],], 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: [[1754863201000,0.00000000],[1754863379000,0.00000000],[1754863763000,0.00000000],[1754863969000,0.00000000],[1754864304000,0.00000000],[1754864577000,0.00000000],[1754864850000,0.00000000],[1754865201000,0.00000000],[1754865506000,0.00000000],[1754865777000,0.00000000],[1754866097000,0.00000000],[1754866356000,0.00000000],[1754866673000,0.00000000],[1754866977000,0.00000000],[1754867282000,0.00000000],[1754867553000,0.00000000],[1754867905000,0.00000000],[1754868178000,0.00000000],[1754868481000,0.00000000],[1754868755000,0.00000000],[1754869105000,0.00000000],[1754869378000,0.00000000],[1754869650000,0.00000000],[1754869953000,0.00000000],[1754870304000,0.00000000],[1754870610000,0.00000000],[1754870881000,0.00000000],[1754871169000,0.00000000],[1754871536000,0.00000000],[1754871778000,0.00000000],[1754872081000,0.00000000],[1754872355000,0.00000000],[1754872674000,0.00000000],[1754872977000,0.00000000],[1754873250000,0.00000000],[1754873553000,0.00000000],[1754873904000,0.00000000],[1754874177000,0.00000000],[1754874481000,0.00000000],[1754874786000,0.00000000],[1754875106000,0.00000000],[1754875377000,0.00000000],[1754875681000,0.00000000],[1754875953000,0.00000000],[1754876305000,0.00000000],[1754876577000,0.00000000],[1754876850000,0.00000000],[1754877154000,0.00000000],[1754877505000,0.00000000],[1754877777000,0.00000000],[1754878082000,0.00000000],[1754878353000,0.00000000],[1754878707000,0.00000000],[1754878977000,0.00000000],[1754879287000,0.00000000],[1754879554000,0.00000000],[1754879905000,0.00000000],[1754880177000,0.00000000],[1754880481000,0.00000000],[1754880753000,0.00000000],[1754881105000,0.00000000],[1754881377000,0.00000000],[1754881698000,0.00000000],[1754881954000,0.00000000],[1754882305000,0.00000000],[1754882576000,0.00000000],[1754882850000,0.00000000],[1754883152000,0.00000000],[1754883504000,0.00000000],[1754883809000,0.00000000],[1754884081000,0.00000000],[1754884352000,0.00000000],[1754884705000,0.00000000],[1754884977000,0.00000000],[1754885281000,0.00000000],[1754885553000,0.00000000],[1754885905000,0.00000000],[1754886177000,0.00000000],[1754886450000,0.00000000],[1754886752000,0.00000000],[1754887105000,0.00000000],[1754887376000,0.00000000],[1754887680000,0.00000000],[1754887952000,0.00000000],[1754888306000,0.00000000],[1754888576000,0.00000000],[1754888881000,1.00000000],[1754889184000,1.00000000],[1754889504000,1.00000000],[1754889777000,1.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: [[1754863201000,0.00000000],[1754863379000,0.00000000],[1754863763000,0.00000000],[1754863969000,0.00000000],[1754864304000,0.00000000],[1754864577000,0.00000000],[1754864850000,0.00000000],[1754865201000,0.00000000],[1754865506000,0.00000000],[1754865777000,0.00000000],[1754866097000,0.00000000],[1754866356000,0.00000000],[1754866673000,0.00000000],[1754866977000,0.00000000],[1754867282000,0.00000000],[1754867553000,0.00000000],[1754867905000,0.00000000],[1754868178000,0.00000000],[1754868481000,0.00000000],[1754868755000,0.00000000],[1754869105000,0.00000000],[1754869378000,0.00000000],[1754869650000,0.00000000],[1754869953000,0.00000000],[1754870304000,0.00000000],[1754870610000,0.00000000],[1754870881000,0.00000000],[1754871169000,0.00000000],[1754871536000,0.00000000],[1754871778000,0.00000000],[1754872081000,0.00000000],[1754872355000,0.00000000],[1754872674000,0.00000000],[1754872977000,0.00000000],[1754873250000,0.00000000],[1754873553000,0.00000000],[1754873904000,0.00000000],[1754874177000,0.00000000],[1754874481000,0.00000000],[1754874786000,0.00000000],[1754875106000,0.00000000],[1754875377000,0.00000000],[1754875681000,0.00000000],[1754875953000,0.00000000],[1754876305000,0.00000000],[1754876577000,0.00000000],[1754876850000,0.00000000],[1754877154000,0.00000000],[1754877505000,0.00000000],[1754877777000,0.00000000],[1754878082000,0.00000000],[1754878353000,0.00000000],[1754878707000,0.00000000],[1754878977000,0.00000000],[1754879287000,0.00000000],[1754879554000,0.00000000],[1754879905000,0.00000000],[1754880177000,0.00000000],[1754880481000,0.00000000],[1754880753000,0.00000000],[1754881105000,0.00000000],[1754881377000,0.00000000],[1754881698000,0.00000000],[1754881954000,0.00000000],[1754882305000,0.00000000],[1754882576000,0.00000000],[1754882850000,0.00000000],[1754883152000,0.00000000],[1754883504000,0.00000000],[1754883809000,0.00000000],[1754884081000,0.00000000],[1754884352000,0.00000000],[1754884705000,0.00000000],[1754884977000,0.00000000],[1754885281000,0.00000000],[1754885553000,0.00000000],[1754885905000,0.00000000],[1754886177000,0.00000000],[1754886450000,0.00000000],[1754886752000,0.00000000],[1754887105000,0.00000000],[1754887376000,0.00000000],[1754887680000,0.00000000],[1754887952000,0.00000000],[1754888306000,0.00000000],[1754888576000,0.00000000],[1754888881000,0.00000000],[1754889184000,0.00000000],[1754889504000,0.00000000],[1754889777000,0.00000000],], color: '#008fbf' } ]; var options = { xaxes: [{ axisLabel: 'rain', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.3mm' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-rain-legend' } }; graphs['#chart-rain'] = $.plot('#chart-rain', dataset, options); }); $('.modal').on('hide.bs.modal', function() { var memory = $(this).html(); $(this).html(memory); }); function meteo_wind_direction_name(wind_direction) { if (wind_direction >= 0.00 && wind_direction <= 11.25) { ret = 'S'; } else if (wind_direction > 11.25 && wind_direction <= 33.75) { ret = 'SSV'; } else if (wind_direction > 33.75 && wind_direction <= 56.25) { ret = 'SV'; } else if (wind_direction > 56.25 && wind_direction <= 78.75) { // 67.5 ret = 'VSV'; } else if (wind_direction > 78.75 && wind_direction <= 101.25) { // 90 ret = 'V'; } else if (wind_direction > 101.25 && wind_direction <= 123.75) { //112.5 ret = 'VJV'; } else if (wind_direction > 123.75 && wind_direction <= 146.25) { // 135 ret = 'JV'; } else if (wind_direction > 146.25 && wind_direction <= 168.75) { // 157.5 ret = 'JJV'; } else if (wind_direction > 168.75 && wind_direction <= 191.25) { // 180 ret = 'J'; } else if (wind_direction > 191.25 && wind_direction <= 213.75) { // 202.5 ret = 'JJZ'; } else if (wind_direction > 213.75 && wind_direction <= 236.25) { // 225 ret = 'JZ'; } else if (wind_direction > 236.25 && wind_direction <= 258.75) { // 247.5 ret = 'ZJZ'; } else if (wind_direction > 258.75 && wind_direction <= 281.25) { // 270 ret = 'Z'; } else if (wind_direction > 281.25 && wind_direction <= 303.75) { // 292.5 ret = 'ZSZ'; } else if (wind_direction > 303.75 && wind_direction <= 326.25) { // 315 ret = 'SZ'; } else if (wind_direction > 326.25 && wind_direction <= 348.75) { // 337.5 ret = 'SSZ'; } else if (wind_direction > 348.75 && wind_direction <= 360.0) { // 337.5 ret = 'S'; } else { return ''; } return ret; }