var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1765494003000,-0.10000000],[1765494195000,0.15000000],[1765494451000,0.54000000],[1765494771000,1.48000000],[1765495091000,2.02000000],[1765495411000,0.92500000],[1765495667000,1.18000000],[1765495987000,2.02000000],[1765496307000,2.87500000],[1765496564000,3.60000000],[1765496883000,3.76000000],[1765497203000,2.62500000],[1765497459000,2.50000000],[1765497780000,2.98000000],[1765498099000,2.95000000],[1765498355000,2.68000000],[1765498691000,2.36000000],[1765499011000,2.22500000],[1765499267000,2.04000000],[1765499588000,1.92000000],[1765499907000,3.05000000],[1765500163000,3.60000000],[1765500483000,3.60000000],[1765500803000,2.62500000],[1765501059000,1.70000000],[1765501380000,1.22000000],[1765501700000,1.00000000],[1765501955000,1.14000000],[1765502275000,1.68000000],[1765502595000,1.50000000],[1765502851000,1.32000000],[1765503171000,1.06000000],[1765503498000,0.87500000],[1765503763000,0.72000000],[1765504083000,0.70000000],[1765504512000,0.23333333],[1765504707000,0.05000000],[1765504963000,-0.08000000],[1765505283000,-0.12000000],[1765505603000,0.10000000],[1765505859000,-0.10000000],[1765506180000,-0.36000000],[1765506507000,0.00000000],[1765506771000,-0.04000000],[1765507091000,-0.10000000],[1765507411000,-0.10000000],[1765507667000,-0.10000000],[1765507987000,0.00000000],[1765508306000,0.15000000],[1765508562000,0.40000000],[1765508882000,0.58000000],[1765509202000,1.40000000],[1765509458000,2.02000000],[1765509778000,2.58000000],[1765510098000,2.47500000],[1765510351000,2.12000000],[1765510674000,1.92000000],[1765510994000,1.42500000],[1765511250000,0.78000000],[1765511570000,1.68000000],[1765511890000,1.86000000],[1765512210000,2.15000000],[1765512466000,2.22000000],[1765512786000,2.36000000],[1765513106000,2.55000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1765494003000,-0.2],[1765494195000,0],[1765494451000,0.4],[1765494771000,1.3],[1765495091000,1.9],[1765495411000,0.8],[1765495667000,1],[1765495987000,1.9],[1765496307000,2.7],[1765496564000,3.5],[1765496883000,3.6],[1765497203000,2.5],[1765497459000,2.4],[1765497780000,2.8],[1765498099000,2.8],[1765498355000,2.5],[1765498691000,2.2],[1765499011000,2.1],[1765499267000,1.9],[1765499588000,1.8],[1765499907000,2.9],[1765500163000,3.5],[1765500483000,3.5],[1765500803000,2.5],[1765501059000,1.6],[1765501380000,1.1],[1765501700000,0.9],[1765501955000,1],[1765502275000,1.5],[1765502595000,1.4],[1765502851000,1.2],[1765503171000,0.9],[1765503498000,0.7],[1765503763000,0.6],[1765504083000,0.6],[1765504512000,0.1],[1765504707000,-0.1],[1765504963000,-0.2],[1765505283000,-0.3],[1765505603000,-0],[1765505859000,-0.2],[1765506180000,-0.5],[1765506507000,-0.1],[1765506771000,-0.2],[1765507091000,-0.2],[1765507411000,-0.2],[1765507667000,-0.2],[1765507987000,-0.1],[1765508306000,0],[1765508562000,0.3],[1765508882000,0.4],[1765509202000,1.3],[1765509458000,1.9],[1765509778000,2.4],[1765510098000,2.3],[1765510351000,2],[1765510674000,1.8],[1765510994000,1.3],[1765511250000,0.6],[1765511570000,1.5],[1765511890000,1.7],[1765512210000,2],[1765512466000,2.1],[1765512786000,2.2],[1765513106000,2.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: [[1765494003000,99.00000000],[1765494195000,99.00000000],[1765494451000,99.00000000],[1765494771000,99.00000000],[1765495091000,99.00000000],[1765495411000,99.00000000],[1765495667000,99.00000000],[1765495987000,99.00000000],[1765496307000,99.00000000],[1765496564000,99.00000000],[1765496883000,99.00000000],[1765497203000,99.00000000],[1765497459000,99.00000000],[1765497780000,99.00000000],[1765498099000,99.00000000],[1765498355000,99.00000000],[1765498691000,99.00000000],[1765499011000,99.00000000],[1765499267000,99.00000000],[1765499588000,99.00000000],[1765499907000,99.00000000],[1765500163000,99.00000000],[1765500483000,99.00000000],[1765500803000,99.00000000],[1765501059000,99.00000000],[1765501380000,99.00000000],[1765501700000,99.00000000],[1765501955000,99.00000000],[1765502275000,99.00000000],[1765502595000,99.00000000],[1765502851000,99.00000000],[1765503171000,99.00000000],[1765503498000,99.00000000],[1765503763000,99.00000000],[1765504083000,99.00000000],[1765504512000,99.00000000],[1765504707000,99.00000000],[1765504963000,99.00000000],[1765505283000,99.00000000],[1765505603000,99.00000000],[1765505859000,99.00000000],[1765506180000,99.00000000],[1765506507000,99.00000000],[1765506771000,99.00000000],[1765507091000,99.00000000],[1765507411000,99.00000000],[1765507667000,99.00000000],[1765507987000,99.00000000],[1765508306000,99.00000000],[1765508562000,99.00000000],[1765508882000,99.00000000],[1765509202000,99.00000000],[1765509458000,99.00000000],[1765509778000,99.00000000],[1765510098000,99.00000000],[1765510351000,99.00000000],[1765510674000,99.00000000],[1765510994000,99.00000000],[1765511250000,99.00000000],[1765511570000,99.00000000],[1765511890000,99.00000000],[1765512210000,99.00000000],[1765512466000,99.00000000],[1765512786000,99.00000000],[1765513106000,99.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: [[1765494003000,1029],[1765494195000,1028.8],[1765494451000,1028.7],[1765494771000,1028.5],[1765495091000,1028.4],[1765495411000,1028.7],[1765495667000,1028.6],[1765495987000,1028.3],[1765496307000,1028.3],[1765496564000,1028],[1765496883000,1028],[1765497203000,1028.1],[1765497459000,1028],[1765497780000,1027.9],[1765498099000,1028],[1765498355000,1028.1],[1765498691000,1028.2],[1765499011000,1028.2],[1765499267000,1028.2],[1765499588000,1028.1],[1765499907000,1028.1],[1765500163000,1028],[1765500483000,1028],[1765500803000,1028.2],[1765501059000,1028.5],[1765501380000,1028.7],[1765501700000,1028.7],[1765501955000,1028.7],[1765502275000,1028.7],[1765502595000,1028.6],[1765502851000,1028.6],[1765503171000,1028.6],[1765503498000,1028.6],[1765503763000,1028.6],[1765504083000,1028.6],[1765504512000,1028.8],[1765504707000,1028.7],[1765504963000,1028.6],[1765505283000,1028.7],[1765505603000,1028.7],[1765505859000,1028.9],[1765506180000,1029],[1765506507000,1028.9],[1765506771000,1028.9],[1765507091000,1029],[1765507411000,1029.1],[1765507667000,1029.1],[1765507987000,1029],[1765508306000,1029],[1765508562000,1029],[1765508882000,1029],[1765509202000,1028.7],[1765509458000,1028.7],[1765509778000,1028.6],[1765510098000,1028.7],[1765510351000,1028.7],[1765510674000,1028.7],[1765510994000,1028.9],[1765511250000,1028.9],[1765511570000,1028.7],[1765511890000,1028.6],[1765512210000,1028.7],[1765512466000,1028.6],[1765512786000,1028.6],[1765513106000,1028.6],], 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: [[1765494003000,0.960000012],[1765494195000,2.25],[1765494451000,5.328],[1765494771000,4.896],[1765495091000,1.44],[1765495411000,1.71],[1765495667000,3.096],[1765495987000,2.088],[1765496307000,2.61],[1765496564000,1.584],[1765496883000,1.224],[1765497203000,1.08],[1765497459000,0.072],[1765497780000,0.216],[1765498099000,1.26],[1765498355000,0.648],[1765498691000,0.216],[1765499011000,0.09],[1765499267000,0],[1765499588000,3.384],[1765499907000,2.43],[1765500163000,1.08],[1765500483000,0.936],[1765500803000,0],[1765501059000,0.576],[1765501380000,0],[1765501700000,0.99],[1765501955000,1.728],[1765502275000,0.36],[1765502595000,0.36],[1765502851000,0.864],[1765503171000,0],[1765503498000,0],[1765503763000,0],[1765504083000,0],[1765504512000,0],[1765504707000,0],[1765504963000,0.504],[1765505283000,2.304],[1765505603000,1.35],[1765505859000,0.504],[1765506180000,2.304],[1765506507000,2.79],[1765506771000,0.576],[1765507091000,0.072],[1765507411000,0],[1765507667000,1.296],[1765507987000,1.8],[1765508306000,2.34],[1765508562000,0.864],[1765508882000,2.664],[1765509202000,3.24],[1765509458000,2.16],[1765509778000,0.936],[1765510098000,0],[1765510351000,0.072],[1765510674000,0],[1765510994000,0.09],[1765511250000,0.936],[1765511570000,0.072],[1765511890000,0.36],[1765512210000,0],[1765512466000,0.864],[1765512786000,1.368],[1765513106000,0],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1765494003000,2.52],[1765494195000,3.78],[1765494451000,6.552],[1765494771000,6.048],[1765495091000,3.024],[1765495411000,2.52],[1765495667000,4.032],[1765495987000,3.024],[1765496307000,3.15],[1765496564000,2.016],[1765496883000,1.512],[1765497203000,1.89],[1765497459000,0.504],[1765497780000,1.008],[1765498099000,1.89],[1765498355000,1.008],[1765498691000,1.008],[1765499011000,0.63],[1765499267000,0],[1765499588000,4.032],[1765499907000,2.52],[1765500163000,1.512],[1765500483000,1.008],[1765500803000,0],[1765501059000,1.008],[1765501380000,0],[1765501700000,1.26],[1765501955000,2.52],[1765502275000,1.008],[1765502595000,0.63],[1765502851000,1.008],[1765503171000,0],[1765503498000,0],[1765503763000,0],[1765504083000,0],[1765504512000,0],[1765504707000,0],[1765504963000,0.504],[1765505283000,3.528],[1765505603000,1.89],[1765505859000,0.504],[1765506180000,3.528],[1765506507000,3.78],[1765506771000,1.008],[1765507091000,0.504],[1765507411000,0],[1765507667000,1.512],[1765507987000,2.016],[1765508306000,2.52],[1765508562000,1.008],[1765508882000,3.024],[1765509202000,3.78],[1765509458000,3.024],[1765509778000,1.008],[1765510098000,0],[1765510351000,0.504],[1765510674000,0],[1765510994000,0.63],[1765511250000,1.512],[1765511570000,0.504],[1765511890000,1.008],[1765512210000,0],[1765512466000,1.512],[1765512786000,2.016],[1765513106000,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: [[1765494003000,264.66666667],[1765494195000,278.25000000],[1765494451000,285.80000000],[1765494771000,314.60000000],[1765495091000,51.80000000],[1765495411000,38.50000000],[1765495667000,278.40000000],[1765495987000,153.00000000],[1765496307000,264.00000000],[1765496564000,156.00000000],[1765496883000,86.60000000],[1765497203000,176.00000000],[1765497459000,2.00000000],[1765497780000,71.20000000],[1765498099000,105.50000000],[1765498355000,50.40000000],[1765498691000,50.00000000],[1765499011000,54.75000000],[1765499267000,16.60000000],[1765499588000,188.00000000],[1765499907000,249.75000000],[1765500163000,200.80000000],[1765500483000,45.80000000],[1765500803000,97.50000000],[1765501059000,59.20000000],[1765501380000,99.00000000],[1765501700000,272.00000000],[1765501955000,267.00000000],[1765502275000,152.60000000],[1765502595000,25.75000000],[1765502851000,30.20000000],[1765503171000,25.60000000],[1765503498000,28.25000000],[1765503763000,148.00000000],[1765504083000,55.00000000],[1765504512000,67.66666667],[1765504707000,56.00000000],[1765504963000,95.80000000],[1765505283000,92.00000000],[1765505603000,31.00000000],[1765505859000,33.60000000],[1765506180000,29.20000000],[1765506507000,141.75000000],[1765506771000,84.60000000],[1765507091000,42.80000000],[1765507411000,39.00000000],[1765507667000,82.80000000],[1765507987000,273.00000000],[1765508306000,337.75000000],[1765508562000,95.60000000],[1765508882000,288.00000000],[1765509202000,344.75000000],[1765509458000,341.40000000],[1765509778000,81.80000000],[1765510098000,49.50000000],[1765510351000,92.20000000],[1765510674000,19.20000000],[1765510994000,34.00000000],[1765511250000,281.80000000],[1765511570000,160.20000000],[1765511890000,169.60000000],[1765512210000,9.25000000],[1765512466000,270.80000000],[1765512786000,263.60000000],[1765513106000,181.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: [[1765494003000,0.00000000],[1765494195000,0.00000000],[1765494451000,0.00000000],[1765494771000,0.00000000],[1765495091000,0.00000000],[1765495411000,0.00000000],[1765495667000,0.00000000],[1765495987000,0.00000000],[1765496307000,0.00000000],[1765496564000,0.00000000],[1765496883000,0.00000000],[1765497203000,0.00000000],[1765497459000,0.00000000],[1765497780000,0.00000000],[1765498099000,0.00000000],[1765498355000,0.00000000],[1765498691000,0.00000000],[1765499011000,0.00000000],[1765499267000,0.00000000],[1765499588000,0.00000000],[1765499907000,0.00000000],[1765500163000,0.00000000],[1765500483000,0.00000000],[1765500803000,0.00000000],[1765501059000,0.00000000],[1765501380000,0.00000000],[1765501700000,0.00000000],[1765501955000,0.00000000],[1765502275000,0.00000000],[1765502595000,0.00000000],[1765502851000,0.00000000],[1765503171000,0.00000000],[1765503498000,0.00000000],[1765503763000,0.00000000],[1765504083000,0.00000000],[1765504512000,0.00000000],[1765504707000,0.00000000],[1765504963000,0.00000000],[1765505283000,0.00000000],[1765505603000,0.00000000],[1765505859000,0.00000000],[1765506180000,0.00000000],[1765506507000,0.00000000],[1765506771000,0.00000000],[1765507091000,0.00000000],[1765507411000,0.00000000],[1765507667000,0.00000000],[1765507987000,0.00000000],[1765508306000,0.00000000],[1765508562000,0.00000000],[1765508882000,0.00000000],[1765509202000,0.00000000],[1765509458000,0.00000000],[1765509778000,0.00000000],[1765510098000,0.00000000],[1765510351000,0.00000000],[1765510674000,0.00000000],[1765510994000,0.00000000],[1765511250000,0.00000000],[1765511570000,0.00000000],[1765511890000,0.00000000],[1765512210000,0.00000000],[1765512466000,0.00000000],[1765512786000,0.00000000],[1765513106000,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: [[1765494003000,0.00000000],[1765494195000,0.00000000],[1765494451000,0.00000000],[1765494771000,0.00000000],[1765495091000,0.00000000],[1765495411000,0.00000000],[1765495667000,0.00000000],[1765495987000,0.00000000],[1765496307000,0.00000000],[1765496564000,0.00000000],[1765496883000,0.00000000],[1765497203000,0.00000000],[1765497459000,0.00000000],[1765497780000,0.00000000],[1765498099000,0.00000000],[1765498355000,0.00000000],[1765498691000,0.00000000],[1765499011000,0.00000000],[1765499267000,0.00000000],[1765499588000,0.00000000],[1765499907000,0.00000000],[1765500163000,0.00000000],[1765500483000,0.00000000],[1765500803000,0.00000000],[1765501059000,0.00000000],[1765501380000,0.00000000],[1765501700000,0.00000000],[1765501955000,0.00000000],[1765502275000,0.00000000],[1765502595000,0.00000000],[1765502851000,0.00000000],[1765503171000,0.00000000],[1765503498000,0.00000000],[1765503763000,0.00000000],[1765504083000,0.00000000],[1765504512000,0.00000000],[1765504707000,0.00000000],[1765504963000,0.00000000],[1765505283000,0.00000000],[1765505603000,0.00000000],[1765505859000,0.00000000],[1765506180000,0.00000000],[1765506507000,0.00000000],[1765506771000,0.00000000],[1765507091000,0.00000000],[1765507411000,0.00000000],[1765507667000,0.00000000],[1765507987000,0.00000000],[1765508306000,0.00000000],[1765508562000,0.00000000],[1765508882000,0.00000000],[1765509202000,0.00000000],[1765509458000,0.00000000],[1765509778000,0.00000000],[1765510098000,0.00000000],[1765510351000,0.00000000],[1765510674000,0.00000000],[1765510994000,0.00000000],[1765511250000,0.00000000],[1765511570000,0.00000000],[1765511890000,0.00000000],[1765512210000,0.00000000],[1765512466000,0.00000000],[1765512786000,0.00000000],[1765513106000,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: [[1765494003000,0.00000000],[1765494195000,0.00000000],[1765494451000,0.00000000],[1765494771000,0.00000000],[1765495091000,0.00000000],[1765495411000,0.00000000],[1765495667000,0.00000000],[1765495987000,0.00000000],[1765496307000,0.00000000],[1765496564000,0.00000000],[1765496883000,0.00000000],[1765497203000,0.00000000],[1765497459000,0.00000000],[1765497780000,0.00000000],[1765498099000,0.00000000],[1765498355000,0.00000000],[1765498691000,0.00000000],[1765499011000,0.00000000],[1765499267000,0.00000000],[1765499588000,0.00000000],[1765499907000,0.00000000],[1765500163000,0.00000000],[1765500483000,0.00000000],[1765500803000,0.00000000],[1765501059000,0.00000000],[1765501380000,0.00000000],[1765501700000,0.00000000],[1765501955000,0.00000000],[1765502275000,0.00000000],[1765502595000,0.00000000],[1765502851000,0.00000000],[1765503171000,0.00000000],[1765503498000,0.00000000],[1765503763000,0.00000000],[1765504083000,0.00000000],[1765504512000,0.00000000],[1765504707000,0.00000000],[1765504963000,0.00000000],[1765505283000,0.00000000],[1765505603000,0.00000000],[1765505859000,0.00000000],[1765506180000,0.00000000],[1765506507000,0.00000000],[1765506771000,0.00000000],[1765507091000,0.00000000],[1765507411000,0.00000000],[1765507667000,0.00000000],[1765507987000,0.00000000],[1765508306000,0.00000000],[1765508562000,0.00000000],[1765508882000,0.00000000],[1765509202000,0.00000000],[1765509458000,0.00000000],[1765509778000,0.00000000],[1765510098000,0.00000000],[1765510351000,0.00000000],[1765510674000,0.00000000],[1765510994000,0.00000000],[1765511250000,0.00000000],[1765511570000,0.00000000],[1765511890000,0.00000000],[1765512210000,0.00000000],[1765512466000,0.00000000],[1765512786000,0.00000000],[1765513106000,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; }