var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1773270026000,7.77500000],[1773270202000,7.41250000],[1773270474000,6.98750000],[1773270778000,6.95000000],[1773271050000,6.98888889],[1773271353000,7.52500000],[1773271675000,7.12222222],[1773271978000,6.72500000],[1773272250000,6.36250000],[1773272602000,6.41666667],[1773272906000,6.10000000],[1773273211000,6.40000000],[1773273450000,6.35714286],[1773273802000,6.05000000],[1773274074000,6.06250000],[1773274410000,5.90000000],[1773274713000,5.83333333],[1773274970000,5.72000000],[1773275306000,5.76666667],[1773275690000,5.76666667],[1773275851000,6.07142857],[1773276153000,6.05555556],[1773276474000,6.51111111],[1773276778000,6.57142857],[1773277050000,6.41111111],[1773277353000,6.55555556],[1773277674000,6.63750000],[1773277978000,6.60000000],[1773278250000,6.72500000],[1773278553000,7.43333333],[1773278906000,7.80000000],[1773279178000,6.95000000],[1773279450000,6.70000000],[1773279753000,6.80000000],[1773280074000,6.51250000],[1773280378000,6.42500000],[1773280650000,6.83333333],[1773280953000,7.32500000],[1773281433000,7.50000000],[1773281642000,7.70000000],[1773281930000,7.32000000],[1773282154000,7.87142857],[1773282474000,7.63333333],[1773282778000,6.90000000],[1773283050000,6.22222222],[1773283403000,5.92500000],[1773283674000,5.76250000],[1773283978000,5.95000000],[1773284250000,6.31250000],[1773284553000,6.80000000],[1773284906000,5.95000000],[1773285178000,4.74285714],[1773285450000,4.85000000],[1773285753000,5.30000000],[1773286075000,5.74444444],[1773286378000,5.25000000],[1773286650000,5.25000000],[1773286953000,5.02500000],[1773287274000,4.36666667],[1773287578000,4.31428571],[1773287850000,4.30000000],[1773288153000,4.34444444],[1773288474000,5.38750000],[1773288778000,5.61428571],[1773289050000,5.43333333],[1773289602000,5.60000000],[1773289706000,5.62500000],[1773289978000,5.31428571],[1773290250000,5.11111111],[1773290602000,5.07500000],[1773290873000,4.63333333],[1773291178000,4.93333333],[1773291482000,4.92500000],[1773291753000,4.52222222],[1773292074000,4.24444444],[1773292489000,4.05000000],[1773292682000,3.94000000],[1773293002000,3.90000000],[1773293306000,3.86666667],[1773293578000,3.80000000],[1773293850000,3.91111111],[1773294153000,4.10000000],[1773294506000,4.00000000],[1773294778000,4.18750000],[1773295050000,4.76250000],[1773295353000,5.35000000],[1773295674000,6.14444444],[1773295977000,6.28750000],[1773296281000,7.55714286],[1773296554000,8.38571429],[1773296878000,8.96666667],[1773297178000,9.17142857],[1773297450000,9.43750000],[1773297753000,9.64444444],[1773298074000,9.86250000],[1773298378000,10.24444444],[1773298683000,10.48571429],[1773298953000,10.58888889],[1773299306000,10.81250000],[1773299609000,10.90000000],[1773299929000,11.10000000],[1773300169000,11.27500000],[1773300649000,11.20000000],[1773300778000,11.30000000],[1773301081000,11.35714286],[1773301353000,11.47500000],[1773301709000,11.35000000],[1773301977000,11.50000000],[1773302282000,11.65714286],[1773302553000,11.43333333],[1773302905000,11.37500000],[1773303179000,11.75000000],[1773303450000,11.95555556],[1773303753000,12.30000000],[1773304075000,11.90000000],[1773304377000,12.00000000],[1773304650000,12.35714286],[1773304953000,12.51250000],[1773305274000,12.57142857],[1773305577000,12.74000000],[1773305931000,13.13333333],[1773306153000,13.06666667],[1773306537000,13.35000000],[1773306793000,13.58571429],[1773307082000,13.32500000],[1773307353000,13.30000000],[1773307705000,13.37500000],[1773307977000,13.50000000],[1773308282000,13.90000000],[1773308553000,14.42500000],[1773308905000,14.55714286],[1773309178000,14.30000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1773270026000,2.8],[1773270202000,2.9],[1773270474000,2.7],[1773270778000,2.8],[1773271050000,2.7],[1773271353000,2.8],[1773271675000,2.9],[1773271978000,2.7],[1773272250000,2.6],[1773272602000,2.7],[1773272906000,2.5],[1773273211000,2.6],[1773273450000,2.7],[1773273802000,2.5],[1773274074000,2.5],[1773274410000,2.5],[1773274713000,2.5],[1773274970000,2.5],[1773275306000,2.4],[1773275690000,2.5],[1773275851000,2.6],[1773276153000,2.6],[1773276474000,2.8],[1773276778000,2.8],[1773277050000,2.7],[1773277353000,2.8],[1773277674000,2.8],[1773277978000,2.8],[1773278250000,2.7],[1773278553000,2.8],[1773278906000,3.1],[1773279178000,2.9],[1773279450000,2.7],[1773279753000,2.7],[1773280074000,2.7],[1773280378000,2.6],[1773280650000,2.7],[1773280953000,2.8],[1773281433000,2.9],[1773281642000,2.9],[1773281930000,2.9],[1773282154000,2.9],[1773282474000,3],[1773282778000,2.8],[1773283050000,2.6],[1773283403000,2.5],[1773283674000,2.4],[1773283978000,2.6],[1773284250000,2.7],[1773284553000,2.7],[1773284906000,2.6],[1773285178000,2.1],[1773285450000,2.3],[1773285753000,2.5],[1773286075000,2.5],[1773286378000,2.3],[1773286650000,2.4],[1773286953000,2.2],[1773287274000,2],[1773287578000,1.9],[1773287850000,2],[1773288153000,2.2],[1773288474000,2.5],[1773288778000,2.6],[1773289050000,2.5],[1773289602000,2.4],[1773289706000,2.5],[1773289978000,2.4],[1773290250000,2.4],[1773290602000,2.3],[1773290873000,2.2],[1773291178000,2.4],[1773291482000,2.3],[1773291753000,2.2],[1773292074000,2.1],[1773292489000,1.9],[1773292682000,1.8],[1773293002000,1.8],[1773293306000,1.8],[1773293578000,1.8],[1773293850000,2],[1773294153000,2.1],[1773294506000,2.1],[1773294778000,2.3],[1773295050000,2.5],[1773295353000,2.7],[1773295674000,3],[1773295977000,3.1],[1773296281000,3.3],[1773296554000,3.5],[1773296878000,3.8],[1773297178000,3.8],[1773297450000,4],[1773297753000,4.1],[1773298074000,4.2],[1773298378000,4.3],[1773298683000,4.2],[1773298953000,4.3],[1773299306000,4.4],[1773299609000,4.3],[1773299929000,4.7],[1773300169000,4.4],[1773300649000,4.3],[1773300778000,4.4],[1773301081000,4.4],[1773301353000,4.4],[1773301709000,4.3],[1773301977000,4.4],[1773302282000,4.5],[1773302553000,4.3],[1773302905000,4.3],[1773303179000,4.5],[1773303450000,4.7],[1773303753000,5],[1773304075000,4.6],[1773304377000,4.6],[1773304650000,4.8],[1773304953000,4.9],[1773305274000,4.9],[1773305577000,4.9],[1773305931000,5.1],[1773306153000,5],[1773306537000,5.1],[1773306793000,5.3],[1773307082000,5.1],[1773307353000,5.1],[1773307705000,5.1],[1773307977000,5.1],[1773308282000,5.3],[1773308553000,5.6],[1773308905000,5.5],[1773309178000,5.4],], 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: [[1773270026000,71.25000000],[1773270202000,73.50000000],[1773270474000,74.62500000],[1773270778000,75.00000000],[1773271050000,74.55555556],[1773271353000,72.25000000],[1773271675000,74.55555556],[1773271978000,76.00000000],[1773272250000,77.00000000],[1773272602000,77.16666667],[1773272906000,78.00000000],[1773273211000,77.16666667],[1773273450000,77.42857143],[1773273802000,78.00000000],[1773274074000,78.25000000],[1773274410000,79.00000000],[1773274713000,79.66666667],[1773274970000,80.00000000],[1773275306000,79.33333333],[1773275690000,79.66666667],[1773275851000,78.71428571],[1773276153000,78.88888889],[1773276474000,77.44444444],[1773276778000,77.00000000],[1773277050000,77.66666667],[1773277353000,77.11111111],[1773277674000,76.87500000],[1773277978000,76.75000000],[1773278250000,76.00000000],[1773278553000,72.88888889],[1773278906000,72.33333333],[1773279178000,75.50000000],[1773279450000,75.66666667],[1773279753000,75.62500000],[1773280074000,76.75000000],[1773280378000,76.75000000],[1773280650000,75.33333333],[1773280953000,73.12500000],[1773281433000,73.00000000],[1773281642000,72.00000000],[1773281930000,73.80000000],[1773282154000,71.14285714],[1773282474000,72.88888889],[1773282778000,75.57142857],[1773283050000,77.88888889],[1773283403000,79.00000000],[1773283674000,79.25000000],[1773283978000,79.12500000],[1773284250000,78.00000000],[1773284553000,75.55555556],[1773284906000,79.37500000],[1773285178000,83.14285714],[1773285450000,83.50000000],[1773285753000,82.37500000],[1773286075000,80.11111111],[1773286378000,81.75000000],[1773286650000,82.00000000],[1773286953000,82.25000000],[1773287274000,84.55555556],[1773287578000,84.71428571],[1773287850000,85.11111111],[1773288153000,86.00000000],[1773288474000,81.75000000],[1773288778000,81.00000000],[1773289050000,81.33333333],[1773289602000,80.00000000],[1773289706000,80.37500000],[1773289978000,81.57142857],[1773290250000,82.77777778],[1773290602000,82.62500000],[1773290873000,84.66666667],[1773291178000,83.66666667],[1773291482000,83.50000000],[1773291753000,85.00000000],[1773292074000,86.00000000],[1773292489000,86.00000000],[1773292682000,86.20000000],[1773293002000,86.25000000],[1773293306000,86.66666667],[1773293578000,87.00000000],[1773293850000,87.55555556],[1773294153000,87.00000000],[1773294506000,87.85714286],[1773294778000,87.50000000],[1773295050000,85.37500000],[1773295353000,83.33333333],[1773295674000,80.33333333],[1773295977000,80.25000000],[1773296281000,74.85714286],[1773296554000,71.71428571],[1773296878000,70.16666667],[1773297178000,69.57142857],[1773297450000,69.12500000],[1773297753000,68.66666667],[1773298074000,68.00000000],[1773298378000,66.77777778],[1773298683000,65.42857143],[1773298953000,65.22222222],[1773299306000,64.75000000],[1773299609000,64.00000000],[1773299929000,65.00000000],[1773300169000,63.00000000],[1773300649000,63.00000000],[1773300778000,62.87500000],[1773301081000,62.42857143],[1773301353000,61.87500000],[1773301709000,62.16666667],[1773301977000,62.00000000],[1773302282000,61.85714286],[1773302553000,61.77777778],[1773302905000,62.25000000],[1773303179000,61.50000000],[1773303450000,61.33333333],[1773303753000,61.12500000],[1773304075000,61.14285714],[1773304377000,60.75000000],[1773304650000,60.28571429],[1773304953000,60.25000000],[1773305274000,60.00000000],[1773305577000,59.20000000],[1773305931000,58.66666667],[1773306153000,58.33333333],[1773306537000,57.75000000],[1773306793000,57.57142857],[1773307082000,57.75000000],[1773307353000,57.85714286],[1773307705000,57.37500000],[1773307977000,57.00000000],[1773308282000,56.37500000],[1773308553000,55.62500000],[1773308905000,54.71428571],[1773309178000,55.33333333],], 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: [[1773270026000,1021.4],[1773270202000,1021.7],[1773270474000,1021.7],[1773270778000,1021.6],[1773271050000,1021.5],[1773271353000,1021.5],[1773271675000,1021.6],[1773271978000,1021.6],[1773272250000,1021.7],[1773272602000,1021.7],[1773272906000,1021.8],[1773273211000,1021.8],[1773273450000,1021.8],[1773273802000,1021.7],[1773274074000,1021.9],[1773274410000,1022],[1773274713000,1021.8],[1773274970000,1021.8],[1773275306000,1021.8],[1773275690000,1021.8],[1773275851000,1021.8],[1773276153000,1021.8],[1773276474000,1021.7],[1773276778000,1021.7],[1773277050000,1021.7],[1773277353000,1021.6],[1773277674000,1021.6],[1773277978000,1021.6],[1773278250000,1021.5],[1773278553000,1021.2],[1773278906000,1021.3],[1773279178000,1021.4],[1773279450000,1021.3],[1773279753000,1021.3],[1773280074000,1021.3],[1773280378000,1021.4],[1773280650000,1021.3],[1773280953000,1021.3],[1773281433000,1021.1],[1773281642000,1021.3],[1773281930000,1021.3],[1773282154000,1021.1],[1773282474000,1021.2],[1773282778000,1021.3],[1773283050000,1021.3],[1773283403000,1021.4],[1773283674000,1021.5],[1773283978000,1021.4],[1773284250000,1021.4],[1773284553000,1021.4],[1773284906000,1021.5],[1773285178000,1021.8],[1773285450000,1021.7],[1773285753000,1021.7],[1773286075000,1021.7],[1773286378000,1021.9],[1773286650000,1021.9],[1773286953000,1021.9],[1773287274000,1022],[1773287578000,1021.9],[1773287850000,1022],[1773288153000,1022.1],[1773288474000,1021.9],[1773288778000,1021.9],[1773289050000,1021.9],[1773289602000,1021.8],[1773289706000,1021.9],[1773289978000,1022],[1773290250000,1022],[1773290602000,1022],[1773290873000,1022.2],[1773291178000,1022.2],[1773291482000,1022.2],[1773291753000,1022.4],[1773292074000,1022.4],[1773292489000,1022.6],[1773292682000,1022.5],[1773293002000,1022.7],[1773293306000,1022.7],[1773293578000,1022.7],[1773293850000,1022.6],[1773294153000,1022.7],[1773294506000,1022.7],[1773294778000,1022.7],[1773295050000,1022.7],[1773295353000,1022.8],[1773295674000,1022.5],[1773295977000,1022.6],[1773296281000,1022.4],[1773296554000,1022.3],[1773296878000,1022.2],[1773297178000,1022.3],[1773297450000,1022.4],[1773297753000,1022.4],[1773298074000,1022.3],[1773298378000,1022.4],[1773298683000,1022.3],[1773298953000,1022.4],[1773299306000,1022.4],[1773299609000,1022.4],[1773299929000,1022.4],[1773300169000,1022.4],[1773300649000,1022.5],[1773300778000,1022.6],[1773301081000,1022.6],[1773301353000,1022.5],[1773301709000,1022.6],[1773301977000,1022.7],[1773302282000,1022.7],[1773302553000,1022.6],[1773302905000,1022.6],[1773303179000,1022.6],[1773303450000,1022.5],[1773303753000,1022.5],[1773304075000,1022.5],[1773304377000,1022.6],[1773304650000,1022.5],[1773304953000,1022.5],[1773305274000,1022.4],[1773305577000,1022.5],[1773305931000,1022.4],[1773306153000,1022.3],[1773306537000,1022.3],[1773306793000,1022.3],[1773307082000,1022.4],[1773307353000,1022.4],[1773307705000,1022.4],[1773307977000,1022.3],[1773308282000,1022.3],[1773308553000,1022.3],[1773308905000,1022.1],[1773309178000,1022.1],], 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: [[1773270026000,0],[1773270202000,0],[1773270474000,0],[1773270778000,0],[1773271050000,0],[1773271353000,0],[1773271675000,0.600000012],[1773271978000,0.765],[1773272250000,0],[1773272602000,0.54],[1773272906000,1.17],[1773273211000,0],[1773273450000,0.565714296],[1773273802000,0.09],[1773274074000,0],[1773274410000,0],[1773274713000,0],[1773274970000,0],[1773275306000,0],[1773275690000,0],[1773275851000,0.72],[1773276153000,0],[1773276474000,0],[1773276778000,0],[1773277050000,0],[1773277353000,0],[1773277674000,0],[1773277978000,0],[1773278250000,0.45],[1773278553000,0.759999996],[1773278906000,0.060000012],[1773279178000,0],[1773279450000,0],[1773279753000,0],[1773280074000,0.405],[1773280378000,0],[1773280650000,0.159999984],[1773280953000,0.405],[1773281433000,0.36],[1773281642000,0],[1773281930000,0],[1773282154000,0.617142852],[1773282474000,0.039999996],[1773282778000,0.205714296],[1773283050000,1.599999984],[1773283403000,0.405],[1773283674000,0.945],[1773283978000,0],[1773284250000,0],[1773284553000,1.640000016],[1773284906000,2.205],[1773285178000,1.234285704],[1773285450000,0],[1773285753000,0],[1773286075000,0],[1773286378000,0],[1773286650000,0],[1773286953000,0],[1773287274000,0],[1773287578000,0],[1773287850000,0],[1773288153000,0],[1773288474000,0.675],[1773288778000,0.205714296],[1773289050000,0],[1773289602000,0],[1773289706000,0.045],[1773289978000,0],[1773290250000,0],[1773290602000,0],[1773290873000,0],[1773291178000,0],[1773291482000,0],[1773291753000,0],[1773292074000,0],[1773292489000,0],[1773292682000,0],[1773293002000,0],[1773293306000,0],[1773293578000,0],[1773293850000,0],[1773294153000,0],[1773294506000,0],[1773294778000,0],[1773295050000,0],[1773295353000,0.36],[1773295674000,0.119999988],[1773295977000,0.675],[1773296281000,1.491428556],[1773296554000,3.085714296],[1773296878000,3.78],[1773297178000,3.394285704],[1773297450000,2.835],[1773297753000,4.359999996],[1773298074000,4.05],[1773298378000,5.640000012],[1773298683000,6.942857148],[1773298953000,6.199999992],[1773299306000,4.725],[1773299609000,7.56],[1773299929000,3.24],[1773300169000,4.32],[1773300649000,5.4],[1773300778000,3.915],[1773301081000,4.32],[1773301353000,5.94],[1773301709000,6.720000012],[1773301977000,4.77],[1773302282000,3.24],[1773302553000,7.440000012],[1773302905000,5.04],[1773303179000,6.03],[1773303450000,5.360000004],[1773303753000,4.635],[1773304075000,6.274285704],[1773304377000,6.3],[1773304650000,5.348571444],[1773304953000,4.05],[1773305274000,3.034285704],[1773305577000,3.024],[1773305931000,4.079999988],[1773306153000,5.519999988],[1773306537000,3.15],[1773306793000,4.011428556],[1773307082000,7.65],[1773307353000,8.485714296],[1773307705000,5.895],[1773307977000,3.359999988],[1773308282000,2.925],[1773308553000,2.475],[1773308905000,2.674285704],[1773309178000,1.199999988],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1773270026000,0],[1773270202000,0],[1773270474000,0],[1773270778000,0],[1773271050000,0],[1773271353000,0],[1773271675000,1.119999996],[1773271978000,2.52],[1773272250000,0],[1773272602000,1.26],[1773272906000,1.575],[1773273211000,0],[1773273450000,0.72],[1773273802000,0.63],[1773274074000,0],[1773274410000,0],[1773274713000,0],[1773274970000,0],[1773275306000,0],[1773275690000,0],[1773275851000,0.72],[1773276153000,0],[1773276474000,0],[1773276778000,0],[1773277050000,0],[1773277353000,0],[1773277674000,0],[1773277978000,0],[1773278250000,0.945],[1773278553000,1.959999984],[1773278906000,0.420000012],[1773279178000,0],[1773279450000,0],[1773279753000,0],[1773280074000,0.945],[1773280378000,0],[1773280650000,0.280000008],[1773280953000,1.575],[1773281433000,2.52],[1773281642000,0],[1773281930000,0],[1773282154000,0.72],[1773282474000,0.280000008],[1773282778000,0.36],[1773283050000,2.239999992],[1773283403000,1.26],[1773283674000,2.205],[1773283978000,0],[1773284250000,0],[1773284553000,2.52],[1773284906000,3.15],[1773285178000,2.52],[1773285450000,0],[1773285753000,0],[1773286075000,0],[1773286378000,0],[1773286650000,0],[1773286953000,0],[1773287274000,0],[1773287578000,0],[1773287850000,0],[1773288153000,0],[1773288474000,1.26],[1773288778000,0.36],[1773289050000,0],[1773289602000,0],[1773289706000,0.315],[1773289978000,0],[1773290250000,0],[1773290602000,0],[1773290873000,0],[1773291178000,0],[1773291482000,0],[1773291753000,0],[1773292074000,0],[1773292489000,0],[1773292682000,0],[1773293002000,0],[1773293306000,0],[1773293578000,0],[1773293850000,0],[1773294153000,0],[1773294506000,0],[1773294778000,0],[1773295050000,0],[1773295353000,1.26],[1773295674000,0.560000016],[1773295977000,1.575],[1773296281000,2.88],[1773296554000,5.04],[1773296878000,5.460000012],[1773297178000,5.04],[1773297450000,4.41],[1773297753000,6.760000008],[1773298074000,6.345],[1773298378000,7.880000004],[1773298683000,9.411428556],[1773298953000,9.640000008],[1773299306000,7.29],[1773299609000,10.08],[1773299929000,5.04],[1773300169000,5.67],[1773300649000,7.56],[1773300778000,5.985],[1773301081000,5.76],[1773301353000,7.875],[1773301709000,9.36],[1773301977000,7.29],[1773302282000,5.76],[1773302553000,9.879999984],[1773302905000,6.93],[1773303179000,7.92],[1773303450000,7.880000004],[1773303753000,6.03],[1773304075000,7.971428556],[1773304377000,8.82],[1773304650000,6.84],[1773304953000,5.985],[1773305274000,5.091428556],[1773305577000,5.544],[1773305931000,5.04],[1773306153000,10.199999988],[1773306537000,4.41],[1773306793000,6.891428556],[1773307082000,10.8],[1773307353000,9.874285704],[1773307705000,8.235],[1773307977000,5.04],[1773308282000,4.095],[1773308553000,4.095],[1773308905000,3.96],[1773309178000,1.680000012],], 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: [[1773270026000,288.50000000],[1773270202000,297.12500000],[1773270474000,298.75000000],[1773270778000,297.00000000],[1773271050000,307.33333333],[1773271353000,312.75000000],[1773271675000,284.66666667],[1773271978000,290.50000000],[1773272250000,311.75000000],[1773272602000,298.66666667],[1773272906000,315.75000000],[1773273211000,297.00000000],[1773273450000,300.57142857],[1773273802000,312.75000000],[1773274074000,299.87500000],[1773274410000,316.20000000],[1773274713000,305.33333333],[1773274970000,306.00000000],[1773275306000,305.00000000],[1773275690000,301.66666667],[1773275851000,295.85714286],[1773276153000,305.55555556],[1773276474000,305.66666667],[1773276778000,304.57142857],[1773277050000,304.77777778],[1773277353000,304.33333333],[1773277674000,303.62500000],[1773277978000,298.87500000],[1773278250000,269.37500000],[1773278553000,326.77777778],[1773278906000,305.16666667],[1773279178000,298.37500000],[1773279450000,298.66666667],[1773279753000,290.75000000],[1773280074000,300.62500000],[1773280378000,302.00000000],[1773280650000,310.88888889],[1773280953000,272.75000000],[1773281433000,297.50000000],[1773281642000,299.00000000],[1773281930000,306.40000000],[1773282154000,269.14285714],[1773282474000,302.44444444],[1773282778000,289.42857143],[1773283050000,288.55555556],[1773283403000,289.12500000],[1773283674000,289.37500000],[1773283978000,307.75000000],[1773284250000,297.00000000],[1773284553000,251.00000000],[1773284906000,285.12500000],[1773285178000,314.14285714],[1773285450000,302.75000000],[1773285753000,302.75000000],[1773286075000,289.11111111],[1773286378000,297.87500000],[1773286650000,298.00000000],[1773286953000,293.25000000],[1773287274000,298.44444444],[1773287578000,297.00000000],[1773287850000,297.44444444],[1773288153000,297.88888889],[1773288474000,283.12500000],[1773288778000,297.57142857],[1773289050000,311.33333333],[1773289602000,286.00000000],[1773289706000,292.00000000],[1773289978000,299.00000000],[1773290250000,296.77777778],[1773290602000,294.37500000],[1773290873000,296.22222222],[1773291178000,288.66666667],[1773291482000,291.50000000],[1773291753000,297.44444444],[1773292074000,301.11111111],[1773292489000,301.00000000],[1773292682000,301.60000000],[1773293002000,300.50000000],[1773293306000,301.00000000],[1773293578000,301.00000000],[1773293850000,301.00000000],[1773294153000,301.00000000],[1773294506000,300.71428571],[1773294778000,301.00000000],[1773295050000,302.25000000],[1773295353000,273.50000000],[1773295674000,295.66666667],[1773295977000,210.50000000],[1773296281000,212.28571429],[1773296554000,102.85714286],[1773296878000,170.50000000],[1773297178000,92.85714286],[1773297450000,163.12500000],[1773297753000,148.11111111],[1773298074000,166.25000000],[1773298378000,119.77777778],[1773298683000,108.42857143],[1773298953000,119.88888889],[1773299306000,118.00000000],[1773299609000,38.00000000],[1773299929000,234.00000000],[1773300169000,184.50000000],[1773300649000,224.00000000],[1773300778000,208.00000000],[1773301081000,204.00000000],[1773301353000,114.37500000],[1773301709000,103.50000000],[1773301977000,153.50000000],[1773302282000,154.42857143],[1773302553000,148.66666667],[1773302905000,131.87500000],[1773303179000,166.25000000],[1773303450000,131.77777778],[1773303753000,155.87500000],[1773304075000,68.14285714],[1773304377000,86.37500000],[1773304650000,160.00000000],[1773304953000,112.12500000],[1773305274000,145.14285714],[1773305577000,150.20000000],[1773305931000,240.66666667],[1773306153000,241.66666667],[1773306537000,169.50000000],[1773306793000,148.85714286],[1773307082000,71.25000000],[1773307353000,63.14285714],[1773307705000,79.87500000],[1773307977000,191.83333333],[1773308282000,233.62500000],[1773308553000,228.75000000],[1773308905000,204.00000000],[1773309178000,214.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: [[1773270026000,0.00000000],[1773270202000,0.00000000],[1773270474000,0.00000000],[1773270778000,0.00000000],[1773271050000,0.00000000],[1773271353000,0.00000000],[1773271675000,0.00000000],[1773271978000,0.00000000],[1773272250000,0.00000000],[1773272602000,0.00000000],[1773272906000,0.00000000],[1773273211000,0.00000000],[1773273450000,0.00000000],[1773273802000,0.00000000],[1773274074000,0.00000000],[1773274410000,0.00000000],[1773274713000,0.00000000],[1773274970000,0.00000000],[1773275306000,0.00000000],[1773275690000,0.00000000],[1773275851000,0.00000000],[1773276153000,0.00000000],[1773276474000,0.00000000],[1773276778000,0.00000000],[1773277050000,0.00000000],[1773277353000,0.00000000],[1773277674000,0.00000000],[1773277978000,0.00000000],[1773278250000,0.00000000],[1773278553000,0.00000000],[1773278906000,0.00000000],[1773279178000,0.00000000],[1773279450000,0.00000000],[1773279753000,0.00000000],[1773280074000,0.00000000],[1773280378000,0.00000000],[1773280650000,0.00000000],[1773280953000,0.00000000],[1773281433000,0.00000000],[1773281642000,0.00000000],[1773281930000,0.00000000],[1773282154000,0.00000000],[1773282474000,0.00000000],[1773282778000,0.00000000],[1773283050000,0.00000000],[1773283403000,0.00000000],[1773283674000,0.00000000],[1773283978000,0.00000000],[1773284250000,0.00000000],[1773284553000,0.00000000],[1773284906000,0.00000000],[1773285178000,0.00000000],[1773285450000,0.00000000],[1773285753000,0.00000000],[1773286075000,0.00000000],[1773286378000,0.00000000],[1773286650000,0.00000000],[1773286953000,0.00000000],[1773287274000,0.00000000],[1773287578000,0.00000000],[1773287850000,0.00000000],[1773288153000,0.00000000],[1773288474000,0.00000000],[1773288778000,0.00000000],[1773289050000,0.00000000],[1773289602000,0.00000000],[1773289706000,0.00000000],[1773289978000,0.00000000],[1773290250000,0.00000000],[1773290602000,0.00000000],[1773290873000,0.33333333],[1773291178000,1.00000000],[1773291482000,1.75000000],[1773291753000,2.88888889],[1773292074000,4.66666667],[1773292489000,7.50000000],[1773292682000,9.20000000],[1773293002000,11.75000000],[1773293306000,15.00000000],[1773293578000,17.57142857],[1773293850000,20.44444444],[1773294153000,24.37500000],[1773294506000,29.85714286],[1773294778000,28.75000000],[1773295050000,36.62500000],[1773295353000,34.83333333],[1773295674000,35.44444444],[1773295977000,36.62500000],[1773296281000,38.57142857],[1773296554000,41.28571429],[1773296878000,42.16666667],[1773297178000,44.14285714],[1773297450000,53.00000000],[1773297753000,49.44444444],[1773298074000,50.00000000],[1773298378000,60.22222222],[1773298683000,72.14285714],[1773298953000,71.00000000],[1773299306000,87.25000000],[1773299609000,72.00000000],[1773299929000,99.00000000],[1773300169000,108.75000000],[1773300649000,93.00000000],[1773300778000,100.37500000],[1773301081000,152.42857143],[1773301353000,160.25000000],[1773301709000,121.83333333],[1773301977000,104.87500000],[1773302282000,98.00000000],[1773302553000,105.44444444],[1773302905000,180.12500000],[1773303179000,198.62500000],[1773303450000,229.11111111],[1773303753000,163.12500000],[1773304075000,133.42857143],[1773304377000,165.75000000],[1773304650000,221.85714286],[1773304953000,231.25000000],[1773305274000,234.28571429],[1773305577000,205.00000000],[1773305931000,302.66666667],[1773306153000,401.66666667],[1773306537000,432.00000000],[1773306793000,433.85714286],[1773307082000,439.25000000],[1773307353000,446.71428571],[1773307705000,452.25000000],[1773307977000,454.83333333],[1773308282000,453.25000000],[1773308553000,452.75000000],[1773308905000,471.71428571],[1773309178000,470.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: [[1773270026000,0.00000000],[1773270202000,0.00000000],[1773270474000,0.00000000],[1773270778000,0.00000000],[1773271050000,0.00000000],[1773271353000,0.00000000],[1773271675000,0.00000000],[1773271978000,0.00000000],[1773272250000,0.00000000],[1773272602000,0.00000000],[1773272906000,0.00000000],[1773273211000,0.00000000],[1773273450000,0.00000000],[1773273802000,0.00000000],[1773274074000,0.00000000],[1773274410000,0.00000000],[1773274713000,0.00000000],[1773274970000,0.00000000],[1773275306000,0.00000000],[1773275690000,0.00000000],[1773275851000,0.00000000],[1773276153000,0.00000000],[1773276474000,0.00000000],[1773276778000,0.00000000],[1773277050000,0.00000000],[1773277353000,0.00000000],[1773277674000,0.00000000],[1773277978000,0.00000000],[1773278250000,0.00000000],[1773278553000,0.00000000],[1773278906000,0.00000000],[1773279178000,0.00000000],[1773279450000,0.00000000],[1773279753000,0.00000000],[1773280074000,0.00000000],[1773280378000,0.00000000],[1773280650000,0.00000000],[1773280953000,0.00000000],[1773281433000,0.00000000],[1773281642000,0.00000000],[1773281930000,0.00000000],[1773282154000,0.00000000],[1773282474000,0.00000000],[1773282778000,0.00000000],[1773283050000,0.00000000],[1773283403000,0.00000000],[1773283674000,0.00000000],[1773283978000,0.00000000],[1773284250000,0.00000000],[1773284553000,0.00000000],[1773284906000,0.00000000],[1773285178000,0.00000000],[1773285450000,0.00000000],[1773285753000,0.00000000],[1773286075000,0.00000000],[1773286378000,0.00000000],[1773286650000,0.00000000],[1773286953000,0.00000000],[1773287274000,0.00000000],[1773287578000,0.00000000],[1773287850000,0.00000000],[1773288153000,0.00000000],[1773288474000,0.00000000],[1773288778000,0.00000000],[1773289050000,0.00000000],[1773289602000,0.00000000],[1773289706000,0.00000000],[1773289978000,0.00000000],[1773290250000,0.00000000],[1773290602000,0.00000000],[1773290873000,0.00000000],[1773291178000,0.00000000],[1773291482000,0.00000000],[1773291753000,0.00000000],[1773292074000,0.00000000],[1773292489000,0.00000000],[1773292682000,0.00000000],[1773293002000,0.00000000],[1773293306000,0.00000000],[1773293578000,0.00000000],[1773293850000,0.00000000],[1773294153000,0.00000000],[1773294506000,0.00000000],[1773294778000,0.00000000],[1773295050000,0.00000000],[1773295353000,0.00000000],[1773295674000,0.00000000],[1773295977000,0.00000000],[1773296281000,0.00000000],[1773296554000,0.00000000],[1773296878000,0.00000000],[1773297178000,0.00000000],[1773297450000,0.00000000],[1773297753000,0.00000000],[1773298074000,0.00000000],[1773298378000,0.11111111],[1773298683000,0.14285714],[1773298953000,0.00000000],[1773299306000,0.37500000],[1773299609000,0.00000000],[1773299929000,0.66666667],[1773300169000,0.50000000],[1773300649000,0.25000000],[1773300778000,0.50000000],[1773301081000,1.00000000],[1773301353000,1.00000000],[1773301709000,0.83333333],[1773301977000,0.62500000],[1773302282000,0.42857143],[1773302553000,0.44444444],[1773302905000,1.25000000],[1773303179000,1.50000000],[1773303450000,1.88888889],[1773303753000,1.25000000],[1773304075000,1.00000000],[1773304377000,1.12500000],[1773304650000,1.71428571],[1773304953000,2.00000000],[1773305274000,1.85714286],[1773305577000,1.40000000],[1773305931000,2.33333333],[1773306153000,3.66666667],[1773306537000,4.00000000],[1773306793000,4.00000000],[1773307082000,4.00000000],[1773307353000,4.00000000],[1773307705000,4.00000000],[1773307977000,4.00000000],[1773308282000,3.87500000],[1773308553000,3.87500000],[1773308905000,4.00000000],[1773309178000,4.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: [[1773270026000,0.00000000],[1773270202000,0.00000000],[1773270474000,0.00000000],[1773270778000,0.00000000],[1773271050000,0.00000000],[1773271353000,0.00000000],[1773271675000,0.00000000],[1773271978000,0.00000000],[1773272250000,0.00000000],[1773272602000,0.00000000],[1773272906000,0.00000000],[1773273211000,0.00000000],[1773273450000,0.00000000],[1773273802000,0.00000000],[1773274074000,0.00000000],[1773274410000,0.00000000],[1773274713000,0.00000000],[1773274970000,0.00000000],[1773275306000,0.00000000],[1773275690000,0.00000000],[1773275851000,0.00000000],[1773276153000,0.00000000],[1773276474000,0.00000000],[1773276778000,0.00000000],[1773277050000,0.00000000],[1773277353000,0.00000000],[1773277674000,0.00000000],[1773277978000,0.00000000],[1773278250000,0.00000000],[1773278553000,0.00000000],[1773278906000,0.00000000],[1773279178000,0.00000000],[1773279450000,0.00000000],[1773279753000,0.00000000],[1773280074000,0.00000000],[1773280378000,0.00000000],[1773280650000,0.00000000],[1773280953000,0.00000000],[1773281433000,0.00000000],[1773281642000,0.00000000],[1773281930000,0.00000000],[1773282154000,0.00000000],[1773282474000,0.00000000],[1773282778000,0.00000000],[1773283050000,0.00000000],[1773283403000,0.00000000],[1773283674000,0.00000000],[1773283978000,0.00000000],[1773284250000,0.00000000],[1773284553000,0.00000000],[1773284906000,0.00000000],[1773285178000,0.00000000],[1773285450000,0.00000000],[1773285753000,0.00000000],[1773286075000,0.00000000],[1773286378000,0.00000000],[1773286650000,0.00000000],[1773286953000,0.00000000],[1773287274000,0.00000000],[1773287578000,0.00000000],[1773287850000,0.00000000],[1773288153000,0.00000000],[1773288474000,0.00000000],[1773288778000,0.00000000],[1773289050000,0.00000000],[1773289602000,0.00000000],[1773289706000,0.00000000],[1773289978000,0.00000000],[1773290250000,0.00000000],[1773290602000,0.00000000],[1773290873000,0.00000000],[1773291178000,0.00000000],[1773291482000,0.00000000],[1773291753000,0.00000000],[1773292074000,0.00000000],[1773292489000,0.00000000],[1773292682000,0.00000000],[1773293002000,0.00000000],[1773293306000,0.00000000],[1773293578000,0.00000000],[1773293850000,0.00000000],[1773294153000,0.00000000],[1773294506000,0.00000000],[1773294778000,0.00000000],[1773295050000,0.00000000],[1773295353000,0.00000000],[1773295674000,0.00000000],[1773295977000,0.00000000],[1773296281000,0.00000000],[1773296554000,0.00000000],[1773296878000,0.00000000],[1773297178000,0.00000000],[1773297450000,0.00000000],[1773297753000,0.00000000],[1773298074000,0.00000000],[1773298378000,0.00000000],[1773298683000,0.00000000],[1773298953000,0.00000000],[1773299306000,0.00000000],[1773299609000,0.00000000],[1773299929000,0.00000000],[1773300169000,0.00000000],[1773300649000,0.00000000],[1773300778000,0.00000000],[1773301081000,0.00000000],[1773301353000,0.00000000],[1773301709000,0.00000000],[1773301977000,0.00000000],[1773302282000,0.00000000],[1773302553000,0.00000000],[1773302905000,0.00000000],[1773303179000,0.00000000],[1773303450000,0.00000000],[1773303753000,0.00000000],[1773304075000,0.00000000],[1773304377000,0.00000000],[1773304650000,0.00000000],[1773304953000,0.00000000],[1773305274000,0.00000000],[1773305577000,0.00000000],[1773305931000,0.00000000],[1773306153000,0.00000000],[1773306537000,0.00000000],[1773306793000,0.00000000],[1773307082000,0.00000000],[1773307353000,0.00000000],[1773307705000,0.00000000],[1773307977000,0.00000000],[1773308282000,0.00000000],[1773308553000,0.00000000],[1773308905000,0.00000000],[1773309178000,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; }