var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1713909644000,7.90000000],[1713909772000,7.82000000],[1713910093000,7.80000000],[1713910413000,7.80000000],[1713910670000,7.80000000],[1713910990000,7.80000000],[1713911308000,7.82500000],[1713911580000,7.90000000],[1713911900000,7.90000000],[1713912171000,7.90000000],[1713912492000,7.98000000],[1713912817000,8.00000000],[1713913083000,7.97500000],[1713913356000,8.00000000],[1713913677000,7.96000000],[1713914012000,7.90000000],[1713914283000,7.90000000],[1713914604000,7.90000000],[1713914876000,7.98000000],[1713915215000,8.00000000],[1713915499000,8.00000000],[1713915753000,7.96000000],[1713916107000,7.90000000],[1713916364000,7.82000000],[1713916683000,7.86000000],[1713917006000,7.90000000],[1713917275000,7.90000000],[1713917595000,7.90000000],[1713917851000,7.82000000],[1713918172000,7.80000000],[1713918492000,7.80000000],[1713918768000,7.72000000],[1713919099000,7.70000000],[1713919387000,7.60000000],[1713919708000,7.52500000],[1713919981000,7.47500000],[1713920251000,7.38000000],[1713920588000,7.30000000],[1713920859000,7.22000000],[1713921196000,7.20000000],[1713921454000,7.20000000],[1713921793000,7.17500000],[1713922090000,7.20000000],[1713922411000,7.15000000],[1713922668000,7.08000000],[1713923003000,7.00000000],[1713923275000,7.00000000],[1713923596000,7.10000000],[1713923868000,7.10000000],[1713924204000,7.05000000],[1713924459000,7.00000000],[1713924780000,7.00000000],[1713925052000,7.00000000],[1713925388000,6.92500000],[1713925654000,6.90000000],[1713925996000,6.82500000],[1713926252000,6.80000000],[1713926571000,6.70000000],[1713926907000,6.70000000],[1713927163000,6.68000000],[1713927500000,6.60000000],[1713927755000,6.57500000],[1713928056000,6.50000000],[1713928399000,6.40000000],[1713928668000,6.40000000],[1713928959000,6.40000000],[1713929310000,6.37500000],[1713929618000,6.32500000],[1713929902000,6.32500000],[1713930189000,6.25000000],[1713930457000,6.17500000],[1713930750000,6.12000000],[1713931116000,6.07500000],[1713931417000,6.00000000],[1713931717000,6.00000000],[1713932014000,5.93333333],[1713932257000,5.90000000],[1713932616000,5.90000000],[1713932910000,5.82500000],[1713933157000,5.90000000],[1713933457000,5.84000000],[1713933817000,5.90000000],[1713934110000,5.90000000],[1713934382000,5.82500000],[1713934686000,5.90000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1713909644000,6],[1713909772000,6],[1713910093000,6.1],[1713910413000,5.9],[1713910670000,5.9],[1713910990000,5.9],[1713911308000,5.9],[1713911580000,6],[1713911900000,5.9],[1713912171000,5.8],[1713912492000,5.9],[1713912817000,5.9],[1713913083000,5.9],[1713913356000,5.8],[1713913677000,5.9],[1713914012000,5.8],[1713914283000,5.7],[1713914604000,5.7],[1713914876000,5.8],[1713915215000,5.8],[1713915499000,5.8],[1713915753000,5.9],[1713916107000,6],[1713916364000,5.9],[1713916683000,5.8],[1713917006000,5.8],[1713917275000,5.8],[1713917595000,5.8],[1713917851000,5.8],[1713918172000,5.7],[1713918492000,5.7],[1713918768000,5.7],[1713919099000,5.6],[1713919387000,5.5],[1713919708000,5.4],[1713919981000,5.4],[1713920251000,5.3],[1713920588000,5.3],[1713920859000,5.3],[1713921196000,5.3],[1713921454000,5.3],[1713921793000,5.1],[1713922090000,5.2],[1713922411000,5.1],[1713922668000,5.2],[1713923003000,5],[1713923275000,4.9],[1713923596000,4.9],[1713923868000,4.8],[1713924204000,4.8],[1713924459000,4.8],[1713924780000,5],[1713925052000,5],[1713925388000,4.9],[1713925654000,5],[1713925996000,5],[1713926252000,5.1],[1713926571000,5.1],[1713926907000,4.9],[1713927163000,4.8],[1713927500000,4.7],[1713927755000,4.8],[1713928056000,4.6],[1713928399000,4.5],[1713928668000,4.6],[1713928959000,4.5],[1713929310000,4.6],[1713929618000,4.4],[1713929902000,4.5],[1713930189000,4.4],[1713930457000,4.3],[1713930750000,4.3],[1713931116000,4.4],[1713931417000,4.2],[1713931717000,4.1],[1713932014000,4.1],[1713932257000,4],[1713932616000,4],[1713932910000,4],[1713933157000,4],[1713933457000,4],[1713933817000,4],[1713934110000,4],[1713934382000,4],[1713934686000,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: [[1713909644000,88.00000000],[1713909772000,88.20000000],[1713910093000,89.00000000],[1713910413000,88.00000000],[1713910670000,88.00000000],[1713910990000,88.00000000],[1713911308000,88.00000000],[1713911580000,88.00000000],[1713911900000,87.50000000],[1713912171000,87.00000000],[1713912492000,87.00000000],[1713912817000,87.00000000],[1713913083000,87.00000000],[1713913356000,86.40000000],[1713913677000,86.80000000],[1713914012000,87.00000000],[1713914283000,86.00000000],[1713914604000,86.00000000],[1713914876000,86.00000000],[1713915215000,86.00000000],[1713915499000,86.00000000],[1713915753000,87.00000000],[1713916107000,88.00000000],[1713916364000,88.00000000],[1713916683000,87.00000000],[1713917006000,87.00000000],[1713917275000,87.00000000],[1713917595000,87.00000000],[1713917851000,87.00000000],[1713918172000,87.00000000],[1713918492000,87.00000000],[1713918768000,87.00000000],[1713919099000,87.00000000],[1713919387000,86.80000000],[1713919708000,86.75000000],[1713919981000,87.00000000],[1713920251000,87.00000000],[1713920588000,87.50000000],[1713920859000,87.80000000],[1713921196000,88.00000000],[1713921454000,87.80000000],[1713921793000,87.00000000],[1713922090000,87.00000000],[1713922411000,87.00000000],[1713922668000,88.00000000],[1713923003000,87.25000000],[1713923275000,86.60000000],[1713923596000,86.00000000],[1713923868000,85.40000000],[1713924204000,86.00000000],[1713924459000,86.20000000],[1713924780000,87.00000000],[1713925052000,87.00000000],[1713925388000,87.00000000],[1713925654000,88.00000000],[1713925996000,88.50000000],[1713926252000,89.00000000],[1713926571000,89.40000000],[1713926907000,88.50000000],[1713927163000,88.00000000],[1713927500000,88.00000000],[1713927755000,88.50000000],[1713928056000,88.00000000],[1713928399000,88.00000000],[1713928668000,88.25000000],[1713928959000,88.00000000],[1713929310000,88.50000000],[1713929618000,87.50000000],[1713929902000,88.00000000],[1713930189000,88.00000000],[1713930457000,88.00000000],[1713930750000,88.20000000],[1713931116000,89.00000000],[1713931417000,88.25000000],[1713931717000,88.00000000],[1713932014000,88.00000000],[1713932257000,88.00000000],[1713932616000,88.00000000],[1713932910000,88.00000000],[1713933157000,88.00000000],[1713933457000,88.00000000],[1713933817000,88.00000000],[1713934110000,88.00000000],[1713934382000,88.00000000],[1713934686000,88.00000000],], color: '#ff9000' } ]; var options = { xaxes: [{ axisLabel: 'humidity', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1%' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-humidity-legend' } }; graphs['#chart-humidity'] = $.plot('#chart-humidity', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Atmosférický tlak (hPa)', data: [[1713909644000,1010.2],[1713909772000,1010.3],[1713910093000,1010.3],[1713910413000,1010.1],[1713910670000,1010.2],[1713910990000,1010.1],[1713911308000,1010],[1713911580000,1009.8],[1713911900000,1009.7],[1713912171000,1009.8],[1713912492000,1009.8],[1713912817000,1009.7],[1713913083000,1009.6],[1713913356000,1009.5],[1713913677000,1009.3],[1713914012000,1009.3],[1713914283000,1009.2],[1713914604000,1009.2],[1713914876000,1009.2],[1713915215000,1009],[1713915499000,1009],[1713915753000,1009],[1713916107000,1008.9],[1713916364000,1008.8],[1713916683000,1008.7],[1713917006000,1008.7],[1713917275000,1008.7],[1713917595000,1008.7],[1713917851000,1008.6],[1713918172000,1008.6],[1713918492000,1008.6],[1713918768000,1008.6],[1713919099000,1008.5],[1713919387000,1008.3],[1713919708000,1008.4],[1713919981000,1008.3],[1713920251000,1008.3],[1713920588000,1008.3],[1713920859000,1008.1],[1713921196000,1008.2],[1713921454000,1008.1],[1713921793000,1007.9],[1713922090000,1008],[1713922411000,1008],[1713922668000,1007.9],[1713923003000,1007.8],[1713923275000,1007.9],[1713923596000,1008],[1713923868000,1007.9],[1713924204000,1007.9],[1713924459000,1008],[1713924780000,1008],[1713925052000,1008],[1713925388000,1007.9],[1713925654000,1007.9],[1713925996000,1008],[1713926252000,1007.9],[1713926571000,1008],[1713926907000,1008],[1713927163000,1008],[1713927500000,1008],[1713927755000,1008],[1713928056000,1008],[1713928399000,1007.8],[1713928668000,1007.9],[1713928959000,1007.9],[1713929310000,1008],[1713929618000,1007.9],[1713929902000,1007.9],[1713930189000,1007.8],[1713930457000,1008],[1713930750000,1007.9],[1713931116000,1008],[1713931417000,1008],[1713931717000,1008.1],[1713932014000,1008.1],[1713932257000,1008],[1713932616000,1008],[1713932910000,1008],[1713933157000,1008.1],[1713933457000,1008.2],[1713933817000,1008],[1713934110000,1008.1],[1713934382000,1008],[1713934686000,1008.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: [[1713909644000,0.18],[1713909772000,0.288],[1713910093000,0.36],[1713910413000,1.62],[1713910670000,1.368],[1713910990000,0.576],[1713911308000,1.17],[1713911580000,0.936],[1713911900000,0.18],[1713912171000,1.8],[1713912492000,2.088],[1713912817000,2.61],[1713913083000,3.24],[1713913356000,2.664],[1713913677000,0.864],[1713914012000,0.9],[1713914283000,1.008],[1713914604000,3.51],[1713914876000,1.008],[1713915215000,0.36],[1713915499000,0.72],[1713915753000,0.144],[1713916107000,0],[1713916364000,1.368],[1713916683000,0.36],[1713917006000,0],[1713917275000,0.864],[1713917595000,0.18],[1713917851000,0.72],[1713918172000,1.08],[1713918492000,0.27],[1713918768000,0.864],[1713919099000,0.99],[1713919387000,2.088],[1713919708000,2.16],[1713919981000,2.16],[1713920251000,3.456],[1713920588000,2.79],[1713920859000,3.168],[1713921196000,1.08],[1713921454000,2.376],[1713921793000,3.15],[1713922090000,5.4],[1713922411000,4.59],[1713922668000,3.312],[1713923003000,3.33],[1713923275000,3.528],[1713923596000,2.97],[1713923868000,3.168],[1713924204000,3.33],[1713924459000,2.232],[1713924780000,2.34],[1713925052000,2.016],[1713925388000,0],[1713925654000,1.08],[1713925996000,0.09],[1713926252000,0.792],[1713926571000,1.368],[1713926907000,1.17],[1713927163000,1.8],[1713927500000,1.35],[1713927755000,1.98],[1713928056000,2.016],[1713928399000,3.42],[1713928668000,2.16],[1713928959000,1.44],[1713929310000,1.53],[1713929618000,2.52],[1713929902000,5.76],[1713930189000,3.33],[1713930457000,2.7],[1713930750000,3.384],[1713931116000,2.88],[1713931417000,5.22],[1713931717000,2.61],[1713932014000,4.799999988],[1713932257000,2.448],[1713932616000,2.25],[1713932910000,2.7],[1713933157000,2.7],[1713933457000,2.088],[1713933817000,3.24],[1713934110000,3.33],[1713934382000,3.51],[1713934686000,1.44],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1713909644000,1.26],[1713909772000,0.504],[1713910093000,1.512],[1713910413000,2.52],[1713910670000,3.024],[1713910990000,1.512],[1713911308000,1.89],[1713911580000,1.008],[1713911900000,0.63],[1713912171000,3.528],[1713912492000,3.024],[1713912817000,3.78],[1713913083000,5.04],[1713913356000,4.536],[1713913677000,2.016],[1713914012000,1.89],[1713914283000,3.024],[1713914604000,5.67],[1713914876000,2.016],[1713915215000,1.89],[1713915499000,1.26],[1713915753000,1.008],[1713916107000,0],[1713916364000,3.024],[1713916683000,2.016],[1713917006000,0],[1713917275000,2.016],[1713917595000,1.26],[1713917851000,2.52],[1713918172000,2.016],[1713918492000,1.26],[1713918768000,1.512],[1713919099000,2.52],[1713919387000,4.032],[1713919708000,4.41],[1713919981000,3.15],[1713920251000,6.048],[1713920588000,3.78],[1713920859000,5.544],[1713921196000,3.15],[1713921454000,5.04],[1713921793000,4.41],[1713922090000,8.064],[1713922411000,8.91],[1713922668000,6.624],[1713923003000,5.67],[1713923275000,5.04],[1713923596000,5.67],[1713923868000,5.544],[1713924204000,5.04],[1713924459000,4.032],[1713924780000,5.04],[1713925052000,3.024],[1713925388000,0],[1713925654000,3.024],[1713925996000,0.63],[1713926252000,2.52],[1713926571000,2.52],[1713926907000,2.52],[1713927163000,4.032],[1713927500000,2.52],[1713927755000,4.41],[1713928056000,4.536],[1713928399000,5.67],[1713928668000,3.78],[1713928959000,2.52],[1713929310000,3.78],[1713929618000,4.41],[1713929902000,9],[1713930189000,4.41],[1713930457000,3.15],[1713930750000,6.048],[1713931116000,6.93],[1713931417000,7.56],[1713931717000,3.78],[1713932014000,7.56],[1713932257000,4.536],[1713932616000,4.41],[1713932910000,3.78],[1713933157000,5.04],[1713933457000,4.536],[1713933817000,5.67],[1713934110000,5.04],[1713934382000,6.3],[1713934686000,2.52],], 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: [[1713909644000,72.50000000],[1713909772000,117.20000000],[1713910093000,50.40000000],[1713910413000,149.50000000],[1713910670000,85.60000000],[1713910990000,54.20000000],[1713911308000,53.00000000],[1713911580000,96.60000000],[1713911900000,83.25000000],[1713912171000,280.20000000],[1713912492000,184.40000000],[1713912817000,117.50000000],[1713913083000,30.25000000],[1713913356000,91.00000000],[1713913677000,116.00000000],[1713914012000,63.25000000],[1713914283000,221.40000000],[1713914604000,264.50000000],[1713914876000,111.60000000],[1713915215000,129.50000000],[1713915499000,152.25000000],[1713915753000,115.60000000],[1713916107000,80.75000000],[1713916364000,77.20000000],[1713916683000,124.20000000],[1713917006000,145.75000000],[1713917275000,73.60000000],[1713917595000,63.00000000],[1713917851000,137.20000000],[1713918172000,112.80000000],[1713918492000,79.50000000],[1713918768000,111.40000000],[1713919099000,145.75000000],[1713919387000,49.60000000],[1713919708000,113.00000000],[1713919981000,127.50000000],[1713920251000,171.40000000],[1713920588000,55.25000000],[1713920859000,180.20000000],[1713921196000,76.25000000],[1713921454000,111.20000000],[1713921793000,258.75000000],[1713922090000,161.60000000],[1713922411000,219.75000000],[1713922668000,207.40000000],[1713923003000,97.50000000],[1713923275000,280.20000000],[1713923596000,154.75000000],[1713923868000,196.00000000],[1713924204000,103.00000000],[1713924459000,167.60000000],[1713924780000,135.25000000],[1713925052000,222.40000000],[1713925388000,63.75000000],[1713925654000,35.60000000],[1713925996000,88.50000000],[1713926252000,113.00000000],[1713926571000,172.80000000],[1713926907000,62.25000000],[1713927163000,136.00000000],[1713927500000,68.25000000],[1713927755000,138.25000000],[1713928056000,117.20000000],[1713928399000,185.50000000],[1713928668000,50.75000000],[1713928959000,165.20000000],[1713929310000,200.50000000],[1713929618000,148.25000000],[1713929902000,176.00000000],[1713930189000,251.50000000],[1713930457000,133.25000000],[1713930750000,168.60000000],[1713931116000,197.25000000],[1713931417000,222.25000000],[1713931717000,226.00000000],[1713932014000,218.33333333],[1713932257000,161.40000000],[1713932616000,70.25000000],[1713932910000,139.75000000],[1713933157000,112.25000000],[1713933457000,77.40000000],[1713933817000,105.25000000],[1713934110000,160.00000000],[1713934382000,198.25000000],[1713934686000,280.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: [[1713909644000,0.00000000],[1713909772000,0.00000000],[1713910093000,0.00000000],[1713910413000,0.00000000],[1713910670000,0.00000000],[1713910990000,0.00000000],[1713911308000,0.00000000],[1713911580000,0.00000000],[1713911900000,0.00000000],[1713912171000,0.00000000],[1713912492000,0.00000000],[1713912817000,0.00000000],[1713913083000,0.00000000],[1713913356000,0.00000000],[1713913677000,0.00000000],[1713914012000,0.00000000],[1713914283000,0.00000000],[1713914604000,0.00000000],[1713914876000,0.00000000],[1713915215000,0.00000000],[1713915499000,0.00000000],[1713915753000,0.00000000],[1713916107000,0.00000000],[1713916364000,0.00000000],[1713916683000,0.00000000],[1713917006000,0.00000000],[1713917275000,0.00000000],[1713917595000,0.00000000],[1713917851000,0.00000000],[1713918172000,0.00000000],[1713918492000,0.00000000],[1713918768000,0.00000000],[1713919099000,0.00000000],[1713919387000,0.00000000],[1713919708000,0.00000000],[1713919981000,0.00000000],[1713920251000,0.00000000],[1713920588000,0.00000000],[1713920859000,0.00000000],[1713921196000,0.00000000],[1713921454000,0.00000000],[1713921793000,0.00000000],[1713922090000,0.00000000],[1713922411000,0.00000000],[1713922668000,0.00000000],[1713923003000,0.00000000],[1713923275000,0.00000000],[1713923596000,0.00000000],[1713923868000,0.00000000],[1713924204000,0.00000000],[1713924459000,0.00000000],[1713924780000,0.00000000],[1713925052000,0.00000000],[1713925388000,0.00000000],[1713925654000,0.00000000],[1713925996000,0.00000000],[1713926252000,0.00000000],[1713926571000,0.00000000],[1713926907000,0.00000000],[1713927163000,0.00000000],[1713927500000,0.00000000],[1713927755000,0.00000000],[1713928056000,0.00000000],[1713928399000,0.00000000],[1713928668000,0.00000000],[1713928959000,0.00000000],[1713929310000,0.00000000],[1713929618000,0.00000000],[1713929902000,0.00000000],[1713930189000,0.00000000],[1713930457000,0.00000000],[1713930750000,0.00000000],[1713931116000,0.00000000],[1713931417000,0.00000000],[1713931717000,0.75000000],[1713932014000,1.00000000],[1713932257000,2.60000000],[1713932616000,4.00000000],[1713932910000,5.00000000],[1713933157000,4.50000000],[1713933457000,5.20000000],[1713933817000,6.75000000],[1713934110000,7.25000000],[1713934382000,7.75000000],[1713934686000,9.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: [[1713909644000,0.00000000],[1713909772000,0.00000000],[1713910093000,0.00000000],[1713910413000,0.00000000],[1713910670000,0.00000000],[1713910990000,0.00000000],[1713911308000,0.00000000],[1713911580000,0.00000000],[1713911900000,0.00000000],[1713912171000,0.00000000],[1713912492000,0.00000000],[1713912817000,0.00000000],[1713913083000,0.00000000],[1713913356000,0.00000000],[1713913677000,0.00000000],[1713914012000,0.00000000],[1713914283000,0.00000000],[1713914604000,0.00000000],[1713914876000,0.00000000],[1713915215000,0.00000000],[1713915499000,0.00000000],[1713915753000,0.00000000],[1713916107000,0.00000000],[1713916364000,0.00000000],[1713916683000,0.00000000],[1713917006000,0.00000000],[1713917275000,0.00000000],[1713917595000,0.00000000],[1713917851000,0.00000000],[1713918172000,0.00000000],[1713918492000,0.00000000],[1713918768000,0.00000000],[1713919099000,0.00000000],[1713919387000,0.00000000],[1713919708000,0.00000000],[1713919981000,0.00000000],[1713920251000,0.00000000],[1713920588000,0.00000000],[1713920859000,0.00000000],[1713921196000,0.00000000],[1713921454000,0.00000000],[1713921793000,0.00000000],[1713922090000,0.00000000],[1713922411000,0.00000000],[1713922668000,0.00000000],[1713923003000,0.00000000],[1713923275000,0.00000000],[1713923596000,0.00000000],[1713923868000,0.00000000],[1713924204000,0.00000000],[1713924459000,0.00000000],[1713924780000,0.00000000],[1713925052000,0.00000000],[1713925388000,0.00000000],[1713925654000,0.00000000],[1713925996000,0.00000000],[1713926252000,0.00000000],[1713926571000,0.00000000],[1713926907000,0.00000000],[1713927163000,0.00000000],[1713927500000,0.00000000],[1713927755000,0.00000000],[1713928056000,0.00000000],[1713928399000,0.00000000],[1713928668000,0.00000000],[1713928959000,0.00000000],[1713929310000,0.00000000],[1713929618000,0.00000000],[1713929902000,0.00000000],[1713930189000,0.00000000],[1713930457000,0.00000000],[1713930750000,0.00000000],[1713931116000,0.00000000],[1713931417000,0.00000000],[1713931717000,0.00000000],[1713932014000,0.00000000],[1713932257000,0.00000000],[1713932616000,0.00000000],[1713932910000,0.00000000],[1713933157000,0.00000000],[1713933457000,0.00000000],[1713933817000,0.00000000],[1713934110000,0.00000000],[1713934382000,0.00000000],[1713934686000,0.00000000],], color: '#802674' } ]; var options = { xaxes: [{ axisLabel: 'uv', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.0' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-uv-legend' } }; graphs['#chart-uv'] = $.plot('#chart-uv', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Zrážky', data: [[1713909644000,0.00000000],[1713909772000,0.00000000],[1713910093000,0.00000000],[1713910413000,0.00000000],[1713910670000,0.00000000],[1713910990000,0.00000000],[1713911308000,0.00000000],[1713911580000,0.00000000],[1713911900000,0.00000000],[1713912171000,0.00000000],[1713912492000,0.00000000],[1713912817000,0.00000000],[1713913083000,0.00000000],[1713913356000,0.00000000],[1713913677000,0.00000000],[1713914012000,0.00000000],[1713914283000,0.00000000],[1713914604000,0.00000000],[1713914876000,0.00000000],[1713915215000,0.00000000],[1713915499000,0.00000000],[1713915753000,0.00000000],[1713916107000,0.00000000],[1713916364000,0.00000000],[1713916683000,0.00000000],[1713917006000,0.00000000],[1713917275000,0.00000000],[1713917595000,0.00000000],[1713917851000,0.00000000],[1713918172000,0.00000000],[1713918492000,0.00000000],[1713918768000,0.00000000],[1713919099000,0.00000000],[1713919387000,0.00000000],[1713919708000,0.00000000],[1713919981000,0.00000000],[1713920251000,0.00000000],[1713920588000,0.00000000],[1713920859000,0.00000000],[1713921196000,0.07625000],[1713921454000,0.30500000],[1713921793000,0.30500000],[1713922090000,0.30500000],[1713922411000,0.30500000],[1713922668000,0.30500000],[1713923003000,0.30500000],[1713923275000,0.30500000],[1713923596000,0.30500000],[1713923868000,0.30500000],[1713924204000,0.30500000],[1713924459000,0.30500000],[1713924780000,0.30500000],[1713925052000,0.30500000],[1713925388000,0.30500000],[1713925654000,0.30500000],[1713925996000,0.40650000],[1713926252000,0.50800000],[1713926571000,0.50800000],[1713926907000,0.50800000],[1713927163000,0.50800000],[1713927500000,0.50800000],[1713927755000,0.50800000],[1713928056000,0.50800000],[1713928399000,0.50800000],[1713928668000,0.50800000],[1713928959000,0.50800000],[1713929310000,0.50800000],[1713929618000,0.50800000],[1713929902000,0.78700000],[1713930189000,0.78700000],[1713930457000,0.78700000],[1713930750000,0.78700000],[1713931116000,0.78700000],[1713931417000,0.78700000],[1713931717000,0.78700000],[1713932014000,0.78700000],[1713932257000,0.78700000],[1713932616000,0.78700000],[1713932910000,0.78700000],[1713933157000,0.88900000],[1713933457000,0.99100000],[1713933817000,0.99100000],[1713934110000,0.99100000],[1713934382000,0.99100000],[1713934686000,0.99100000],], 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; }