var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1772406029000,7.45000000],[1772406205000,8.20000000],[1772406477000,8.68750000],[1772406750000,8.23750000],[1772407052000,6.91111111],[1772407373000,6.50000000],[1772407677000,6.60000000],[1772407982000,6.80000000],[1772408252000,6.88888889],[1772408605000,6.97500000],[1772408877000,7.05000000],[1772409181000,7.02500000],[1772409453000,6.91250000],[1772409773000,6.90000000],[1772410077000,6.77777778],[1772410381000,6.31428571],[1772410652000,6.27500000],[1772410973000,6.35714286],[1772411277000,6.37500000],[1772411581000,6.52500000],[1772411901000,6.55000000],[1772412173000,6.38571429],[1772412509000,6.30000000],[1772412782000,6.22000000],[1772413052000,6.20000000],[1772413405000,6.23333333],[1772413678000,6.44285714],[1772414029000,6.25714286],[1772414254000,6.70000000],[1772414573000,6.57500000],[1772414893000,6.40000000],[1772415182000,6.36000000],[1772415452000,6.17142857],[1772415773000,6.52857143],[1772416077000,6.65714286],[1772416429000,6.16666667],[1772416669000,6.00000000],[1772416957000,6.20000000],[1772417268000,6.20000000],[1772417559000,6.30000000],[1772417865000,6.38333333],[1772418199000,6.40000000],[1772418474000,6.34000000],[1772418792000,5.95000000],[1772419149000,5.60000000],[1772419474000,5.37500000],[1772419650000,5.44000000],[1772419953000,6.25714286],[1772420276000,6.33333333],[1772420625000,5.25000000],[1772420855000,4.90000000],[1772421163000,4.76666667],[1772421498000,5.03333333],[1772421759000,5.34285714],[1772422060000,5.94285714],[1772422382000,5.70000000],[1772422667000,5.40000000],[1772423152000,5.00000000],[1772423267000,5.07500000],[1772423568000,5.23333333],[1772423864000,5.30000000],[1772424167000,5.30000000],[1772424466000,5.30000000],[1772424762000,5.37142857],[1772425078000,5.56666667],[1772425353000,5.85714286],[1772425716000,6.00000000],[1772425971000,6.00000000],[1772426331000,6.30000000],[1772426582000,6.31666667],[1772426863000,6.15000000],[1772427197000,5.95000000],[1772427568000,5.90000000],[1772427767000,6.05000000],[1772428077000,6.43750000],[1772428381000,6.40000000],[1772428652000,6.30000000],[1772429005000,6.32500000],[1772429277000,6.25000000],[1772429581000,6.25714286],[1772429853000,6.35000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1772406029000,4.1],[1772406205000,4.3],[1772406477000,4.4],[1772406750000,4.3],[1772407052000,3.9],[1772407373000,3.8],[1772407677000,3.9],[1772407982000,3.9],[1772408252000,4],[1772408605000,4],[1772408877000,4],[1772409181000,4],[1772409453000,4],[1772409773000,4],[1772410077000,4],[1772410381000,3.9],[1772410652000,3.9],[1772410973000,3.9],[1772411277000,3.8],[1772411581000,3.9],[1772411901000,3.9],[1772412173000,3.8],[1772412509000,3.8],[1772412782000,3.8],[1772413052000,3.8],[1772413405000,3.8],[1772413678000,3.9],[1772414029000,3.7],[1772414254000,3.9],[1772414573000,3.8],[1772414893000,3.9],[1772415182000,3.8],[1772415452000,3.7],[1772415773000,3.9],[1772416077000,3.9],[1772416429000,3.6],[1772416669000,3.5],[1772416957000,3.7],[1772417268000,3.7],[1772417559000,3.8],[1772417865000,3.8],[1772418199000,3.7],[1772418474000,3.6],[1772418792000,3.5],[1772419149000,3.3],[1772419474000,3.2],[1772419650000,3.3],[1772419953000,3.6],[1772420276000,3.7],[1772420625000,2.8],[1772420855000,2.6],[1772421163000,2.7],[1772421498000,3],[1772421759000,3.3],[1772422060000,3.6],[1772422382000,3.3],[1772422667000,3.1],[1772423152000,3],[1772423267000,3.1],[1772423568000,3.2],[1772423864000,3.3],[1772424167000,3.3],[1772424466000,3.3],[1772424762000,3.4],[1772425078000,3.5],[1772425353000,3.6],[1772425716000,3.6],[1772425971000,3.7],[1772426331000,3.8],[1772426582000,3.8],[1772426863000,3.8],[1772427197000,3.7],[1772427568000,3.7],[1772427767000,3.8],[1772428077000,4.1],[1772428381000,4],[1772428652000,4],[1772429005000,4.1],[1772429277000,4.1],[1772429581000,4.1],[1772429853000,4.2],], 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: [[1772406029000,79.75000000],[1772406205000,76.62500000],[1772406477000,74.75000000],[1772406750000,76.62500000],[1772407052000,81.22222222],[1772407373000,83.00000000],[1772407677000,82.88888889],[1772407982000,82.00000000],[1772408252000,82.00000000],[1772408605000,81.37500000],[1772408877000,81.00000000],[1772409181000,81.12500000],[1772409453000,82.00000000],[1772409773000,82.00000000],[1772410077000,82.55555556],[1772410381000,84.57142857],[1772410652000,85.00000000],[1772410973000,84.42857143],[1772411277000,84.00000000],[1772411581000,83.75000000],[1772411901000,83.25000000],[1772412173000,84.00000000],[1772412509000,84.00000000],[1772412782000,84.40000000],[1772413052000,85.00000000],[1772413405000,84.66666667],[1772413678000,84.00000000],[1772414029000,84.00000000],[1772414254000,82.71428571],[1772414573000,82.75000000],[1772414893000,84.00000000],[1772415182000,84.00000000],[1772415452000,84.42857143],[1772415773000,83.42857143],[1772416077000,83.00000000],[1772416429000,83.66666667],[1772416669000,84.00000000],[1772416957000,84.00000000],[1772417268000,84.00000000],[1772417559000,84.00000000],[1772417865000,83.66666667],[1772418199000,83.00000000],[1772418474000,83.00000000],[1772418792000,84.50000000],[1772419149000,85.50000000],[1772419474000,86.00000000],[1772419650000,86.00000000],[1772419953000,83.57142857],[1772420276000,83.16666667],[1772420625000,84.66666667],[1772420855000,85.50000000],[1772421163000,86.66666667],[1772421498000,87.00000000],[1772421759000,86.71428571],[1772422060000,84.85714286],[1772422382000,84.66666667],[1772422667000,85.42857143],[1772423152000,87.00000000],[1772423267000,87.00000000],[1772423568000,87.00000000],[1772423864000,87.00000000],[1772424167000,87.00000000],[1772424466000,87.00000000],[1772424762000,87.00000000],[1772425078000,86.50000000],[1772425353000,85.57142857],[1772425716000,85.00000000],[1772425971000,85.20000000],[1772426331000,84.25000000],[1772426582000,84.33333333],[1772426863000,85.00000000],[1772427197000,85.75000000],[1772427568000,86.00000000],[1772427767000,85.83333333],[1772428077000,85.00000000],[1772428381000,85.00000000],[1772428652000,85.37500000],[1772429005000,86.00000000],[1772429277000,86.00000000],[1772429581000,86.00000000],[1772429853000,86.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: [[1772406029000,1026.7],[1772406205000,1026.6],[1772406477000,1026.5],[1772406750000,1026.7],[1772407052000,1026.7],[1772407373000,1026.8],[1772407677000,1026.8],[1772407982000,1026.9],[1772408252000,1026.7],[1772408605000,1026.8],[1772408877000,1026.7],[1772409181000,1026.7],[1772409453000,1026.7],[1772409773000,1026.8],[1772410077000,1026.9],[1772410381000,1027],[1772410652000,1027.1],[1772410973000,1027],[1772411277000,1026.9],[1772411581000,1026.8],[1772411901000,1026.7],[1772412173000,1026.7],[1772412509000,1026.7],[1772412782000,1026.8],[1772413052000,1026.7],[1772413405000,1026.7],[1772413678000,1026.6],[1772414029000,1026.8],[1772414254000,1026.6],[1772414573000,1026.6],[1772414893000,1026.7],[1772415182000,1026.6],[1772415452000,1026.6],[1772415773000,1026.5],[1772416077000,1026.5],[1772416429000,1026.3],[1772416669000,1026.2],[1772416957000,1026.4],[1772417268000,1026.3],[1772417559000,1026.3],[1772417865000,1026.4],[1772418199000,1026.4],[1772418474000,1026.5],[1772418792000,1026.4],[1772419149000,1026.4],[1772419474000,1026.4],[1772419650000,1026.4],[1772419953000,1026.4],[1772420276000,1026.4],[1772420625000,1026.5],[1772420855000,1026.5],[1772421163000,1026.7],[1772421498000,1026.7],[1772421759000,1026.6],[1772422060000,1026.6],[1772422382000,1026.7],[1772422667000,1026.7],[1772423152000,1026.6],[1772423267000,1026.7],[1772423568000,1026.7],[1772423864000,1026.6],[1772424167000,1026.6],[1772424466000,1026.7],[1772424762000,1026.6],[1772425078000,1026.6],[1772425353000,1026.5],[1772425716000,1026.5],[1772425971000,1026.4],[1772426331000,1026.6],[1772426582000,1026.4],[1772426863000,1026.5],[1772427197000,1026.5],[1772427568000,1026.6],[1772427767000,1026.6],[1772428077000,1026.7],[1772428381000,1026.7],[1772428652000,1026.8],[1772429005000,1026.7],[1772429277000,1026.8],[1772429581000,1026.8],[1772429853000,1026.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: [[1772406029000,0],[1772406205000,0],[1772406477000,0],[1772406750000,0],[1772407052000,2.840000004],[1772407373000,3.759999984],[1772407677000,4.160000016],[1772407982000,3.548571444],[1772408252000,4.640000004],[1772408605000,2.7],[1772408877000,1.44],[1772409181000,5.04],[1772409453000,2.205],[1772409773000,0],[1772410077000,4.640000004],[1772410381000,4.422857148],[1772410652000,1.935],[1772410973000,5.708571444],[1772411277000,7.47],[1772411581000,5.085],[1772411901000,3.15],[1772412173000,1.337142852],[1772412509000,0],[1772412782000,0],[1772413052000,0],[1772413405000,0],[1772413678000,0],[1772414029000,0.308571444],[1772414254000,2.571428556],[1772414573000,0],[1772414893000,0],[1772415182000,1.44],[1772415452000,0],[1772415773000,0],[1772416077000,0],[1772416429000,0],[1772416669000,0],[1772416957000,0],[1772417268000,0],[1772417559000,0],[1772417865000,0],[1772418199000,0],[1772418474000,0],[1772418792000,0],[1772419149000,0],[1772419474000,0],[1772419650000,0],[1772419953000,0],[1772420276000,0],[1772420625000,0],[1772420855000,0],[1772421163000,0],[1772421498000,0],[1772421759000,0],[1772422060000,0],[1772422382000,0],[1772422667000,0],[1772423152000,0],[1772423267000,0],[1772423568000,0],[1772423864000,0],[1772424167000,0],[1772424466000,0],[1772424762000,0.668571444],[1772425078000,2.16],[1772425353000,0],[1772425716000,0],[1772425971000,0],[1772426331000,0],[1772426582000,0],[1772426863000,0],[1772427197000,0],[1772427568000,0],[1772427767000,0],[1772428077000,0],[1772428381000,0],[1772428652000,0],[1772429005000,0],[1772429277000,0],[1772429581000,0],[1772429853000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1772406029000,0],[1772406205000,0],[1772406477000,0],[1772406750000,0],[1772407052000,3.920000004],[1772407373000,4.759999992],[1772407677000,4.759999992],[1772407982000,4.68],[1772408252000,5.320000008],[1772408605000,4.095],[1772408877000,2.205],[1772409181000,5.985],[1772409453000,3.465],[1772409773000,0],[1772410077000,5.320000008],[1772410381000,5.76],[1772410652000,2.52],[1772410973000,7.251428556],[1772411277000,9.135],[1772411581000,5.67],[1772411901000,4.095],[1772412173000,2.16],[1772412509000,0],[1772412782000,0],[1772413052000,0],[1772413405000,0],[1772413678000,0],[1772414029000,0.72],[1772414254000,3.6],[1772414573000,0],[1772414893000,0],[1772415182000,1.512],[1772415452000,0],[1772415773000,0],[1772416077000,0],[1772416429000,0],[1772416669000,0],[1772417027000,0],[1772417268000,0],[1772417559000,0],[1772417865000,0],[1772418199000,0],[1772418474000,0],[1772418792000,0],[1772419149000,0],[1772419474000,0],[1772419650000,0],[1772419953000,0],[1772420276000,0],[1772420625000,0],[1772420855000,0],[1772421163000,0],[1772421498000,0],[1772421759000,0],[1772422060000,0],[1772422382000,0],[1772422667000,0],[1772423152000,0],[1772423267000,0],[1772423568000,0],[1772423864000,0],[1772424167000,0],[1772424466000,0],[1772424762000,0.72],[1772425078000,2.940000012],[1772425353000,0],[1772425716000,0],[1772425971000,0],[1772426331000,0],[1772426582000,0],[1772426863000,0],[1772427197000,0],[1772427568000,0],[1772427767000,0],[1772428077000,0],[1772428381000,0],[1772428652000,0],[1772429005000,0],[1772429277000,0],[1772429581000,0],[1772429853000,0],], 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: [[1772406029000,168.25000000],[1772406205000,168.37500000],[1772406477000,162.75000000],[1772406750000,166.50000000],[1772407052000,159.33333333],[1772407373000,153.11111111],[1772407677000,151.33333333],[1772407982000,151.85714286],[1772408252000,151.77777778],[1772408605000,154.00000000],[1772408877000,161.12500000],[1772409181000,157.87500000],[1772409453000,163.12500000],[1772409773000,163.22222222],[1772410077000,252.00000000],[1772410381000,226.71428571],[1772410652000,185.50000000],[1772410973000,181.00000000],[1772411277000,158.62500000],[1772411581000,169.37500000],[1772411901000,157.50000000],[1772412173000,162.28571429],[1772412509000,171.87500000],[1772412782000,200.00000000],[1772413052000,184.33333333],[1772413405000,214.83333333],[1772413678000,178.85714286],[1772414029000,180.28571429],[1772414254000,190.85714286],[1772414573000,171.62500000],[1772414893000,188.00000000],[1772415182000,186.80000000],[1772415452000,176.14285714],[1772415773000,188.00000000],[1772416077000,188.00000000],[1772416429000,161.16666667],[1772416669000,165.00000000],[1772417027000,189.25000000],[1772417268000,177.40000000],[1772417559000,173.80000000],[1772417865000,174.66666667],[1772418199000,177.20000000],[1772418474000,173.20000000],[1772418792000,192.00000000],[1772419149000,172.25000000],[1772419474000,161.50000000],[1772419650000,178.00000000],[1772419953000,169.85714286],[1772420276000,174.00000000],[1772420625000,155.83333333],[1772420855000,165.33333333],[1772421163000,167.66666667],[1772421498000,170.83333333],[1772421759000,174.00000000],[1772422060000,178.28571429],[1772422382000,163.66666667],[1772422667000,145.42857143],[1772423152000,148.00000000],[1772423267000,158.75000000],[1772423568000,174.16666667],[1772423864000,154.33333333],[1772424167000,157.14285714],[1772424466000,151.25000000],[1772424762000,164.85714286],[1772425078000,163.16666667],[1772425353000,165.14285714],[1772425716000,177.75000000],[1772425971000,177.60000000],[1772426331000,169.50000000],[1772426582000,153.66666667],[1772426863000,167.50000000],[1772427197000,161.25000000],[1772427568000,163.00000000],[1772427767000,170.83333333],[1772428077000,174.00000000],[1772428381000,168.85714286],[1772428652000,169.12500000],[1772429005000,163.50000000],[1772429277000,157.50000000],[1772429581000,167.71428571],[1772429853000,177.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: [[1772406029000,0.00000000],[1772406205000,0.00000000],[1772406477000,0.00000000],[1772406750000,0.00000000],[1772407052000,0.00000000],[1772407373000,0.00000000],[1772407677000,0.00000000],[1772407982000,0.00000000],[1772408252000,0.00000000],[1772408605000,0.00000000],[1772408877000,0.00000000],[1772409181000,0.00000000],[1772409453000,0.00000000],[1772409773000,0.00000000],[1772410077000,0.00000000],[1772410381000,0.00000000],[1772410652000,0.00000000],[1772410973000,0.00000000],[1772411277000,0.00000000],[1772411581000,0.00000000],[1772411901000,0.00000000],[1772412173000,0.00000000],[1772412509000,0.00000000],[1772412782000,0.00000000],[1772413052000,0.00000000],[1772413405000,0.00000000],[1772413678000,0.00000000],[1772414029000,0.00000000],[1772414254000,0.00000000],[1772414573000,0.00000000],[1772414893000,0.00000000],[1772415182000,0.00000000],[1772415452000,0.00000000],[1772415773000,0.00000000],[1772416077000,0.00000000],[1772416429000,0.00000000],[1772416669000,0.00000000],[1772417027000,0.00000000],[1772417268000,0.00000000],[1772417559000,0.00000000],[1772417865000,0.00000000],[1772418199000,0.00000000],[1772418474000,0.00000000],[1772418792000,0.00000000],[1772419149000,0.00000000],[1772419474000,0.00000000],[1772419650000,0.00000000],[1772419953000,0.00000000],[1772420276000,0.00000000],[1772420625000,0.00000000],[1772420855000,0.00000000],[1772421163000,0.00000000],[1772421498000,0.00000000],[1772421759000,0.00000000],[1772422060000,0.00000000],[1772422382000,0.00000000],[1772422667000,0.00000000],[1772423152000,0.00000000],[1772423267000,0.00000000],[1772423568000,0.00000000],[1772423864000,0.00000000],[1772424167000,0.00000000],[1772424466000,0.00000000],[1772424762000,0.00000000],[1772425078000,0.00000000],[1772425353000,0.00000000],[1772425716000,0.00000000],[1772425971000,0.00000000],[1772426331000,0.00000000],[1772426582000,0.00000000],[1772426863000,0.00000000],[1772427197000,0.00000000],[1772427568000,0.00000000],[1772427767000,0.00000000],[1772428077000,0.00000000],[1772428381000,0.00000000],[1772428652000,0.00000000],[1772429005000,0.00000000],[1772429277000,0.00000000],[1772429581000,0.00000000],[1772429853000,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: 'UV žiarenie', data: [[1772406029000,0.00000000],[1772406205000,0.00000000],[1772406477000,0.00000000],[1772406750000,0.00000000],[1772407052000,0.00000000],[1772407373000,0.00000000],[1772407677000,0.00000000],[1772407982000,0.00000000],[1772408252000,0.00000000],[1772408605000,0.00000000],[1772408877000,0.00000000],[1772409181000,0.00000000],[1772409453000,0.00000000],[1772409773000,0.00000000],[1772410077000,0.00000000],[1772410381000,0.00000000],[1772410652000,0.00000000],[1772410973000,0.00000000],[1772411277000,0.00000000],[1772411581000,0.00000000],[1772411901000,0.00000000],[1772412173000,0.00000000],[1772412509000,0.00000000],[1772412782000,0.00000000],[1772413052000,0.00000000],[1772413405000,0.00000000],[1772413678000,0.00000000],[1772414029000,0.00000000],[1772414254000,0.00000000],[1772414573000,0.00000000],[1772414893000,0.00000000],[1772415182000,0.00000000],[1772415452000,0.00000000],[1772415773000,0.00000000],[1772416077000,0.00000000],[1772416429000,0.00000000],[1772416669000,0.00000000],[1772417027000,0.00000000],[1772417268000,0.00000000],[1772417559000,0.00000000],[1772417865000,0.00000000],[1772418199000,0.00000000],[1772418474000,0.00000000],[1772418792000,0.00000000],[1772419149000,0.00000000],[1772419474000,0.00000000],[1772419650000,0.00000000],[1772419953000,0.00000000],[1772420276000,0.00000000],[1772420625000,0.00000000],[1772420855000,0.00000000],[1772421163000,0.00000000],[1772421498000,0.00000000],[1772421759000,0.00000000],[1772422060000,0.00000000],[1772422382000,0.00000000],[1772422667000,0.00000000],[1772423152000,0.00000000],[1772423267000,0.00000000],[1772423568000,0.00000000],[1772423864000,0.00000000],[1772424167000,0.00000000],[1772424466000,0.00000000],[1772424762000,0.00000000],[1772425078000,0.00000000],[1772425353000,0.00000000],[1772425716000,0.00000000],[1772425971000,0.00000000],[1772426331000,0.00000000],[1772426582000,0.00000000],[1772426863000,0.00000000],[1772427197000,0.00000000],[1772427568000,0.00000000],[1772427767000,0.00000000],[1772428077000,0.00000000],[1772428381000,0.00000000],[1772428652000,0.00000000],[1772429005000,0.00000000],[1772429277000,0.00000000],[1772429581000,0.00000000],[1772429853000,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: [[1772406029000,0.00000000],[1772406205000,0.00000000],[1772406477000,0.00000000],[1772406750000,0.00000000],[1772407052000,0.00000000],[1772407373000,0.00000000],[1772407677000,0.00000000],[1772407982000,0.00000000],[1772408252000,0.00000000],[1772408605000,0.00000000],[1772408877000,0.00000000],[1772409181000,0.00000000],[1772409453000,0.00000000],[1772409773000,0.00000000],[1772410077000,0.00000000],[1772410381000,0.00000000],[1772410652000,0.00000000],[1772410973000,0.00000000],[1772411277000,0.00000000],[1772411581000,0.00000000],[1772411901000,0.00000000],[1772412173000,0.00000000],[1772412509000,0.00000000],[1772412782000,0.00000000],[1772413052000,0.00000000],[1772413405000,0.00000000],[1772413678000,0.00000000],[1772414029000,0.00000000],[1772414254000,0.00000000],[1772414573000,0.00000000],[1772414893000,0.00000000],[1772415182000,0.00000000],[1772415452000,0.00000000],[1772415773000,0.00000000],[1772416077000,0.00000000],[1772416429000,0.00000000],[1772416669000,0.00000000],[1772417027000,0.00000000],[1772417268000,0.00000000],[1772417559000,0.00000000],[1772417865000,0.00000000],[1772418199000,0.00000000],[1772418474000,0.00000000],[1772418792000,0.00000000],[1772419149000,0.00000000],[1772419474000,0.00000000],[1772419650000,0.00000000],[1772419953000,0.00000000],[1772420276000,0.00000000],[1772420625000,0.00000000],[1772420855000,0.00000000],[1772421163000,0.00000000],[1772421498000,0.00000000],[1772421759000,0.00000000],[1772422060000,0.00000000],[1772422382000,0.00000000],[1772422667000,0.00000000],[1772423152000,0.00000000],[1772423267000,0.00000000],[1772423568000,0.00000000],[1772423864000,0.00000000],[1772424167000,0.00000000],[1772424466000,0.00000000],[1772424762000,0.00000000],[1772425078000,0.00000000],[1772425353000,0.00000000],[1772425716000,0.00000000],[1772425971000,0.00000000],[1772426331000,0.00000000],[1772426582000,0.00000000],[1772426863000,0.00000000],[1772427197000,0.00000000],[1772427568000,0.00000000],[1772427767000,0.00000000],[1772428077000,0.00000000],[1772428381000,0.00000000],[1772428652000,0.00000000],[1772429005000,0.00000000],[1772429277000,0.00000000],[1772429581000,0.00000000],[1772429853000,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; }