var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1661724000000,19.70000000],[1661724600000,19.50000000],[1661725200000,19.20000000],[1661725800000,19.00000000],[1661727000000,18.70000000],[1661727600000,18.70000000],[1661728200000,18.70000000],[1661728800000,18.80000000],[1661729400000,18.70000000],[1661730000000,18.60000000],[1661730600000,18.50000000],[1661731800000,18.20000000],[1661733000000,18.50000000],[1661734200000,18.60000000],[1661734800000,18.60000000],[1661735400000,18.60000000],[1661737200000,17.80000000],[1661737800000,17.90000000],[1661738400000,17.90000000],[1661739000000,17.90000000],[1661739600000,17.50000000],[1661740200000,17.40000000],[1661740800000,17.80000000],[1661741400000,17.80000000],[1661742000000,17.70000000],[1661742600000,17.70000000],[1661743200000,17.40000000],[1661743800000,17.20000000],[1661744400000,17.30000000],[1661745000000,17.40000000],[1661746200000,17.40000000],[1661746800000,17.50000000],[1661748000000,17.60000000],[1661748600000,18.30000000],[1661749200000,18.70000000],[1661750400000,19.70000000],[1661751000000,20.10000000],[1661752200000,20.40000000],[1661752800000,20.20000000],[1661753400000,20.20000000],[1661754000000,20.70000000],[1661754600000,21.10000000],[1661755800000,21.70000000],[1661757000000,22.30000000],[1661757600000,22.50000000],[1661784000000,24.10000000],[1661784600000,23.50000000],[1661785200000,23.40000000],[1661785800000,23.20000000],[1661787000000,22.80000000],[1661787600000,22.70000000],[1661788800000,23.10000000],[1661790000000,23.90000000],[1661790600000,23.60000000],[1661791200000,23.10000000],[1661791800000,22.50000000],[1661792400000,22.10000000],[1661793000000,21.80000000],[1661793600000,21.60000000],[1661794200000,21.20000000],[1661794800000,20.90000000],[1661795400000,20.80000000],[1661796600000,20.60000000],[1661797200000,20.60000000],[1661797800000,20.00000000],[1661798400000,19.90000000],[1661799000000,20.10000000],[1661799600000,20.10000000],[1661800200000,20.20000000],[1661800800000,20.20000000],[1661801400000,20.20000000],[1661802000000,20.20000000],[1661802600000,20.10000000],[1661803200000,19.90000000],[1661803800000,19.70000000],[1661804400000,19.60000000],[1661805600000,19.60000000],[1661806200000,19.70000000],[1661806800000,19.80000000],[1661807400000,19.70000000],[1661808000000,19.70000000],[1661809200000,19.60000000],[1661809800000,19.60000000],[1661810400000,19.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1661724000000,16.4],[1661724600000,16.3],[1661725200000,16.2],[1661725800000,16.1],[1661727000000,16.1],[1661727600000,16.1],[1661728200000,16.2],[1661728800000,16.2],[1661729400000,16.2],[1661730000000,16.1],[1661730600000,16],[1661731800000,15.9],[1661733000000,16.1],[1661734200000,16.1],[1661734800000,16.1],[1661735400000,16],[1661737200000,15.7],[1661737800000,15.8],[1661738400000,15.8],[1661739000000,15.8],[1661739600000,15.4],[1661740200000,15.5],[1661740800000,15.8],[1661741400000,15.7],[1661742000000,15.7],[1661742600000,15.7],[1661743200000,15.4],[1661743800000,15.4],[1661744400000,15.5],[1661745000000,15.6],[1661746200000,15.6],[1661746800000,15.7],[1661748000000,15.7],[1661748600000,16.3],[1661749200000,16.5],[1661750400000,17.2],[1661751000000,17.4],[1661752200000,17.4],[1661752800000,17.2],[1661753400000,17.3],[1661754000000,17.8],[1661754600000,17.9],[1661755800000,18.2],[1661757000000,18.5],[1661757600000,18.7],[1661784000000,18.7],[1661784600000,18.5],[1661785200000,18.8],[1661785800000,18.4],[1661787000000,17.7],[1661787600000,17.2],[1661788800000,17.1],[1661790000000,17.6],[1661790600000,17.6],[1661791200000,17.4],[1661791800000,17],[1661792400000,17],[1661793000000,16.9],[1661793600000,16.9],[1661794200000,16.7],[1661794800000,16.5],[1661795400000,16.5],[1661796600000,16.5],[1661797200000,16.6],[1661797800000,16.2],[1661798400000,16.3],[1661799000000,16.4],[1661799600000,15.8],[1661800200000,15.2],[1661800800000,14.8],[1661801400000,14.5],[1661802000000,14.3],[1661802600000,14.2],[1661803200000,14.1],[1661803800000,14],[1661804400000,14.1],[1661805600000,14.7],[1661806200000,15],[1661806800000,15.2],[1661807400000,15.2],[1661808000000,15.3],[1661809200000,15.5],[1661809800000,15.6],[1661810400000,15.6],], 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: [[1661724000000,81.40000000],[1661724600000,82.00000000],[1661725200000,82.80000000],[1661725800000,83.60000000],[1661727000000,84.80000000],[1661727600000,85.20000000],[1661728200000,85.40000000],[1661728800000,85.20000000],[1661729400000,85.40000000],[1661730000000,85.60000000],[1661730600000,85.60000000],[1661731800000,86.60000000],[1661733000000,86.20000000],[1661734200000,85.40000000],[1661734800000,85.60000000],[1661735400000,85.20000000],[1661737200000,87.60000000],[1661737800000,87.80000000],[1661738400000,87.80000000],[1661739000000,87.80000000],[1661739600000,87.80000000],[1661740200000,88.60000000],[1661740800000,88.40000000],[1661741400000,87.80000000],[1661742000000,88.20000000],[1661742600000,88.20000000],[1661743200000,88.40000000],[1661743800000,89.00000000],[1661744400000,89.20000000],[1661745000000,89.00000000],[1661746200000,89.00000000],[1661746800000,89.00000000],[1661748000000,88.80000000],[1661748600000,88.40000000],[1661749200000,87.20000000],[1661750400000,85.40000000],[1661751000000,84.60000000],[1661752200000,83.20000000],[1661752800000,83.20000000],[1661753400000,83.60000000],[1661754000000,83.80000000],[1661754600000,82.20000000],[1661755800000,80.60000000],[1661757000000,79.00000000],[1661757600000,79.20000000],[1661784000000,72.00000000],[1661784600000,73.80000000],[1661785200000,75.60000000],[1661785800000,74.60000000],[1661787000000,73.00000000],[1661787600000,71.40000000],[1661788800000,69.00000000],[1661790000000,68.00000000],[1661790600000,69.00000000],[1661791200000,70.20000000],[1661791800000,71.00000000],[1661792400000,72.80000000],[1661793000000,73.60000000],[1661793600000,74.80000000],[1661794200000,75.80000000],[1661794800000,76.20000000],[1661795400000,76.60000000],[1661796600000,77.40000000],[1661797200000,77.80000000],[1661797800000,79.00000000],[1661798400000,79.80000000],[1661799000000,79.40000000],[1661799600000,76.20000000],[1661800200000,73.20000000],[1661800800000,71.20000000],[1661801400000,70.00000000],[1661802000000,69.00000000],[1661802600000,69.00000000],[1661803200000,69.40000000],[1661803800000,69.80000000],[1661804400000,70.80000000],[1661805600000,73.60000000],[1661806200000,74.40000000],[1661806800000,75.00000000],[1661807400000,75.40000000],[1661808000000,75.80000000],[1661809200000,77.40000000],[1661809800000,77.80000000],[1661810400000,78.20000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1661724000000,1015.4],[1661724600000,1015.4],[1661725200000,1015.5],[1661725800000,1015.6],[1661727000000,1015.5],[1661727600000,1015.6],[1661728200000,1015.6],[1661728800000,1015.4],[1661729400000,1015.4],[1661730000000,1015.5],[1661730600000,1015.5],[1661731800000,1015.8],[1661733000000,1015.6],[1661734200000,1015.4],[1661734800000,1015.4],[1661735400000,1015.5],[1661737200000,1015.8],[1661737800000,1015.8],[1661738400000,1015.9],[1661739000000,1015.7],[1661739600000,1015.9],[1661740200000,1015.8],[1661740800000,1015.8],[1661741400000,1015.8],[1661742000000,1015.7],[1661742600000,1015.8],[1661743200000,1015.9],[1661743800000,1016.1],[1661744400000,1016.2],[1661745000000,1016.2],[1661746200000,1016.2],[1661746800000,1016.3],[1661748000000,1016.4],[1661748600000,1016.3],[1661749200000,1016.2],[1661750400000,1016.2],[1661751000000,1016.4],[1661752200000,1017.4],[1661752800000,1017.2],[1661753400000,1017.3],[1661754000000,1017.7],[1661754600000,1017.6],[1661755800000,1017.6],[1661757000000,1017.6],[1661757600000,1017.6],[1661784000000,1017.2],[1661784600000,1017.5],[1661785200000,1017.6],[1661785800000,1017.6],[1661787000000,1017.5],[1661787600000,1017.4],[1661788800000,1017.1],[1661790000000,1017],[1661790600000,1017.2],[1661791200000,1017.4],[1661791800000,1017.6],[1661792400000,1017.8],[1661793000000,1018.1],[1661793600000,1018.1],[1661794200000,1018.3],[1661794800000,1018.4],[1661795400000,1018.5],[1661796600000,1018.7],[1661797200000,1018.9],[1661797800000,1018.5],[1661798400000,1018.3],[1661799000000,1018.5],[1661799600000,1018.9],[1661800200000,1019],[1661800800000,1019.5],[1661801400000,1019.4],[1661802000000,1019.7],[1661802600000,1019.1],[1661803200000,1018.7],[1661803800000,1018.7],[1661804400000,1018.8],[1661805600000,1018.9],[1661806200000,1019],[1661806800000,1018.9],[1661807400000,1019],[1661808000000,1018.9],[1661809200000,1018.9],[1661809800000,1018.8],[1661810400000,1018.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: 'Slnečné žiarenie (W/m2)', data: [[1661724000000,0.00000000],[1661724600000,0.00000000],[1661725200000,0.00000000],[1661725800000,0.00000000],[1661727000000,0.00000000],[1661727600000,0.00000000],[1661728200000,0.00000000],[1661728800000,0.00000000],[1661729400000,0.00000000],[1661730000000,0.00000000],[1661730600000,0.00000000],[1661731800000,0.00000000],[1661733000000,0.00000000],[1661734200000,0.00000000],[1661734800000,0.00000000],[1661735400000,0.00000000],[1661737200000,0.00000000],[1661737800000,0.00000000],[1661738400000,0.00000000],[1661739000000,0.00000000],[1661739600000,0.00000000],[1661740200000,0.00000000],[1661740800000,0.00000000],[1661741400000,0.00000000],[1661742000000,0.00000000],[1661742600000,0.00000000],[1661743200000,0.00000000],[1661743800000,0.00000000],[1661744400000,0.00000000],[1661745000000,0.00000000],[1661746200000,4.00000000],[1661746800000,8.00000000],[1661748000000,32.00000000],[1661748600000,50.00000000],[1661749200000,68.00000000],[1661750400000,110.00000000],[1661751000000,120.00000000],[1661752200000,140.00000000],[1661752800000,162.00000000],[1661753400000,186.00000000],[1661754000000,196.00000000],[1661754600000,216.00000000],[1661755800000,258.00000000],[1661757000000,298.00000000],[1661757600000,318.00000000],[1661784000000,254.00000000],[1661784600000,228.00000000],[1661785200000,356.00000000],[1661785800000,130.00000000],[1661787000000,206.00000000],[1661787600000,182.00000000],[1661788800000,148.00000000],[1661790000000,104.00000000],[1661790600000,50.00000000],[1661791200000,26.00000000],[1661791800000,24.00000000],[1661792400000,20.00000000],[1661793000000,18.00000000],[1661793600000,16.00000000],[1661794200000,6.00000000],[1661794800000,2.00000000],[1661795400000,0.00000000],[1661796600000,0.00000000],[1661797200000,0.00000000],[1661797800000,0.00000000],[1661798400000,0.00000000],[1661799000000,0.00000000],[1661799600000,0.00000000],[1661800200000,0.00000000],[1661800800000,0.00000000],[1661801400000,0.00000000],[1661802000000,0.00000000],[1661802600000,0.00000000],[1661803200000,0.00000000],[1661803800000,0.00000000],[1661804400000,0.00000000],[1661805600000,0.00000000],[1661806200000,0.00000000],[1661806800000,0.00000000],[1661807400000,0.00000000],[1661808000000,0.00000000],[1661809200000,0.00000000],[1661809800000,0.00000000],[1661810400000,0.00000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1661724000000,0.00000000],[1661724600000,0.00000000],[1661725200000,0.00000000],[1661725800000,0.00000000],[1661727000000,0.00000000],[1661727600000,0.00000000],[1661728200000,0.00000000],[1661728800000,0.00000000],[1661729400000,0.00000000],[1661730000000,0.00000000],[1661730600000,0.00000000],[1661731800000,0.00000000],[1661733000000,0.00000000],[1661734200000,0.00000000],[1661734800000,0.00000000],[1661735400000,0.00000000],[1661737200000,0.00000000],[1661737800000,0.00000000],[1661738400000,0.00000000],[1661739000000,0.00000000],[1661739600000,0.00000000],[1661740200000,0.00000000],[1661740800000,0.00000000],[1661741400000,0.00000000],[1661742000000,0.00000000],[1661742600000,0.00000000],[1661743200000,0.00000000],[1661743800000,0.00000000],[1661744400000,0.00000000],[1661745000000,0.00000000],[1661746200000,0.00000000],[1661746800000,0.00000000],[1661748000000,0.00000000],[1661748600000,0.00000000],[1661749200000,0.00000000],[1661750400000,0.00000000],[1661751000000,0.00000000],[1661752200000,0.00000000],[1661752800000,0.00000000],[1661753400000,0.00000000],[1661754000000,0.00000000],[1661754600000,0.00000000],[1661755800000,0.00000000],[1661757000000,0.00000000],[1661757600000,0.00000000],[1661784000000,0.00000000],[1661784600000,0.00000000],[1661785200000,0.00000000],[1661785800000,0.00000000],[1661787000000,0.00000000],[1661787600000,0.00000000],[1661788800000,0.00000000],[1661790000000,0.00000000],[1661790600000,0.00000000],[1661791200000,0.00000000],[1661791800000,0.00000000],[1661792400000,0.00000000],[1661793000000,0.00000000],[1661793600000,0.00000000],[1661794200000,0.00000000],[1661794800000,0.00000000],[1661795400000,0.00000000],[1661796600000,0.00000000],[1661797200000,0.00000000],[1661797800000,0.00000000],[1661798400000,0.00000000],[1661799000000,0.00000000],[1661799600000,0.00000000],[1661800200000,0.00000000],[1661800800000,0.00000000],[1661801400000,0.00000000],[1661802000000,0.00000000],[1661802600000,0.00000000],[1661803200000,0.00000000],[1661803800000,0.00000000],[1661804400000,0.00000000],[1661805600000,0.00000000],[1661806200000,0.00000000],[1661806800000,0.00000000],[1661807400000,0.00000000],[1661808000000,0.00000000],[1661809200000,0.00000000],[1661809800000,0.00000000],[1661810400000,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; }