var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1773270003000,4.95000000],[1773270179000,5.10000000],[1773270451000,5.10000000],[1773270803000,5.00000000],[1773271075000,4.86250000],[1773271379000,4.84000000],[1773271651000,4.95000000],[1773272003000,4.90000000],[1773272275000,5.06250000],[1773272579000,5.25714286],[1773272851000,5.08750000],[1773273204000,5.00000000],[1773273475000,5.03750000],[1773273779000,5.12857143],[1773274051000,5.20000000],[1773274403000,5.30000000],[1773274675000,5.13333333],[1773274979000,5.10000000],[1773275251000,5.28750000],[1773275603000,5.23750000],[1773275875000,5.20000000],[1773276211000,4.93333333],[1773276451000,5.06250000],[1773276803000,5.21428571],[1773277075000,5.46250000],[1773277379000,5.71428571],[1773277651000,5.62500000],[1773278004000,5.51428571],[1773278275000,5.33750000],[1773278585000,5.35000000],[1773278851000,4.95714286],[1773279203000,4.60000000],[1773279475000,4.31250000],[1773279779000,4.20000000],[1773280051000,4.21250000],[1773280467000,4.56666667],[1773280675000,4.58750000],[1773281059000,4.32000000],[1773281251000,4.05000000],[1773281571000,3.62000000],[1773281891000,3.25000000],[1773282211000,3.20000000],[1773282483000,3.32857143],[1773282915000,3.76666667],[1773283107000,3.94000000],[1773283379000,3.85000000],[1773283651000,3.50000000],[1773284163000,3.50000000],[1773284275000,3.60000000],[1773284883000,3.30000000],[1773285171000,3.32500000],[1773285603000,3.40000000],[1773285779000,3.24000000],[1773286099000,3.00000000],[1773286563000,2.80000000],[1773286675000,2.90000000],[1773286994000,2.87500000],[1773287251000,2.60000000],[1773287571000,2.50000000],[1773287987000,2.76666667],[1773288178000,2.76000000],[1773288499000,2.77500000],[1773288946000,2.60000000],[1773289074000,2.54000000],[1773289395000,2.50000000],[1773289667000,2.30000000],[1773290050000,2.46666667],[1773290306000,2.60000000],[1773290690000,2.80000000],[1773290882000,2.70000000],[1773291202000,2.56666667],[1773291587000,2.13333333],[1773291778000,1.98000000],[1773292098000,2.06666667],[1773292610000,2.50000000],[1773292674000,2.62500000],[1773292994000,2.90000000],[1773293266000,3.56666667],[1773293602000,3.90000000],[1773293986000,4.30000000],[1773294194000,4.45000000],[1773294450000,4.55000000],[1773294771000,4.77500000],[1773295090000,5.18000000],[1773295411000,5.40000000],[1773295667000,7.02000000],[1773296002000,7.45000000],[1773296275000,7.98333333],[1773296578000,7.83333333],[1773296850000,7.92500000],[1773297202000,8.27142857],[1773297474000,10.35000000],[1773297778000,10.68000000],[1773298050000,10.32500000],[1773298404000,10.75000000],[1773298674000,10.80000000],[1773298979000,10.85714286],[1773299251000,10.81250000],[1773299602000,10.92857143],[1773299895000,11.36666667],[1773300178000,11.71666667],[1773300450000,11.56250000],[1773300803000,10.98000000],[1773301074000,11.40000000],[1773301410000,12.65000000],[1773301682000,12.96666667],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1773270003000,3.9],[1773270179000,4],[1773270451000,3.9],[1773270803000,3.8],[1773271075000,3.7],[1773271379000,3.6],[1773271651000,3.6],[1773272003000,3.5],[1773272275000,3.7],[1773272579000,3.8],[1773272851000,3.6],[1773273204000,3.5],[1773273475000,3.6],[1773273779000,3.6],[1773274051000,3.7],[1773274403000,3.7],[1773274675000,3.5],[1773274979000,3.6],[1773275251000,3.6],[1773275603000,3.6],[1773275875000,3.5],[1773276211000,3.4],[1773276451000,3.5],[1773276803000,3.5],[1773277075000,3.7],[1773277379000,3.7],[1773277651000,3.6],[1773278004000,3.5],[1773278275000,3.5],[1773278585000,3.5],[1773278851000,3.2],[1773279203000,2.9],[1773279475000,2.8],[1773279779000,2.9],[1773280051000,3],[1773280467000,3.3],[1773280675000,3.2],[1773281059000,3],[1773281251000,2.7],[1773281571000,2.4],[1773281891000,2.2],[1773282211000,2.2],[1773282483000,2.5],[1773282915000,3],[1773283107000,3.1],[1773283379000,3],[1773283651000,2.6],[1773284163000,2.8],[1773284275000,2.9],[1773284883000,2.6],[1773285171000,2.6],[1773285603000,2.7],[1773285779000,2.5],[1773286099000,2.3],[1773286563000,2.2],[1773286675000,2.3],[1773286994000,2.3],[1773287251000,2],[1773287571000,1.9],[1773287987000,2.3],[1773288178000,2.3],[1773288499000,2.3],[1773288946000,2.2],[1773289074000,2.1],[1773289395000,2.1],[1773289667000,1.9],[1773290050000,2.2],[1773290306000,2.3],[1773290690000,2.5],[1773290882000,2.4],[1773291202000,2.3],[1773291587000,1.8],[1773291778000,1.7],[1773292098000,1.8],[1773292610000,2.4],[1773292674000,2.4],[1773292994000,2.6],[1773293266000,3.2],[1773293602000,3.4],[1773293986000,3.6],[1773294194000,3.5],[1773294450000,3.4],[1773294771000,3.5],[1773295090000,3.6],[1773295411000,3.7],[1773295667000,4.4],[1773296002000,4.5],[1773296275000,4.7],[1773296578000,4.8],[1773296850000,4.9],[1773297202000,5.2],[1773297474000,6.1],[1773297778000,6.2],[1773298050000,6.1],[1773298404000,6.2],[1773298674000,6.3],[1773298979000,6.3],[1773299251000,6.3],[1773299602000,6.4],[1773299895000,6.3],[1773300178000,6.4],[1773300450000,6.3],[1773300803000,6.1],[1773301074000,6.1],[1773301410000,7.1],[1773301682000,7.3],], 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: [[1773270003000,93.00000000],[1773270179000,92.42857143],[1773270451000,92.00000000],[1773270803000,92.00000000],[1773271075000,92.00000000],[1773271379000,92.00000000],[1773271651000,91.37500000],[1773272003000,91.00000000],[1773272275000,91.00000000],[1773272579000,90.28571429],[1773272851000,90.00000000],[1773273204000,90.14285714],[1773273475000,90.25000000],[1773273779000,90.00000000],[1773274051000,90.00000000],[1773274403000,89.42857143],[1773274675000,89.11111111],[1773274979000,90.00000000],[1773275251000,89.00000000],[1773275603000,89.50000000],[1773275875000,89.00000000],[1773276211000,90.00000000],[1773276451000,90.00000000],[1773276803000,89.14285714],[1773277075000,88.62500000],[1773277379000,87.28571429],[1773277651000,87.00000000],[1773278004000,87.14285714],[1773278275000,88.00000000],[1773278585000,88.00000000],[1773278851000,88.57142857],[1773279203000,89.16666667],[1773279475000,90.25000000],[1773279779000,91.42857143],[1773280051000,92.00000000],[1773280467000,91.66666667],[1773280675000,91.00000000],[1773281059000,91.00000000],[1773281251000,91.25000000],[1773281571000,92.00000000],[1773281891000,92.75000000],[1773282211000,93.33333333],[1773282483000,94.28571429],[1773282915000,95.00000000],[1773283107000,94.40000000],[1773283379000,94.00000000],[1773283651000,94.00000000],[1773284163000,95.00000000],[1773284275000,95.00000000],[1773284883000,95.00000000],[1773285171000,95.00000000],[1773285603000,95.00000000],[1773285779000,95.00000000],[1773286099000,95.00000000],[1773286563000,96.00000000],[1773286675000,96.00000000],[1773286994000,96.00000000],[1773287251000,96.00000000],[1773287571000,96.00000000],[1773287987000,97.00000000],[1773288178000,97.00000000],[1773288499000,97.00000000],[1773288946000,97.00000000],[1773289074000,97.00000000],[1773289395000,97.00000000],[1773289667000,97.00000000],[1773290050000,98.00000000],[1773290306000,98.00000000],[1773290690000,98.00000000],[1773290882000,98.00000000],[1773291202000,98.00000000],[1773291587000,98.00000000],[1773291778000,98.00000000],[1773292098000,98.00000000],[1773292610000,99.00000000],[1773292674000,98.25000000],[1773292994000,98.00000000],[1773293266000,97.66666667],[1773293602000,96.66666667],[1773293986000,95.00000000],[1773294194000,93.75000000],[1773294450000,92.50000000],[1773294771000,91.25000000],[1773295090000,89.80000000],[1773295411000,89.00000000],[1773295667000,83.40000000],[1773296002000,81.50000000],[1773296275000,80.00000000],[1773296578000,81.50000000],[1773296850000,81.50000000],[1773297202000,81.42857143],[1773297474000,75.00000000],[1773297778000,74.20000000],[1773298050000,75.50000000],[1773298404000,73.83333333],[1773298674000,74.00000000],[1773298979000,73.85714286],[1773299251000,74.00000000],[1773299602000,73.71428571],[1773299895000,71.50000000],[1773300178000,70.00000000],[1773300450000,70.50000000],[1773300803000,72.20000000],[1773301074000,70.28571429],[1773301410000,69.00000000],[1773301682000,68.66666667],], 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: [[1773270003000,1021.4],[1773270179000,1021.4],[1773270451000,1021.4],[1773270803000,1021.4],[1773271075000,1021.4],[1773271379000,1021.5],[1773271651000,1021.5],[1773272003000,1021.5],[1773272275000,1021.6],[1773272579000,1021.4],[1773272851000,1021.4],[1773273204000,1021.5],[1773273475000,1021.5],[1773273779000,1021.4],[1773274051000,1021.4],[1773274403000,1021.5],[1773274675000,1021.5],[1773274979000,1021.4],[1773275251000,1021.4],[1773275603000,1021.4],[1773275875000,1021.4],[1773276211000,1021.4],[1773276451000,1021.3],[1773276803000,1021.2],[1773277075000,1021.2],[1773277379000,1021.1],[1773277651000,1021.2],[1773278004000,1021.1],[1773278275000,1021.1],[1773278585000,1021.1],[1773278851000,1021.2],[1773279203000,1021.2],[1773279475000,1021.3],[1773279779000,1021.4],[1773280051000,1021.3],[1773280467000,1021.2],[1773280675000,1021.2],[1773281059000,1021.3],[1773281251000,1021.3],[1773281571000,1021.5],[1773281891000,1021.3],[1773282211000,1021.3],[1773282483000,1021.5],[1773282915000,1021.4],[1773283107000,1021.5],[1773283379000,1021.5],[1773283651000,1021.6],[1773284163000,1021.6],[1773284275000,1021.6],[1773284883000,1021.5],[1773285171000,1021.6],[1773285603000,1021.6],[1773285779000,1021.6],[1773286099000,1021.7],[1773286563000,1021.7],[1773286675000,1021.8],[1773286994000,1021.9],[1773287251000,1021.9],[1773287571000,1021.9],[1773287987000,1021.7],[1773288178000,1021.9],[1773288499000,1021.9],[1773288946000,1022.2],[1773289074000,1022.2],[1773289395000,1022.1],[1773289667000,1022.2],[1773290050000,1022.1],[1773290306000,1022.1],[1773290690000,1022.1],[1773290882000,1022.2],[1773291202000,1022.2],[1773291587000,1022.3],[1773291778000,1022.4],[1773292098000,1022.4],[1773292610000,1022.2],[1773292674000,1022.4],[1773292994000,1022.4],[1773293266000,1022.5],[1773293602000,1022.5],[1773293986000,1022.5],[1773294194000,1022.6],[1773294450000,1022.7],[1773294771000,1022.7],[1773295090000,1022.8],[1773295411000,1022.9],[1773295667000,1022.9],[1773296002000,1022.8],[1773296275000,1023],[1773296578000,1023.2],[1773296850000,1023.1],[1773297202000,1023.1],[1773297474000,1023],[1773297778000,1023],[1773298050000,1023.2],[1773298404000,1023.2],[1773298674000,1023.4],[1773298979000,1023.4],[1773299251000,1023.5],[1773299602000,1023.5],[1773299895000,1023.5],[1773300178000,1023.6],[1773300450000,1023.6],[1773300803000,1023.7],[1773301074000,1023.7],[1773301410000,1023.6],[1773301682000,1023.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: [[1773270003000,0],[1773270179000,0],[1773270451000,0],[1773270803000,0],[1773271075000,0],[1773271379000,0],[1773271651000,0],[1773272003000,0],[1773272275000,0.18],[1773272579000,0],[1773272851000,0],[1773273204000,0],[1773273475000,0.045],[1773273779000,0],[1773274051000,0.135],[1773274403000,0],[1773274675000,0],[1773274979000,0],[1773275251000,0],[1773275603000,0],[1773275875000,0],[1773276211000,0],[1773276451000,0],[1773276803000,0],[1773277075000,1.44],[1773277379000,0.822857148],[1773277651000,0.45],[1773278004000,1.285714296],[1773278275000,0.09],[1773278585000,0],[1773278851000,0.051428556],[1773279203000,0],[1773279475000,0],[1773279779000,0],[1773280051000,0],[1773280467000,0],[1773280675000,0],[1773281059000,0],[1773281251000,0],[1773281571000,0],[1773281891000,0],[1773282211000,0],[1773282483000,0],[1773282915000,0],[1773283107000,0],[1773283379000,0],[1773283651000,0],[1773284163000,0],[1773284275000,0],[1773284883000,0],[1773285171000,0],[1773285603000,0],[1773285779000,0],[1773286099000,0],[1773286563000,0],[1773286675000,0],[1773286994000,0],[1773287251000,0],[1773287571000,0],[1773287987000,0],[1773288178000,0],[1773288499000,0],[1773288946000,0],[1773289074000,0],[1773289395000,0],[1773289667000,0],[1773290050000,0],[1773290306000,0],[1773290690000,0],[1773290882000,0],[1773291202000,0],[1773291587000,0],[1773291778000,0],[1773292098000,0],[1773292610000,0],[1773292674000,0],[1773292994000,0.36],[1773293266000,0.060000012],[1773293602000,0.479999988],[1773293986000,0],[1773294194000,0],[1773294450000,0],[1773294771000,0],[1773295090000,0.072],[1773295411000,0],[1773295667000,0],[1773296002000,0],[1773296275000,0],[1773296578000,0],[1773296850000,0],[1773297202000,0],[1773297474000,0.045],[1773297778000,0],[1773298050000,0.045],[1773298404000,0.36],[1773298674000,0.051428556],[1773298979000,0.102857148],[1773299251000,0.045],[1773299602000,0.822857148],[1773299895000,0.54],[1773300178000,0.960000012],[1773300450000,1.125],[1773300803000,1.728],[1773301074000,0.565714296],[1773301410000,2.16],[1773301682000,5.159999988],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1773270003000,0],[1773270179000,0],[1773270451000,0],[1773270803000,0],[1773271075000,0],[1773271379000,0],[1773271651000,0],[1773272003000,0],[1773272275000,0.63],[1773272579000,0],[1773272851000,0],[1773273204000,0],[1773273475000,0.315],[1773273779000,0],[1773274051000,0.945],[1773274403000,0],[1773274675000,0],[1773274979000,0],[1773275251000,0],[1773275603000,0],[1773275875000,0],[1773276211000,0],[1773276451000,0],[1773276803000,0],[1773277075000,3.15],[1773277379000,1.8],[1773277651000,0.945],[1773278004000,1.8],[1773278275000,0.315],[1773278585000,0],[1773278851000,0.36],[1773279203000,0],[1773279475000,0],[1773279779000,0],[1773280051000,0],[1773280467000,0],[1773280675000,0],[1773281059000,0],[1773281251000,0],[1773281571000,0],[1773281891000,0],[1773282211000,0],[1773282483000,0],[1773282915000,0],[1773283107000,0],[1773283379000,0],[1773283651000,0],[1773284163000,0],[1773284275000,0],[1773284883000,0],[1773285171000,0],[1773285603000,0],[1773285779000,0],[1773286099000,0],[1773286563000,0],[1773286675000,0],[1773286994000,0],[1773287251000,0],[1773287571000,0],[1773287987000,0],[1773288178000,0],[1773288499000,0],[1773288946000,0],[1773289074000,0],[1773289395000,0],[1773289667000,0],[1773290050000,0],[1773290306000,0],[1773290690000,0],[1773290882000,0],[1773291202000,0],[1773291587000,0],[1773291778000,0],[1773292098000,0],[1773292610000,0],[1773292674000,0],[1773292994000,0.63],[1773293266000,0.420000012],[1773293602000,0.839999988],[1773293986000,0],[1773294194000,0],[1773294450000,0],[1773294771000,0],[1773295090000,0.504],[1773295411000,0],[1773295667000,0],[1773296002000,0],[1773296275000,0],[1773296578000,0],[1773296850000,0],[1773297202000,0],[1773297474000,0.315],[1773297778000,0],[1773298050000,0.315],[1773298404000,0.839999988],[1773298674000,0.36],[1773298979000,0.72],[1773299251000,0.315],[1773299602000,1.44],[1773299895000,2.099999988],[1773300178000,2.099999988],[1773300450000,2.52],[1773300803000,2.52],[1773301074000,1.08],[1773301410000,3.78],[1773301682000,6.720000012],], 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: [[1773270003000,28.50000000],[1773270179000,20.57142857],[1773270451000,20.12500000],[1773270803000,18.00000000],[1773271075000,15.62500000],[1773271379000,17.80000000],[1773271651000,69.00000000],[1773272003000,68.00000000],[1773272275000,55.50000000],[1773272579000,79.85714286],[1773272851000,70.12500000],[1773273204000,63.00000000],[1773273475000,54.75000000],[1773273779000,61.85714286],[1773274051000,67.12500000],[1773274403000,58.85714286],[1773274675000,62.66666667],[1773274979000,81.60000000],[1773275251000,69.87500000],[1773275603000,72.75000000],[1773275875000,77.28571429],[1773276211000,77.33333333],[1773276451000,77.25000000],[1773276803000,72.28571429],[1773277075000,95.50000000],[1773277379000,87.00000000],[1773277651000,102.87500000],[1773278004000,76.42857143],[1773278275000,86.62500000],[1773278585000,59.25000000],[1773278851000,65.57142857],[1773279203000,50.16666667],[1773279475000,60.12500000],[1773279779000,61.14285714],[1773280051000,67.12500000],[1773280467000,73.00000000],[1773280675000,60.75000000],[1773281059000,53.80000000],[1773281251000,39.25000000],[1773281571000,40.00000000],[1773281891000,40.00000000],[1773282211000,40.00000000],[1773282483000,47.42857143],[1773282915000,72.33333333],[1773283107000,69.80000000],[1773283379000,69.00000000],[1773283651000,69.00000000],[1773284163000,66.50000000],[1773284275000,66.33333333],[1773284883000,60.20000000],[1773285171000,65.25000000],[1773285603000,68.00000000],[1773285779000,67.00000000],[1773286099000,67.00000000],[1773286563000,67.00000000],[1773286675000,33.00000000],[1773286994000,35.75000000],[1773287251000,39.50000000],[1773287571000,34.50000000],[1773287987000,33.00000000],[1773288178000,42.60000000],[1773288499000,31.75000000],[1773288946000,31.50000000],[1773289074000,15.40000000],[1773289395000,23.50000000],[1773289667000,24.40000000],[1773290050000,20.33333333],[1773290306000,28.50000000],[1773290690000,48.00000000],[1773290882000,34.75000000],[1773291202000,34.00000000],[1773291587000,34.00000000],[1773291778000,34.00000000],[1773292098000,34.33333333],[1773292610000,86.00000000],[1773292674000,89.50000000],[1773292994000,75.50000000],[1773293266000,75.00000000],[1773293602000,76.00000000],[1773293986000,72.50000000],[1773294194000,60.25000000],[1773294450000,61.50000000],[1773294771000,63.25000000],[1773295090000,59.20000000],[1773295411000,61.00000000],[1773295667000,89.00000000],[1773296002000,42.00000000],[1773296275000,74.83333333],[1773296578000,49.33333333],[1773296850000,61.00000000],[1773297202000,45.42857143],[1773297474000,44.25000000],[1773297778000,57.40000000],[1773298050000,64.87500000],[1773298404000,108.33333333],[1773298674000,75.42857143],[1773298979000,93.14285714],[1773299251000,80.37500000],[1773299602000,46.28571429],[1773299895000,109.66666667],[1773300178000,147.83333333],[1773300450000,85.12500000],[1773300803000,71.60000000],[1773301074000,156.85714286],[1773301410000,157.00000000],[1773301682000,196.66666667],], 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: [[1773270003000,0.00000000],[1773270179000,0.00000000],[1773270451000,0.00000000],[1773270803000,0.00000000],[1773271075000,0.00000000],[1773271379000,0.00000000],[1773271651000,0.00000000],[1773272003000,0.00000000],[1773272275000,0.00000000],[1773272579000,0.00000000],[1773272851000,0.00000000],[1773273204000,0.00000000],[1773273475000,0.00000000],[1773273779000,0.00000000],[1773274051000,0.00000000],[1773274403000,0.00000000],[1773274675000,0.00000000],[1773274979000,0.00000000],[1773275251000,0.00000000],[1773275603000,0.00000000],[1773275875000,0.00000000],[1773276211000,0.00000000],[1773276451000,0.00000000],[1773276803000,0.00000000],[1773277075000,0.00000000],[1773277379000,0.00000000],[1773277651000,0.00000000],[1773278004000,0.00000000],[1773278275000,0.00000000],[1773278585000,0.00000000],[1773278851000,0.00000000],[1773279203000,0.00000000],[1773279475000,0.00000000],[1773279779000,0.00000000],[1773280051000,0.00000000],[1773280467000,0.00000000],[1773280675000,0.00000000],[1773281059000,0.00000000],[1773281251000,0.00000000],[1773281571000,0.00000000],[1773281891000,0.00000000],[1773282211000,0.00000000],[1773282483000,0.00000000],[1773282915000,0.00000000],[1773283107000,0.00000000],[1773283379000,0.00000000],[1773283651000,0.00000000],[1773284163000,0.00000000],[1773284275000,0.00000000],[1773284883000,0.00000000],[1773285171000,0.00000000],[1773285603000,0.00000000],[1773285779000,0.00000000],[1773286099000,0.00000000],[1773286563000,0.00000000],[1773286675000,0.00000000],[1773286994000,0.00000000],[1773287251000,0.00000000],[1773287571000,0.00000000],[1773287987000,0.00000000],[1773288178000,0.00000000],[1773288499000,0.00000000],[1773288946000,0.00000000],[1773289074000,0.00000000],[1773289395000,0.00000000],[1773289667000,0.00000000],[1773290050000,0.00000000],[1773290306000,0.00000000],[1773290690000,0.00000000],[1773290882000,0.00000000],[1773291202000,0.00000000],[1773291587000,0.00000000],[1773291778000,0.00000000],[1773292098000,1.66666667],[1773292610000,3.00000000],[1773292674000,5.25000000],[1773292994000,8.25000000],[1773293266000,11.16666667],[1773293602000,13.66666667],[1773293986000,18.50000000],[1773294194000,22.00000000],[1773294450000,25.50000000],[1773294771000,29.50000000],[1773295090000,32.40000000],[1773295411000,34.00000000],[1773295667000,42.00000000],[1773296002000,42.50000000],[1773296275000,48.33333333],[1773296578000,57.83333333],[1773296850000,66.87500000],[1773297202000,84.28571429],[1773297474000,93.37500000],[1773297778000,103.40000000],[1773298050000,112.87500000],[1773298404000,117.16666667],[1773298674000,127.42857143],[1773298979000,123.85714286],[1773299251000,143.87500000],[1773299602000,149.57142857],[1773299895000,145.33333333],[1773300178000,171.66666667],[1773300450000,180.50000000],[1773300803000,187.80000000],[1773301074000,190.85714286],[1773301410000,205.50000000],[1773301682000,213.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: [[1773270003000,0.00000000],[1773270179000,0.00000000],[1773270451000,0.00000000],[1773270803000,0.00000000],[1773271075000,0.00000000],[1773271379000,0.00000000],[1773271651000,0.00000000],[1773272003000,0.00000000],[1773272275000,0.00000000],[1773272579000,0.00000000],[1773272851000,0.00000000],[1773273204000,0.00000000],[1773273475000,0.00000000],[1773273779000,0.00000000],[1773274051000,0.00000000],[1773274403000,0.00000000],[1773274675000,0.00000000],[1773274979000,0.00000000],[1773275251000,0.00000000],[1773275603000,0.00000000],[1773275875000,0.00000000],[1773276211000,0.00000000],[1773276451000,0.00000000],[1773276803000,0.00000000],[1773277075000,0.00000000],[1773277379000,0.00000000],[1773277651000,0.00000000],[1773278004000,0.00000000],[1773278275000,0.00000000],[1773278585000,0.00000000],[1773278851000,0.00000000],[1773279203000,0.00000000],[1773279475000,0.00000000],[1773279779000,0.00000000],[1773280051000,0.00000000],[1773280467000,0.00000000],[1773280675000,0.00000000],[1773281059000,0.00000000],[1773281251000,0.00000000],[1773281571000,0.00000000],[1773281891000,0.00000000],[1773282211000,0.00000000],[1773282483000,0.00000000],[1773282915000,0.00000000],[1773283107000,0.00000000],[1773283379000,0.00000000],[1773283651000,0.00000000],[1773284163000,0.00000000],[1773284275000,0.00000000],[1773284883000,0.00000000],[1773285171000,0.00000000],[1773285603000,0.00000000],[1773285779000,0.00000000],[1773286099000,0.00000000],[1773286563000,0.00000000],[1773286675000,0.00000000],[1773286994000,0.00000000],[1773287251000,0.00000000],[1773287571000,0.00000000],[1773287987000,0.00000000],[1773288178000,0.00000000],[1773288499000,0.00000000],[1773288946000,0.00000000],[1773289074000,0.00000000],[1773289395000,0.00000000],[1773289667000,0.00000000],[1773290050000,0.00000000],[1773290306000,0.00000000],[1773290690000,0.00000000],[1773290882000,0.00000000],[1773291202000,0.00000000],[1773291587000,0.00000000],[1773291778000,0.00000000],[1773292098000,0.00000000],[1773292610000,0.00000000],[1773292674000,0.00000000],[1773292994000,0.00000000],[1773293266000,0.00000000],[1773293602000,0.00000000],[1773293986000,0.00000000],[1773294194000,0.00000000],[1773294450000,0.00000000],[1773294771000,0.00000000],[1773295090000,0.00000000],[1773295411000,0.00000000],[1773295667000,0.00000000],[1773296002000,0.00000000],[1773296275000,0.00000000],[1773296578000,0.00000000],[1773296850000,0.00000000],[1773297202000,0.00000000],[1773297474000,0.00000000],[1773297778000,1.00000000],[1773298050000,1.00000000],[1773298404000,1.00000000],[1773298674000,1.00000000],[1773298979000,0.85714286],[1773299251000,1.00000000],[1773299602000,1.00000000],[1773299895000,0.83333333],[1773300178000,1.00000000],[1773300450000,1.00000000],[1773300803000,1.00000000],[1773301074000,1.00000000],[1773301410000,1.50000000],[1773301682000,2.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: [[1773270003000,0.00000000],[1773270179000,0.00000000],[1773270451000,0.00000000],[1773270803000,0.00000000],[1773271075000,0.00000000],[1773271379000,0.00000000],[1773271651000,0.00000000],[1773272003000,0.00000000],[1773272275000,0.00000000],[1773272579000,0.00000000],[1773272851000,0.00000000],[1773273204000,0.00000000],[1773273475000,0.00000000],[1773273779000,0.00000000],[1773274051000,0.00000000],[1773274403000,0.00000000],[1773274675000,0.00000000],[1773274979000,0.00000000],[1773275251000,0.00000000],[1773275603000,0.00000000],[1773275875000,0.00000000],[1773276211000,0.00000000],[1773276451000,0.00000000],[1773276803000,0.00000000],[1773277075000,0.00000000],[1773277379000,0.00000000],[1773277651000,0.00000000],[1773278004000,0.00000000],[1773278275000,0.00000000],[1773278585000,0.00000000],[1773278851000,0.00000000],[1773279203000,0.00000000],[1773279475000,0.00000000],[1773279779000,0.00000000],[1773280051000,0.00000000],[1773280467000,0.00000000],[1773280675000,0.00000000],[1773281059000,0.00000000],[1773281251000,0.00000000],[1773281571000,0.00000000],[1773281891000,0.00000000],[1773282211000,0.00000000],[1773282483000,0.00000000],[1773282915000,0.00000000],[1773283107000,0.00000000],[1773283379000,0.00000000],[1773283651000,0.00000000],[1773284163000,0.00000000],[1773284275000,0.00000000],[1773284883000,0.00000000],[1773285171000,0.00000000],[1773285603000,0.00000000],[1773285779000,0.00000000],[1773286099000,0.00000000],[1773286563000,0.00000000],[1773286675000,0.00000000],[1773286994000,0.00000000],[1773287251000,0.00000000],[1773287571000,0.00000000],[1773287987000,0.00000000],[1773288178000,0.00000000],[1773288499000,0.00000000],[1773288946000,0.00000000],[1773289074000,0.00000000],[1773289395000,0.00000000],[1773289667000,0.00000000],[1773290050000,0.00000000],[1773290306000,0.00000000],[1773290690000,0.00000000],[1773290882000,0.00000000],[1773291202000,0.00000000],[1773291587000,0.00000000],[1773291778000,0.00000000],[1773292098000,0.00000000],[1773292610000,0.00000000],[1773292674000,0.00000000],[1773292994000,0.00000000],[1773293266000,0.00000000],[1773293602000,0.00000000],[1773293986000,0.00000000],[1773294194000,0.00000000],[1773294450000,0.00000000],[1773294771000,0.00000000],[1773295090000,0.00000000],[1773295411000,0.00000000],[1773295667000,0.00000000],[1773296002000,0.00000000],[1773296275000,0.00000000],[1773296578000,0.00000000],[1773296850000,0.00000000],[1773297202000,0.00000000],[1773297474000,0.00000000],[1773297778000,0.00000000],[1773298050000,0.00000000],[1773298404000,0.00000000],[1773298674000,0.00000000],[1773298979000,0.00000000],[1773299251000,0.00000000],[1773299602000,0.00000000],[1773299895000,0.00000000],[1773300178000,0.00000000],[1773300450000,0.00000000],[1773300803000,0.00000000],[1773301074000,0.00000000],[1773301410000,0.00000000],[1773301682000,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; }