var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1784498418000,19.90000000],[1784498601000,19.90000000],[1784498855000,19.80000000],[1784499210000,19.75000000],[1784499455000,19.70000000],[1784499760000,19.66000000],[1784500065000,19.48000000],[1784500370000,19.40000000],[1784500675000,19.32000000],[1784500980000,19.18000000],[1784501285000,19.02000000],[1784501590000,19.02000000],[1784501895000,19.02000000],[1784502200000,18.88000000],[1784502505000,18.80000000],[1784502810000,18.62500000],[1784503054000,18.46000000],[1784503359000,18.32000000],[1784503664000,18.12000000],[1784503969000,18.04000000],[1784504274000,17.86000000],[1784504579000,17.66000000],[1784504883000,17.52000000],[1784505189000,17.34000000],[1784505494000,17.34000000],[1784505799000,17.36000000],[1784506104000,17.36000000],[1784506409000,17.40000000],[1784506653000,17.12000000],[1784506958000,17.14000000],[1784507263000,17.08000000],[1784507568000,17.00000000],[1784507873000,17.16000000],[1784508178000,17.00000000],[1784508484000,16.94000000],[1784508789000,16.86000000],[1784509093000,16.76000000],[1784509398000,16.56000000],[1784509703000,16.44000000],[1784510008000,16.57500000],[1784510252000,16.68000000],[1784510561000,16.46000000],[1784510862000,16.34000000],[1784511167000,16.46000000],[1784511472000,16.26000000],[1784511777000,16.20000000],[1784512082000,16.00000000],[1784512387000,15.48000000],[1784512692000,15.52000000],[1784512997000,15.56000000],[1784513302000,16.18000000],[1784513607000,16.10000000],[1784513851000,15.26000000],[1784514157000,14.68000000],[1784514462000,14.22000000],[1784514767000,14.00000000],[1784515071000,13.94000000],[1784515376000,13.92000000],[1784515682000,14.14000000],[1784515986000,13.78000000],[1784516291000,13.80000000],[1784516596000,14.30000000],[1784516902000,14.16000000],[1784517207000,14.17500000],[1784517451000,14.44000000],[1784517756000,14.46000000],[1784518060000,14.52000000],[1784518366000,14.70000000],[1784518671000,14.92000000],[1784518976000,15.08000000],[1784519281000,15.14000000],[1784519586000,15.34000000],[1784519891000,15.46000000],[1784520196000,15.62000000],[1784520501000,15.70000000],[1784520806000,15.72500000],[1784521050000,15.80000000],[1784521355000,16.00000000],[1784521660000,16.18000000],[1784521965000,16.30000000],[1784522270000,16.40000000],[1784522575000,16.50000000],[1784522880000,16.40000000],[1784523185000,16.50000000],[1784523490000,16.88000000],[1784523794000,17.20000000],[1784524100000,17.20000000],[1784524405000,17.30000000],[1784524710000,17.30000000],[1784524954000,17.52000000],[1784525260000,17.68000000],[1784525564000,18.08000000],[1784525869000,18.10000000],[1784526174000,18.16000000],[1784526479000,18.48000000],[1784526784000,18.66000000],[1784527089000,19.14000000],[1784527394000,19.04000000],[1784527700000,19.32000000],[1784528004000,19.62000000],[1784528309000,19.75000000],[1784528553000,19.58000000],[1784528858000,19.84000000],[1784529163000,20.26000000],[1784529467000,20.18000000],[1784529773000,20.54000000],[1784530078000,20.56000000],[1784530383000,20.54000000],[1784530692000,20.54000000],[1784530993000,21.12000000],[1784531298000,21.18000000],[1784531603000,22.06000000],[1784531908000,21.82500000],[1784532152000,21.98000000],[1784532457000,22.14000000],[1784532762000,22.36000000],[1784533066000,22.52000000],[1784533373000,22.22000000],[1784533677000,22.66000000],[1784533982000,23.22000000],[1784534291000,22.90000000],[1784534592000,22.92000000],[1784534897000,23.04000000],[1784535202000,23.30000000],[1784535507000,23.52500000],[1784535751000,23.52000000],[1784536056000,23.90000000],[1784536361000,23.46000000],[1784536666000,23.58000000],[1784536971000,23.82000000],[1784537276000,23.88000000],[1784537581000,23.72000000],[1784537886000,24.30000000],[1784538191000,24.56000000],[1784538496000,24.42000000],[1784538802000,24.54000000],[1784539106000,24.57500000],[1784539350000,24.06000000],[1784539655000,24.48000000],[1784539960000,24.48000000],[1784540265000,24.52000000],[1784540570000,24.60000000],[1784540875000,24.68000000],[1784541180000,25.08000000],[1784541485000,25.24000000],[1784541791000,25.20000000],[1784542095000,25.20000000],[1784542401000,25.08000000],[1784542705000,26.02500000],[1784542950000,25.40000000],[1784543255000,25.16000000],[1784543560000,25.68000000],[1784543865000,25.26000000],[1784544170000,25.68000000],[1784544475000,25.24000000],[1784544780000,25.72000000],[1784545085000,25.20000000],[1784545390000,25.70000000],[1784545695000,25.54000000],[1784546000000,25.54000000],[1784546305000,25.40000000],[1784546610000,26.00000000],[1784546854000,25.78000000],[1784547159000,25.26000000],[1784547464000,25.90000000],[1784547769000,26.38000000],[1784548074000,26.22000000],[1784548378000,26.34000000],[1784548684000,25.88000000],[1784548989000,26.02000000],[1784549294000,26.10000000],[1784549599000,25.74000000],[1784549904000,26.30000000],[1784550208000,26.27500000],[1784550453000,26.66000000],[1784550758000,26.64000000],[1784551063000,27.06000000],[1784551368000,26.86000000],[1784551673000,27.04000000],[1784551978000,26.90000000],[1784552284000,26.70000000],[1784552588000,26.80000000],[1784552893000,26.90000000],[1784553198000,27.00000000],[1784553503000,27.36000000],[1784553810000,27.45000000],[1784554055000,27.40000000],[1784554357000,27.22000000],[1784554662000,27.10000000],[1784554967000,27.50000000],[1784555272000,27.40000000],[1784555577000,27.40000000],[1784555881000,26.62000000],[1784556187000,27.26000000],[1784556492000,26.98000000],[1784556797000,27.08000000],[1784557102000,27.16000000],[1784557407000,26.90000000],[1784557651000,27.44000000],[1784557957000,26.94000000],[1784558261000,26.72000000],[1784558566000,26.46000000],[1784558871000,26.62000000],[1784559176000,26.72000000],[1784559481000,26.94000000],[1784559786000,27.00000000],[1784560091000,26.58000000],[1784560396000,26.42000000],[1784560701000,26.62000000],[1784561006000,26.45000000],[1784561250000,26.24000000],[1784561554000,26.62000000],[1784561860000,26.30000000],[1784562165000,26.52000000],[1784562470000,26.82000000],[1784562775000,26.96000000],[1784563080000,27.44000000],[1784563389000,27.04000000],[1784563690000,27.00000000],[1784563995000,26.84000000],[1784564300000,26.74000000],[1784564605000,26.60000000],[1784564910000,26.70000000],[1784565154000,26.60000000],[1784565459000,26.40000000],[1784565764000,26.32500000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1784498418000,15.3],[1784498601000,15.3],[1784498855000,15.2],[1784499210000,15.2],[1784499455000,15.1],[1784499760000,15.1],[1784500065000,15],[1784500370000,15],[1784500675000,15],[1784500980000,14.8],[1784501285000,14.9],[1784501590000,14.7],[1784501895000,14.8],[1784502200000,14.7],[1784502505000,14.9],[1784502810000,14.8],[1784503054000,14.9],[1784503359000,15],[1784503664000,14.9],[1784503969000,14.9],[1784504274000,14.7],[1784504579000,14.6],[1784504883000,14.4],[1784505189000,14.2],[1784505494000,14.2],[1784505799000,14],[1784506104000,13.8],[1784506409000,13.7],[1784506653000,13.7],[1784506958000,13.5],[1784507263000,13.5],[1784507568000,13.3],[1784507873000,13.3],[1784508178000,13.3],[1784508484000,13.1],[1784508789000,13.1],[1784509093000,13.1],[1784509398000,13.1],[1784509703000,12.9],[1784510008000,12.6],[1784510252000,12.8],[1784510561000,12.9],[1784510862000,12.6],[1784511167000,12.7],[1784511472000,12.6],[1784511777000,12.5],[1784512082000,12.4],[1784512387000,12.2],[1784512692000,12.1],[1784512997000,11.8],[1784513302000,12],[1784513607000,12],[1784513851000,12.3],[1784514157000,12],[1784514462000,11.7],[1784514767000,11.7],[1784515071000,11.6],[1784515376000,11.6],[1784515682000,11.6],[1784515986000,11.4],[1784516291000,11.4],[1784516596000,11.8],[1784516902000,11.7],[1784517207000,11.7],[1784517451000,11.9],[1784517756000,11.8],[1784518060000,11.8],[1784518366000,11.8],[1784518671000,11.8],[1784518976000,11.9],[1784519281000,11.9],[1784519586000,12],[1784519891000,12],[1784520196000,12.1],[1784520501000,12],[1784520806000,12],[1784521050000,12.1],[1784521355000,12],[1784521660000,12],[1784521965000,12.1],[1784522270000,12.1],[1784522575000,12.2],[1784522880000,12.1],[1784523185000,12.2],[1784523490000,12.3],[1784523794000,12.5],[1784524100000,12.5],[1784524405000,12.6],[1784524710000,12.6],[1784524954000,12.8],[1784525260000,12.8],[1784525564000,13],[1784525869000,13],[1784526174000,12.8],[1784526479000,13],[1784526784000,13],[1784527089000,13],[1784527394000,13.2],[1784527700000,13.1],[1784528004000,13.2],[1784528309000,12.8],[1784528553000,12.8],[1784528858000,12.9],[1784529163000,13.3],[1784529467000,13.3],[1784529773000,13],[1784530078000,12.9],[1784530383000,12.8],[1784530692000,12.9],[1784530993000,12.8],[1784531298000,12.7],[1784531603000,12.8],[1784531908000,12.3],[1784532152000,12.1],[1784532457000,12],[1784532762000,12.2],[1784533066000,11.9],[1784533373000,11.9],[1784533677000,11.7],[1784533982000,12],[1784534291000,11.7],[1784534592000,11.3],[1784534897000,11.7],[1784535202000,11.3],[1784535507000,11.5],[1784535751000,11.2],[1784536056000,11.4],[1784536361000,11],[1784536666000,11.1],[1784536971000,10.8],[1784537276000,10.8],[1784537581000,10.9],[1784537886000,11.2],[1784538191000,11.5],[1784538496000,11.4],[1784538802000,11.4],[1784539106000,11.2],[1784539350000,10.6],[1784539655000,10.9],[1784539960000,11.1],[1784540265000,11.1],[1784540570000,11.1],[1784540875000,10.9],[1784541180000,11.2],[1784541485000,11.3],[1784541791000,11],[1784542095000,11.1],[1784542401000,11],[1784542705000,11.5],[1784542950000,11.1],[1784543255000,11.1],[1784543560000,11.3],[1784543865000,11.3],[1784544170000,11.5],[1784544475000,11.3],[1784544780000,11.2],[1784545085000,11.2],[1784545390000,11.4],[1784545695000,11],[1784546000000,11.1],[1784546305000,10.9],[1784546610000,11.5],[1784546854000,11.5],[1784547159000,10.8],[1784547464000,11.6],[1784547769000,11.4],[1784548074000,11.2],[1784548378000,11.1],[1784548684000,11],[1784548989000,11.1],[1784549294000,11.3],[1784549599000,10.8],[1784549904000,11.2],[1784550208000,11.2],[1784550453000,11.5],[1784550758000,11.2],[1784551063000,11.7],[1784551368000,11.3],[1784551673000,11.3],[1784551978000,11.5],[1784552284000,11.5],[1784552588000,11.3],[1784552893000,11.8],[1784553198000,11.5],[1784553503000,11.8],[1784553810000,11.9],[1784554055000,11.6],[1784554357000,11.7],[1784554662000,11.6],[1784554967000,11.8],[1784555272000,11.8],[1784555577000,11.8],[1784555881000,11.5],[1784556187000,11.7],[1784556492000,11.6],[1784556797000,11.7],[1784557102000,11.9],[1784557407000,11.9],[1784557651000,12.2],[1784557957000,11.8],[1784558261000,11.8],[1784558566000,11.8],[1784558871000,12.1],[1784559176000,11.9],[1784559481000,12.2],[1784559786000,12.2],[1784560091000,12.1],[1784560396000,12],[1784560701000,12.2],[1784561006000,12.2],[1784561250000,12.2],[1784561554000,12.2],[1784561860000,12.1],[1784562165000,11.9],[1784562470000,12.2],[1784562775000,12.2],[1784563080000,12.5],[1784563389000,12.6],[1784563690000,12.8],[1784563995000,12.6],[1784564300000,12.8],[1784564605000,12.6],[1784564910000,12.4],[1784565154000,12.6],[1784565459000,12.4],[1784565764000,12.6],], color: '#5b9f4a' } ]; var options = { xaxes: [{ axisLabel: 'temperature', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1°C' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-temperature-legend' } }; graphs['#chart-temperature'] = $.plot('#chart-temperature', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'Vlhkosť (%)', data: [[1784498418000,75.00000000],[1784498601000,75.00000000],[1784498855000,75.00000000],[1784499210000,75.00000000],[1784499455000,75.00000000],[1784499760000,75.00000000],[1784500065000,75.60000000],[1784500370000,76.00000000],[1784500675000,76.00000000],[1784500980000,76.00000000],[1784501285000,77.00000000],[1784501590000,76.40000000],[1784501895000,76.60000000],[1784502200000,76.80000000],[1784502505000,78.00000000],[1784502810000,78.50000000],[1784503054000,79.80000000],[1784503359000,81.20000000],[1784503664000,81.80000000],[1784503969000,81.80000000],[1784504274000,82.00000000],[1784504579000,82.20000000],[1784504883000,82.00000000],[1784505189000,82.00000000],[1784505494000,82.00000000],[1784505799000,81.00000000],[1784506104000,79.60000000],[1784506409000,79.25000000],[1784506653000,80.20000000],[1784506958000,79.20000000],[1784507263000,79.60000000],[1784507568000,79.00000000],[1784507873000,78.00000000],[1784508178000,78.80000000],[1784508484000,78.20000000],[1784508789000,78.60000000],[1784509093000,79.00000000],[1784509398000,80.00000000],[1784509703000,79.80000000],[1784510008000,77.75000000],[1784510252000,78.20000000],[1784510561000,79.40000000],[1784510862000,78.80000000],[1784511167000,78.60000000],[1784511472000,79.00000000],[1784511777000,78.80000000],[1784512082000,79.40000000],[1784512387000,80.80000000],[1784512692000,80.00000000],[1784512997000,78.40000000],[1784513302000,76.40000000],[1784513607000,77.00000000],[1784513851000,82.60000000],[1784514157000,84.20000000],[1784514462000,85.20000000],[1784514767000,86.00000000],[1784515071000,86.00000000],[1784515376000,86.00000000],[1784515682000,85.00000000],[1784515986000,85.60000000],[1784516291000,85.60000000],[1784516596000,85.00000000],[1784516902000,85.00000000],[1784517207000,85.00000000],[1784517451000,84.60000000],[1784517756000,84.00000000],[1784518060000,84.00000000],[1784518366000,82.75000000],[1784518671000,82.00000000],[1784518976000,81.40000000],[1784519281000,81.00000000],[1784519586000,80.60000000],[1784519891000,80.00000000],[1784520196000,79.80000000],[1784520501000,79.00000000],[1784520806000,78.75000000],[1784521050000,78.60000000],[1784521355000,77.20000000],[1784521660000,76.20000000],[1784521965000,76.20000000],[1784522270000,76.00000000],[1784522575000,76.00000000],[1784522880000,76.00000000],[1784523185000,76.00000000],[1784523490000,74.80000000],[1784523794000,74.00000000],[1784524100000,74.00000000],[1784524405000,74.00000000],[1784524710000,74.00000000],[1784524954000,73.80000000],[1784525260000,73.40000000],[1784525564000,72.60000000],[1784525869000,72.20000000],[1784526174000,71.20000000],[1784526479000,70.40000000],[1784526784000,69.60000000],[1784527089000,67.80000000],[1784527394000,69.00000000],[1784527700000,67.60000000],[1784528004000,66.40000000],[1784528309000,64.50000000],[1784528553000,65.20000000],[1784528858000,64.40000000],[1784529163000,64.40000000],[1784529467000,64.60000000],[1784529773000,62.00000000],[1784530078000,61.80000000],[1784530383000,61.20000000],[1784530692000,61.60000000],[1784530993000,59.20000000],[1784531298000,58.40000000],[1784531603000,55.80000000],[1784531908000,55.00000000],[1784532152000,53.60000000],[1784532457000,52.80000000],[1784532762000,52.60000000],[1784533066000,51.20000000],[1784533373000,52.00000000],[1784533677000,50.20000000],[1784533982000,49.40000000],[1784534291000,49.40000000],[1784534592000,48.00000000],[1784534897000,48.80000000],[1784535202000,46.80000000],[1784535507000,46.75000000],[1784535751000,46.00000000],[1784536056000,45.60000000],[1784536361000,45.60000000],[1784536666000,45.40000000],[1784536971000,44.00000000],[1784537276000,43.80000000],[1784537581000,44.60000000],[1784537886000,44.00000000],[1784538191000,44.20000000],[1784538496000,44.00000000],[1784538802000,43.80000000],[1784539106000,43.25000000],[1784539350000,42.80000000],[1784539655000,42.60000000],[1784539960000,43.00000000],[1784540265000,43.00000000],[1784540570000,42.80000000],[1784540875000,42.00000000],[1784541180000,41.80000000],[1784541485000,41.60000000],[1784541791000,41.00000000],[1784542095000,41.40000000],[1784542401000,41.20000000],[1784542705000,40.25000000],[1784542950000,40.80000000],[1784543255000,41.40000000],[1784543560000,40.60000000],[1784543865000,41.80000000],[1784544170000,41.20000000],[1784544475000,41.80000000],[1784544780000,40.40000000],[1784545085000,41.60000000],[1784545390000,41.00000000],[1784545695000,40.20000000],[1784546000000,40.40000000],[1784546305000,40.20000000],[1784546610000,40.50000000],[1784546854000,41.00000000],[1784547159000,40.20000000],[1784547464000,40.80000000],[1784547769000,39.20000000],[1784548074000,39.00000000],[1784548378000,38.60000000],[1784548684000,39.40000000],[1784548989000,39.40000000],[1784549294000,39.60000000],[1784549599000,39.20000000],[1784549904000,39.00000000],[1784550208000,39.00000000],[1784550453000,38.80000000],[1784550758000,38.20000000],[1784551063000,38.40000000],[1784551368000,38.00000000],[1784551673000,37.60000000],[1784551978000,38.20000000],[1784552284000,38.80000000],[1784552588000,38.00000000],[1784552893000,39.00000000],[1784553198000,38.00000000],[1784553503000,38.00000000],[1784553810000,38.00000000],[1784554055000,37.40000000],[1784554357000,38.00000000],[1784554662000,38.00000000],[1784554967000,37.80000000],[1784555272000,38.00000000],[1784555577000,37.80000000],[1784555881000,39.00000000],[1784556187000,38.00000000],[1784556492000,38.40000000],[1784556797000,38.40000000],[1784557102000,38.60000000],[1784557407000,39.25000000],[1784557651000,38.80000000],[1784557957000,39.00000000],[1784558261000,39.60000000],[1784558566000,40.20000000],[1784558871000,40.40000000],[1784559176000,39.80000000],[1784559481000,40.00000000],[1784559786000,40.00000000],[1784560091000,40.60000000],[1784560396000,40.80000000],[1784560701000,40.80000000],[1784561006000,41.25000000],[1784561250000,41.80000000],[1784561554000,40.80000000],[1784561860000,41.25000000],[1784562165000,40.20000000],[1784562470000,40.40000000],[1784562775000,40.00000000],[1784563080000,39.60000000],[1784563389000,40.80000000],[1784563690000,41.40000000],[1784563995000,41.40000000],[1784564300000,42.20000000],[1784564605000,42.00000000],[1784564910000,41.25000000],[1784565154000,42.00000000],[1784565459000,42.00000000],[1784565764000,42.50000000],], 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: [[1784498418000,1017.2],[1784498601000,1017.3],[1784498855000,1017.3],[1784499210000,1017.2],[1784499455000,1017.3],[1784499760000,1017.1],[1784500065000,1017.2],[1784500370000,1017.3],[1784500675000,1017.3],[1784500980000,1017.3],[1784501285000,1017.3],[1784501590000,1017.4],[1784501895000,1017.4],[1784502200000,1017.5],[1784502505000,1017.4],[1784502810000,1017.4],[1784503054000,1017.5],[1784503359000,1017.5],[1784503664000,1017.7],[1784503969000,1017.6],[1784504274000,1017.7],[1784504579000,1017.6],[1784504883000,1017.7],[1784505189000,1017.7],[1784505494000,1017.8],[1784505799000,1017.8],[1784506104000,1017.7],[1784506409000,1017.7],[1784506653000,1017.8],[1784506958000,1017.8],[1784507263000,1017.9],[1784507568000,1017.9],[1784507873000,1017.9],[1784508178000,1017.8],[1784508484000,1017.9],[1784508789000,1017.9],[1784509093000,1017.8],[1784509398000,1017.8],[1784509703000,1017.8],[1784510008000,1017.8],[1784510252000,1017.8],[1784510561000,1017.8],[1784510862000,1017.8],[1784511167000,1017.8],[1784511472000,1017.9],[1784511777000,1017.8],[1784512082000,1018],[1784512387000,1017.9],[1784512692000,1017.9],[1784512997000,1018],[1784513302000,1018],[1784513607000,1018.1],[1784513851000,1018],[1784514157000,1018.1],[1784514462000,1018.1],[1784514767000,1018.2],[1784515071000,1018.2],[1784515376000,1018.3],[1784515682000,1018.4],[1784515986000,1018.4],[1784516291000,1018.5],[1784516596000,1018.6],[1784516902000,1018.6],[1784517207000,1018.6],[1784517451000,1018.6],[1784517756000,1018.8],[1784518060000,1018.7],[1784518366000,1018.9],[1784518671000,1018.9],[1784518976000,1018.8],[1784519281000,1018.9],[1784519586000,1018.9],[1784519891000,1018.9],[1784520196000,1019],[1784520501000,1019],[1784520806000,1018.9],[1784521050000,1018.9],[1784521355000,1019],[1784521660000,1019.1],[1784521965000,1019.1],[1784522270000,1019.1],[1784522575000,1019.1],[1784522880000,1019],[1784523185000,1019.1],[1784523490000,1019.2],[1784523794000,1019.1],[1784524100000,1019.1],[1784524405000,1019.2],[1784524710000,1019.1],[1784524954000,1019.1],[1784525260000,1019.2],[1784525564000,1019.2],[1784525869000,1019.3],[1784526174000,1019.3],[1784526479000,1019.4],[1784526784000,1019.3],[1784527089000,1019.4],[1784527394000,1019.3],[1784527700000,1019.3],[1784528004000,1019.4],[1784528309000,1019.5],[1784528553000,1019.5],[1784528858000,1019.6],[1784529163000,1019.5],[1784529467000,1019.6],[1784529773000,1019.6],[1784530078000,1019.6],[1784530383000,1019.7],[1784530692000,1019.8],[1784530993000,1019.7],[1784531298000,1019.7],[1784531603000,1019.7],[1784531908000,1019.8],[1784532152000,1019.6],[1784532457000,1019.6],[1784532762000,1019.5],[1784533066000,1019.5],[1784533373000,1019.6],[1784533677000,1019.5],[1784533982000,1019.6],[1784534291000,1019.6],[1784534592000,1019.6],[1784534897000,1019.6],[1784535202000,1019.5],[1784535507000,1019.7],[1784535751000,1019.5],[1784536056000,1019.5],[1784536361000,1019.7],[1784536666000,1019.7],[1784536971000,1019.6],[1784537276000,1019.6],[1784537581000,1019.7],[1784537886000,1019.6],[1784538191000,1019.6],[1784538496000,1019.5],[1784538802000,1019.4],[1784539106000,1019.5],[1784539350000,1019.6],[1784539655000,1019.7],[1784539960000,1019.7],[1784540265000,1019.5],[1784540570000,1019.5],[1784540875000,1019.4],[1784541180000,1019.4],[1784541485000,1019.3],[1784541791000,1019.4],[1784542095000,1019.4],[1784542401000,1019.3],[1784542705000,1019.3],[1784542950000,1019.3],[1784543255000,1019.1],[1784543560000,1019.2],[1784543865000,1019.2],[1784544170000,1019.1],[1784544475000,1019],[1784544780000,1019.1],[1784545085000,1018.9],[1784545390000,1018.9],[1784545695000,1018.9],[1784546000000,1018.9],[1784546305000,1018.9],[1784546610000,1018.9],[1784546854000,1018.8],[1784547159000,1018.9],[1784547464000,1018.7],[1784547769000,1018.7],[1784548074000,1018.6],[1784548378000,1018.6],[1784548684000,1018.6],[1784548989000,1018.6],[1784549294000,1018.7],[1784549599000,1018.5],[1784549904000,1018.4],[1784550208000,1018.4],[1784550453000,1018.3],[1784550758000,1018.5],[1784551063000,1018.4],[1784551368000,1018.3],[1784551673000,1018.3],[1784551978000,1018.3],[1784552284000,1018.2],[1784552588000,1018.1],[1784552893000,1018.3],[1784553198000,1018.1],[1784553503000,1018],[1784553810000,1018],[1784554055000,1018],[1784554357000,1018],[1784554662000,1018],[1784554967000,1018],[1784555272000,1017.9],[1784555577000,1018],[1784555881000,1017.9],[1784556187000,1017.8],[1784556492000,1017.6],[1784556797000,1017.6],[1784557102000,1017.6],[1784557407000,1017.5],[1784557651000,1017.5],[1784557957000,1017.4],[1784558261000,1017.5],[1784558566000,1017.5],[1784558871000,1017.6],[1784559176000,1017.5],[1784559481000,1017.5],[1784559786000,1017.5],[1784560091000,1017.5],[1784560396000,1017.5],[1784560701000,1017.6],[1784561006000,1017.5],[1784561250000,1017.7],[1784561554000,1017.6],[1784561860000,1017.5],[1784562165000,1017.6],[1784562470000,1017.5],[1784562775000,1017.6],[1784563080000,1017.6],[1784563389000,1017.7],[1784563690000,1017.6],[1784563995000,1017.7],[1784564300000,1017.6],[1784564605000,1017.5],[1784564910000,1017.7],[1784565154000,1017.6],[1784565459000,1017.6],[1784565764000,1017.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: [[1784498418000,12.24],[1784498601000,10.08],[1784498855000,10.919999988],[1784499210000,9.63],[1784499455000,9.936],[1784499760000,7.344],[1784500065000,6.624],[1784500370000,7.776],[1784500675000,8.928],[1784500980000,6.264],[1784501285000,6.624],[1784501590000,9.648],[1784501895000,8.208],[1784502200000,7.56],[1784502505000,6.552],[1784502810000,7.2],[1784503054000,6.552],[1784503359000,6.264],[1784503664000,10.584],[1784503969000,8.136],[1784504274000,9.144],[1784504579000,8.928],[1784504883000,6.048],[1784505189000,5.544],[1784505494000,6.264],[1784505799000,7.632],[1784506104000,8.496],[1784506409000,9.18],[1784506653000,8.28],[1784506958000,9.144],[1784507263000,7.2],[1784507568000,7.416],[1784507873000,10.152],[1784508178000,10.296],[1784508484000,12.384],[1784508789000,9.72],[1784509093000,7.992],[1784509398000,9.864],[1784509703000,7.56],[1784510008000,10.53],[1784510252000,7.344],[1784510561000,8.208],[1784510862000,6.768],[1784511167000,4.608],[1784511472000,3.96],[1784511777000,4.68],[1784512082000,1.872],[1784512387000,2.88],[1784512692000,0.504],[1784512997000,4.608],[1784513302000,4.32],[1784513607000,0.18],[1784513851000,2.304],[1784514157000,3.456],[1784514462000,2.16],[1784514767000,3.312],[1784515071000,1.224],[1784515376000,3.312],[1784515682000,4.104],[1784515986000,3.384],[1784516291000,2.736],[1784516596000,1.008],[1784516902000,1.944],[1784517207000,3.33],[1784517451000,1.368],[1784517756000,0],[1784518060000,1.872],[1784518366000,4.86],[1784518671000,5.976],[1784518976000,4.968],[1784519281000,4.464],[1784519586000,5.688],[1784519891000,3.888],[1784520196000,5.76],[1784520501000,6.12],[1784520806000,6.93],[1784521050000,5.832],[1784521355000,8.064],[1784521660000,7.848],[1784521965000,9.072],[1784522270000,10.152],[1784522575000,7.992],[1784522880000,10.584],[1784523185000,7.776],[1784523490000,5.544],[1784523794000,8.28],[1784524100000,6.768],[1784524405000,7.992],[1784524710000,8.28],[1784524954000,9.072],[1784525260000,7.56],[1784525564000,10.44],[1784525869000,11.808],[1784526174000,12.816],[1784526479000,11.664],[1784526784000,10.368],[1784527089000,12.6],[1784527394000,12.384],[1784527700000,11.88],[1784528004000,14.4],[1784528309000,16.74],[1784528553000,13.824],[1784528858000,13.464],[1784529163000,9.288],[1784529467000,9.432],[1784529773000,11.52],[1784530078000,15.552],[1784530383000,13.968],[1784530692000,8.424],[1784530993000,16.416],[1784531298000,8.136],[1784531603000,6.984],[1784531908000,11.16],[1784532152000,6.552],[1784532457000,12.456],[1784532762000,7.992],[1784533066000,16.848],[1784533373000,11.016],[1784533677000,9.432],[1784533982000,10.152],[1784534291000,12.312],[1784534592000,13.608],[1784534897000,15.912],[1784535202000,13.248],[1784535507000,17.46],[1784535751000,13.392],[1784536056000,16.776],[1784536361000,15.48],[1784536666000,14.832],[1784536971000,16.992],[1784537276000,19.08],[1784537581000,12.744],[1784537886000,9.36],[1784538191000,15.912],[1784538496000,11.376],[1784538802000,15.048],[1784539106000,16.2],[1784539350000,14.832],[1784539655000,22.104],[1784539960000,19.872],[1784540265000,18.72],[1784540570000,18.288],[1784540875000,17.424],[1784541180000,13.176],[1784541485000,17.352],[1784541791000,15.12],[1784542095000,16.992],[1784542401000,17.928],[1784542705000,16.56],[1784542950000,15.336],[1784543255000,8.928],[1784543560000,19.224],[1784543865000,11.88],[1784544170000,16.848],[1784544475000,22.464],[1784544780000,16.848],[1784545085000,13.824],[1784545390000,16.848],[1784545695000,18.792],[1784546000000,22.824],[1784546305000,18.144],[1784546610000,19.71],[1784546854000,18.504],[1784547159000,22.464],[1784547464000,16.56],[1784547769000,17.28],[1784548074000,12.24],[1784548378000,17.712],[1784548684000,17.856],[1784548989000,15.696],[1784549294000,15.984],[1784549599000,13.536],[1784549904000,19.584],[1784550208000,13.05],[1784550453000,17.28],[1784550758000,14.904],[1784551063000,16.128],[1784551368000,21.528],[1784551673000,20.808],[1784551978000,17.928],[1784552284000,13.896],[1784552588000,23.904],[1784552893000,14.184],[1784553198000,6.768],[1784553503000,13.536],[1784553810000,13.68],[1784554055000,14.472],[1784554357000,12.384],[1784554662000,13.824],[1784554967000,19.728],[1784555272000,12.816],[1784555577000,15.912],[1784555881000,14.472],[1784556187000,14.256],[1784556492000,7.128],[1784556797000,11.448],[1784557102000,12.168],[1784557407000,9.72],[1784557651000,16.2],[1784557957000,15.048],[1784558261000,17.352],[1784558566000,13.68],[1784558871000,13.608],[1784559176000,13.464],[1784559481000,10.8],[1784559786000,11.376],[1784560091000,9.792],[1784560396000,14.256],[1784560701000,11.376],[1784561006000,11.88],[1784561250000,11.664],[1784561554000,10.152],[1784561860000,10.53],[1784562165000,12.6],[1784562470000,12.672],[1784562775000,12.456],[1784563080000,10.584],[1784563389000,13.608],[1784563690000,11.88],[1784563995000,14.832],[1784564300000,11.808],[1784564605000,13.968],[1784564910000,10.8],[1784565154000,9.432],[1784565459000,8.136],[1784565764000,10.35],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1784498418000,15.360000012],[1784498601000,16.11],[1784498855000,15.900000012],[1784499210000,15.48],[1784499455000,12.24],[1784499760000,16.488],[1784500065000,12.384],[1784500370000,13.392],[1784500675000,13.896],[1784500980000,10.224],[1784501285000,10.224],[1784501590000,13.464],[1784501895000,13.896],[1784502200000,12.384],[1784502505000,11.736],[1784502810000,9.45],[1784503054000,11.232],[1784503359000,10.152],[1784503664000,14.976],[1784503969000,12.384],[1784504274000,13.392],[1784504579000,15.408],[1784504883000,8.136],[1784505189000,9.648],[1784505494000,8.568],[1784505799000,13.392],[1784506104000,12.888],[1784506409000,13.41],[1784506653000,13.392],[1784506958000,12.888],[1784507263000,10.656],[1784507568000,12.816],[1784507873000,14.904],[1784508178000,16.992],[1784508484000,18.504],[1784508789000,16.488],[1784509093000,12.888],[1784509398000,13.464],[1784509703000,13.464],[1784510008000,16.11],[1784510252000,10.656],[1784510561000,13.392],[1784510862000,12.312],[1784511167000,9.144],[1784511472000,7.56],[1784511777000,7.056],[1784512082000,6.552],[1784512387000,7.056],[1784512692000,3.528],[1784512997000,9.216],[1784513302000,8.064],[1784513607000,3.15],[1784513851000,4.536],[1784514157000,6.048],[1784514462000,4.536],[1784514767000,4.536],[1784515071000,3.528],[1784515376000,5.04],[1784515682000,8.064],[1784515986000,5.04],[1784516291000,5.04],[1784516596000,5.544],[1784516902000,3.024],[1784517207000,5.04],[1784517451000,4.032],[1784517756000,1.008],[1784518060000,4.536],[1784518366000,8.82],[1784518671000,9.576],[1784518976000,9.072],[1784519281000,7.056],[1784519586000,7.128],[1784519891000,7.632],[1784520196000,9.576],[1784520501000,11.304],[1784520806000,12.78],[1784521050000,9.072],[1784521355000,12.384],[1784521660000,13.968],[1784521965000,15.984],[1784522270000,13.464],[1784522575000,12.888],[1784522880000,14.976],[1784523185000,12.96],[1784523490000,10.152],[1784523794000,12.384],[1784524100000,13.32],[1784524405000,12.312],[1784524710000,12.87],[1784524954000,12.96],[1784525260000,14.472],[1784525564000,14.976],[1784525869000,17.496],[1784526174000,17.496],[1784526479000,17.496],[1784526784000,17.496],[1784527089000,15.984],[1784527394000,20.016],[1784527700000,17.496],[1784528004000,20.016],[1784528309000,21.78],[1784528553000,20.52],[1784528858000,21.024],[1784529163000,18],[1784529467000,13.896],[1784529773000,18],[1784530078000,23.04],[1784530383000,20.016],[1784530692000,17.496],[1784530993000,22.536],[1784531298000,18.504],[1784531603000,13.392],[1784531908000,19.89],[1784532152000,11.736],[1784532457000,19.512],[1784532762000,16.992],[1784533066000,22.536],[1784533373000,18.936],[1784533677000,17.496],[1784533982000,18.936],[1784534291000,22.536],[1784534592000,24.048],[1784534897000,26.064],[1784535202000,23.04],[1784535507000,23.04],[1784535751000,23.04],[1784536056000,30.6],[1784536361000,24.552],[1784536666000,26.064],[1784536971000,26.568],[1784537276000,29.592],[1784537581000,22.536],[1784537886000,13.824],[1784538191000,23.04],[1784538496000,23.544],[1784538802000,23.544],[1784539106000,25.56],[1784539350000,28.08],[1784539655000,32.112],[1784539960000,29.592],[1784540265000,29.592],[1784540570000,37.296],[1784540875000,27.576],[1784541180000,26.568],[1784541485000,25.56],[1784541791000,28.08],[1784542095000,28.08],[1784542401000,25.128],[1784542705000,29.43],[1784542950000,23.544],[1784543255000,17.496],[1784543560000,29.088],[1784543865000,21.024],[1784544170000,28.584],[1784544475000,34.776],[1784544780000,29.088],[1784545085000,22.536],[1784545390000,27.072],[1784545695000,29.088],[1784546000000,31.104],[1784546305000,30.744],[1784546610000,31.23],[1784546854000,31.608],[1784547159000,36.288],[1784547464000,26.568],[1784547769000,30.744],[1784548074000,23.112],[1784548378000,28.656],[1784548684000,33.696],[1784548989000,26.568],[1784549294000,32.616],[1784549599000,26.064],[1784549904000,29.088],[1784550208000,22.41],[1784550453000,26.064],[1784550758000,26.568],[1784551063000,27.648],[1784551368000,31.176],[1784551673000,33.84],[1784551978000,36.792],[1784552284000,26.568],[1784552588000,37.368],[1784552893000,27.072],[1784553198000,13.32],[1784553503000,24.048],[1784553810000,24.93],[1784554055000,22.536],[1784554357000,19.512],[1784554662000,22.536],[1784554967000,27.576],[1784555272000,19.512],[1784555577000,26.064],[1784555881000,21.528],[1784556187000,26.064],[1784556492000,15.48],[1784556797000,16.992],[1784557102000,22.032],[1784557407000,17.91],[1784557651000,22.536],[1784557957000,25.056],[1784558261000,28.08],[1784558566000,21.528],[1784558871000,20.016],[1784559176000,20.52],[1784559481000,19.008],[1784559786000,21.528],[1784560091000,14.904],[1784560396000,21.528],[1784560701000,21.024],[1784561006000,16.11],[1784561250000,19.008],[1784561554000,16.992],[1784561860000,14.76],[1784562165000,20.016],[1784562470000,18],[1784562775000,19.512],[1784563080000,19.008],[1784563389000,21.528],[1784563690000,19.512],[1784563995000,23.544],[1784564300000,20.016],[1784564605000,19.512],[1784564910000,16.11],[1784565154000,13.896],[1784565459000,15.912],[1784565764000,14.85],], 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: [[1784498418000,241.66666667],[1784498601000,262.75000000],[1784498855000,264.00000000],[1784499210000,283.25000000],[1784499455000,281.60000000],[1784499760000,247.80000000],[1784500065000,242.40000000],[1784500370000,248.20000000],[1784500675000,270.80000000],[1784500980000,243.60000000],[1784501285000,245.00000000],[1784501590000,255.40000000],[1784501895000,232.20000000],[1784502200000,246.00000000],[1784502505000,235.80000000],[1784502810000,240.50000000],[1784503054000,219.20000000],[1784503359000,235.80000000],[1784503664000,251.80000000],[1784503969000,240.80000000],[1784504274000,257.00000000],[1784504579000,259.00000000],[1784504883000,257.20000000],[1784505189000,239.40000000],[1784505494000,258.40000000],[1784505799000,267.40000000],[1784506104000,258.00000000],[1784506409000,259.75000000],[1784506653000,265.60000000],[1784506958000,274.80000000],[1784507263000,278.00000000],[1784507568000,264.80000000],[1784507873000,269.20000000],[1784508178000,265.20000000],[1784508484000,268.60000000],[1784508789000,278.00000000],[1784509093000,290.00000000],[1784509398000,291.20000000],[1784509703000,270.40000000],[1784510008000,260.00000000],[1784510252000,274.60000000],[1784510561000,263.40000000],[1784510862000,261.40000000],[1784511167000,243.00000000],[1784511472000,209.40000000],[1784511777000,222.00000000],[1784512082000,156.40000000],[1784512387000,178.80000000],[1784512692000,150.60000000],[1784512997000,242.00000000],[1784513302000,202.60000000],[1784513607000,145.50000000],[1784513851000,130.80000000],[1784514157000,129.60000000],[1784514462000,136.40000000],[1784514767000,141.80000000],[1784515071000,143.80000000],[1784515376000,145.80000000],[1784515682000,145.60000000],[1784515986000,127.00000000],[1784516291000,100.80000000],[1784516596000,132.40000000],[1784516902000,126.00000000],[1784517207000,97.00000000],[1784517451000,131.80000000],[1784517756000,140.40000000],[1784518060000,173.00000000],[1784518366000,197.50000000],[1784518671000,171.80000000],[1784518976000,121.40000000],[1784519281000,181.40000000],[1784519586000,295.60000000],[1784519891000,161.00000000],[1784520196000,214.40000000],[1784520501000,264.80000000],[1784520806000,272.75000000],[1784521050000,224.80000000],[1784521355000,278.20000000],[1784521660000,255.20000000],[1784521965000,278.40000000],[1784522270000,271.60000000],[1784522575000,251.80000000],[1784522880000,279.00000000],[1784523185000,260.80000000],[1784523490000,298.20000000],[1784523794000,257.80000000],[1784524100000,209.40000000],[1784524405000,194.20000000],[1784524710000,253.50000000],[1784524954000,255.40000000],[1784525260000,272.40000000],[1784525564000,274.40000000],[1784525869000,279.60000000],[1784526174000,279.40000000],[1784526479000,286.00000000],[1784526784000,276.60000000],[1784527089000,278.20000000],[1784527394000,264.20000000],[1784527700000,252.60000000],[1784528004000,281.20000000],[1784528309000,285.50000000],[1784528553000,278.00000000],[1784528858000,269.80000000],[1784529163000,209.40000000],[1784529467000,281.20000000],[1784529773000,232.00000000],[1784530078000,269.40000000],[1784530383000,286.80000000],[1784530692000,223.40000000],[1784530993000,292.60000000],[1784531298000,158.60000000],[1784531603000,222.80000000],[1784531908000,277.00000000],[1784532152000,220.00000000],[1784532457000,263.80000000],[1784532762000,189.00000000],[1784533066000,288.00000000],[1784533373000,259.00000000],[1784533677000,199.00000000],[1784533982000,172.20000000],[1784534291000,284.00000000],[1784534592000,302.00000000],[1784534897000,283.40000000],[1784535202000,200.00000000],[1784535507000,283.50000000],[1784535751000,281.80000000],[1784536056000,271.40000000],[1784536361000,252.20000000],[1784536666000,233.20000000],[1784536971000,262.20000000],[1784537276000,284.40000000],[1784537581000,237.60000000],[1784537886000,262.60000000],[1784538191000,287.60000000],[1784538496000,232.60000000],[1784538802000,281.40000000],[1784539106000,305.50000000],[1784539350000,284.60000000],[1784539655000,279.40000000],[1784539960000,298.20000000],[1784540265000,294.80000000],[1784540570000,283.60000000],[1784540875000,250.60000000],[1784541180000,172.40000000],[1784541485000,301.40000000],[1784541791000,138.80000000],[1784542095000,252.40000000],[1784542401000,291.80000000],[1784542705000,308.75000000],[1784542950000,269.00000000],[1784543255000,229.20000000],[1784543560000,287.20000000],[1784543865000,206.00000000],[1784544170000,224.20000000],[1784544475000,260.80000000],[1784544780000,231.60000000],[1784545085000,229.20000000],[1784545390000,242.60000000],[1784545695000,297.80000000],[1784546000000,284.20000000],[1784546305000,314.20000000],[1784546610000,279.25000000],[1784546854000,286.00000000],[1784547159000,296.00000000],[1784547464000,295.60000000],[1784547769000,234.60000000],[1784548074000,128.00000000],[1784548378000,248.80000000],[1784548684000,275.40000000],[1784548989000,280.00000000],[1784549294000,294.00000000],[1784549599000,277.20000000],[1784549904000,241.80000000],[1784550208000,256.00000000],[1784550453000,267.40000000],[1784550758000,245.40000000],[1784551063000,283.80000000],[1784551368000,272.20000000],[1784551673000,197.60000000],[1784551978000,289.40000000],[1784552284000,271.20000000],[1784552588000,275.80000000],[1784552893000,241.80000000],[1784553198000,142.60000000],[1784553503000,277.80000000],[1784553810000,298.00000000],[1784554055000,304.00000000],[1784554357000,272.40000000],[1784554662000,274.40000000],[1784554967000,279.40000000],[1784555272000,184.80000000],[1784555577000,316.80000000],[1784555881000,274.80000000],[1784556187000,293.60000000],[1784556492000,222.80000000],[1784556797000,273.60000000],[1784557102000,322.20000000],[1784557407000,207.00000000],[1784557651000,281.40000000],[1784557957000,243.00000000],[1784558261000,290.20000000],[1784558566000,274.60000000],[1784558871000,249.80000000],[1784559176000,232.00000000],[1784559481000,179.40000000],[1784559786000,297.80000000],[1784560091000,316.40000000],[1784560396000,303.60000000],[1784560701000,281.80000000],[1784561006000,296.75000000],[1784561250000,278.80000000],[1784561554000,243.00000000],[1784561860000,268.75000000],[1784562165000,307.40000000],[1784562470000,215.80000000],[1784562775000,287.60000000],[1784563080000,226.40000000],[1784563389000,278.80000000],[1784563690000,269.80000000],[1784563995000,278.40000000],[1784564300000,276.00000000],[1784564605000,271.80000000],[1784564910000,256.50000000],[1784565154000,263.40000000],[1784565459000,289.80000000],[1784565764000,250.50000000],], 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: [[1784498418000,0.00000000],[1784498601000,0.00000000],[1784498855000,0.00000000],[1784499210000,0.00000000],[1784499455000,0.00000000],[1784499760000,0.00000000],[1784500065000,0.00000000],[1784500370000,0.00000000],[1784500675000,0.00000000],[1784500980000,0.00000000],[1784501285000,0.00000000],[1784501590000,0.00000000],[1784501895000,0.00000000],[1784502200000,0.00000000],[1784502505000,0.00000000],[1784502810000,0.00000000],[1784503054000,0.00000000],[1784503359000,0.00000000],[1784503664000,0.00000000],[1784503969000,0.00000000],[1784504274000,0.00000000],[1784504579000,0.00000000],[1784504883000,0.00000000],[1784505189000,0.00000000],[1784505494000,0.00000000],[1784505799000,0.00000000],[1784506104000,0.00000000],[1784506409000,0.00000000],[1784506653000,0.00000000],[1784506958000,0.00000000],[1784507263000,0.00000000],[1784507568000,0.00000000],[1784507873000,0.00000000],[1784508178000,0.00000000],[1784508484000,0.00000000],[1784508789000,0.00000000],[1784509093000,0.00000000],[1784509398000,0.00000000],[1784509703000,0.00000000],[1784510008000,0.00000000],[1784510252000,0.00000000],[1784510561000,0.00000000],[1784510862000,0.00000000],[1784511167000,0.00000000],[1784511472000,0.00000000],[1784511777000,0.00000000],[1784512082000,0.00000000],[1784512387000,0.00000000],[1784512692000,0.00000000],[1784512997000,0.00000000],[1784513302000,0.00000000],[1784513607000,0.00000000],[1784513851000,0.00000000],[1784514157000,0.00000000],[1784514462000,0.00000000],[1784514767000,0.00000000],[1784515071000,0.00000000],[1784515376000,0.00000000],[1784515682000,0.40000000],[1784515986000,1.00000000],[1784516291000,1.40000000],[1784516596000,2.40000000],[1784516902000,3.60000000],[1784517207000,5.25000000],[1784517451000,7.00000000],[1784517756000,9.40000000],[1784518060000,12.20000000],[1784518366000,14.75000000],[1784518671000,18.00000000],[1784518976000,21.00000000],[1784519281000,24.20000000],[1784519586000,27.60000000],[1784519891000,31.40000000],[1784520196000,35.40000000],[1784520501000,40.00000000],[1784520806000,44.75000000],[1784521050000,49.40000000],[1784521355000,56.00000000],[1784521660000,61.40000000],[1784521965000,68.00000000],[1784522270000,74.80000000],[1784522575000,82.00000000],[1784522880000,90.20000000],[1784523185000,96.80000000],[1784523490000,105.00000000],[1784523794000,114.20000000],[1784524100000,123.00000000],[1784524405000,131.80000000],[1784524710000,140.25000000],[1784524954000,149.00000000],[1784525260000,160.00000000],[1784525564000,170.00000000],[1784525869000,180.60000000],[1784526174000,191.20000000],[1784526479000,202.00000000],[1784526784000,212.80000000],[1784527089000,224.00000000],[1784527394000,235.00000000],[1784527700000,247.60000000],[1784528004000,262.00000000],[1784528309000,272.75000000],[1784528553000,284.80000000],[1784528858000,296.80000000],[1784529163000,308.40000000],[1784529467000,320.40000000],[1784529773000,331.60000000],[1784530078000,344.80000000],[1784530383000,357.60000000],[1784530692000,370.20000000],[1784530993000,381.20000000],[1784531298000,393.80000000],[1784531603000,403.80000000],[1784531908000,413.25000000],[1784532152000,425.00000000],[1784532457000,438.00000000],[1784532762000,451.00000000],[1784533066000,463.60000000],[1784533373000,473.60000000],[1784533677000,486.60000000],[1784533982000,497.20000000],[1784534291000,508.60000000],[1784534592000,514.40000000],[1784534897000,526.00000000],[1784535202000,535.80000000],[1784535507000,541.50000000],[1784535751000,551.20000000],[1784536056000,562.00000000],[1784536361000,573.20000000],[1784536666000,581.40000000],[1784536971000,588.60000000],[1784537276000,596.60000000],[1784537581000,599.80000000],[1784537886000,613.60000000],[1784538191000,624.80000000],[1784538496000,620.20000000],[1784538802000,623.60000000],[1784539106000,632.50000000],[1784539350000,638.80000000],[1784539655000,651.60000000],[1784539960000,656.40000000],[1784540265000,667.40000000],[1784540570000,673.20000000],[1784540875000,665.40000000],[1784541180000,681.20000000],[1784541485000,679.00000000],[1784541791000,698.20000000],[1784542095000,508.60000000],[1784542401000,684.00000000],[1784542705000,684.75000000],[1784542950000,695.00000000],[1784543255000,531.40000000],[1784543560000,699.80000000],[1784543865000,688.00000000],[1784544170000,687.40000000],[1784544475000,721.60000000],[1784544780000,408.00000000],[1784545085000,684.60000000],[1784545390000,703.00000000],[1784545695000,704.60000000],[1784546000000,686.60000000],[1784546305000,715.60000000],[1784546610000,734.00000000],[1784546854000,307.60000000],[1784547159000,625.60000000],[1784547464000,697.60000000],[1784547769000,703.00000000],[1784548074000,599.20000000],[1784548378000,537.60000000],[1784548684000,466.00000000],[1784548989000,674.80000000],[1784549294000,474.60000000],[1784549599000,675.20000000],[1784549904000,510.00000000],[1784550208000,649.75000000],[1784550453000,653.40000000],[1784550758000,638.60000000],[1784551063000,667.80000000],[1784551368000,654.60000000],[1784551673000,635.60000000],[1784551978000,600.20000000],[1784552284000,474.40000000],[1784552588000,642.20000000],[1784552893000,539.80000000],[1784553198000,479.20000000],[1784553503000,591.40000000],[1784553810000,566.50000000],[1784554055000,552.00000000],[1784554357000,554.80000000],[1784554662000,540.00000000],[1784554967000,523.80000000],[1784555272000,512.00000000],[1784555577000,369.00000000],[1784555881000,371.40000000],[1784556187000,458.60000000],[1784556492000,443.40000000],[1784556797000,424.60000000],[1784557102000,447.40000000],[1784557407000,379.50000000],[1784557651000,278.40000000],[1784557957000,333.80000000],[1784558261000,230.00000000],[1784558566000,319.00000000],[1784558871000,242.40000000],[1784559176000,367.00000000],[1784559481000,348.20000000],[1784559786000,253.60000000],[1784560091000,213.00000000],[1784560396000,205.40000000],[1784560701000,201.40000000],[1784561006000,171.75000000],[1784561250000,207.00000000],[1784561554000,165.80000000],[1784561860000,190.25000000],[1784562165000,270.40000000],[1784562470000,261.80000000],[1784562775000,240.20000000],[1784563080000,221.80000000],[1784563389000,219.80000000],[1784563690000,209.80000000],[1784563995000,192.80000000],[1784564300000,156.40000000],[1784564605000,160.80000000],[1784564910000,166.00000000],[1784565154000,129.60000000],[1784565459000,114.20000000],[1784565764000,100.25000000],], 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: [[1784498418000,0.00000000],[1784498601000,0.00000000],[1784498855000,0.00000000],[1784499210000,0.00000000],[1784499455000,0.00000000],[1784499760000,0.00000000],[1784500065000,0.00000000],[1784500370000,0.00000000],[1784500675000,0.00000000],[1784500980000,0.00000000],[1784501285000,0.00000000],[1784501590000,0.00000000],[1784501895000,0.00000000],[1784502200000,0.00000000],[1784502505000,0.00000000],[1784502810000,0.00000000],[1784503054000,0.00000000],[1784503359000,0.00000000],[1784503664000,0.00000000],[1784503969000,0.00000000],[1784504274000,0.00000000],[1784504579000,0.00000000],[1784504883000,0.00000000],[1784505189000,0.00000000],[1784505494000,0.00000000],[1784505799000,0.00000000],[1784506104000,0.00000000],[1784506409000,0.00000000],[1784506653000,0.00000000],[1784506958000,0.00000000],[1784507263000,0.00000000],[1784507568000,0.00000000],[1784507873000,0.00000000],[1784508178000,0.00000000],[1784508484000,0.00000000],[1784508789000,0.00000000],[1784509093000,0.00000000],[1784509398000,0.00000000],[1784509703000,0.00000000],[1784510008000,0.00000000],[1784510252000,0.00000000],[1784510561000,0.00000000],[1784510862000,0.00000000],[1784511167000,0.00000000],[1784511472000,0.00000000],[1784511777000,0.00000000],[1784512082000,0.00000000],[1784512387000,0.00000000],[1784512692000,0.00000000],[1784512997000,0.00000000],[1784513302000,0.00000000],[1784513607000,0.00000000],[1784513851000,0.00000000],[1784514157000,0.00000000],[1784514462000,0.00000000],[1784514767000,0.00000000],[1784515071000,0.00000000],[1784515376000,0.00000000],[1784515682000,0.00000000],[1784515986000,0.00000000],[1784516291000,0.00000000],[1784516596000,0.00000000],[1784516902000,0.00000000],[1784517207000,0.00000000],[1784517451000,0.00000000],[1784517756000,0.00000000],[1784518060000,0.00000000],[1784518366000,0.00000000],[1784518671000,0.00000000],[1784518976000,0.00000000],[1784519281000,0.00000000],[1784519586000,0.00000000],[1784519891000,0.00000000],[1784520196000,0.00000000],[1784520501000,0.00000000],[1784520806000,0.00000000],[1784521050000,0.00000000],[1784521355000,0.00000000],[1784521660000,0.00000000],[1784521965000,0.00000000],[1784522270000,0.00000000],[1784522575000,0.00000000],[1784522880000,0.00000000],[1784523185000,0.00000000],[1784523490000,0.80000000],[1784523794000,1.00000000],[1784524100000,1.00000000],[1784524405000,1.00000000],[1784524710000,1.00000000],[1784524954000,1.00000000],[1784525260000,1.00000000],[1784525564000,1.00000000],[1784525869000,1.00000000],[1784526174000,1.00000000],[1784526479000,1.20000000],[1784526784000,2.00000000],[1784527089000,2.00000000],[1784527394000,2.00000000],[1784527700000,2.00000000],[1784528004000,2.00000000],[1784528309000,2.00000000],[1784528553000,2.00000000],[1784528858000,2.00000000],[1784529163000,2.60000000],[1784529467000,3.00000000],[1784529773000,3.00000000],[1784530078000,3.00000000],[1784530383000,3.00000000],[1784530692000,3.00000000],[1784530993000,3.00000000],[1784531298000,3.00000000],[1784531603000,3.00000000],[1784531908000,4.00000000],[1784532152000,4.00000000],[1784532457000,4.00000000],[1784532762000,4.00000000],[1784533066000,4.00000000],[1784533373000,4.00000000],[1784533677000,4.00000000],[1784533982000,4.00000000],[1784534291000,4.00000000],[1784534592000,4.80000000],[1784534897000,5.00000000],[1784535202000,5.00000000],[1784535507000,5.00000000],[1784535751000,5.00000000],[1784536056000,5.00000000],[1784536361000,5.00000000],[1784536666000,5.00000000],[1784536971000,5.00000000],[1784537276000,5.00000000],[1784537581000,5.00000000],[1784537886000,5.60000000],[1784538191000,5.80000000],[1784538496000,6.00000000],[1784538802000,6.00000000],[1784539106000,6.00000000],[1784539350000,6.00000000],[1784539655000,6.00000000],[1784539960000,6.00000000],[1784540265000,6.00000000],[1784540570000,6.00000000],[1784540875000,6.00000000],[1784541180000,6.00000000],[1784541485000,6.00000000],[1784541791000,6.00000000],[1784542095000,4.20000000],[1784542401000,6.00000000],[1784542705000,6.00000000],[1784542950000,6.00000000],[1784543255000,4.60000000],[1784543560000,6.20000000],[1784543865000,6.00000000],[1784544170000,6.00000000],[1784544475000,6.60000000],[1784544780000,3.60000000],[1784545085000,5.80000000],[1784545390000,6.00000000],[1784545695000,6.00000000],[1784546000000,6.20000000],[1784546305000,6.20000000],[1784546610000,7.00000000],[1784546854000,2.60000000],[1784547159000,5.80000000],[1784547464000,6.00000000],[1784547769000,6.00000000],[1784548074000,5.00000000],[1784548378000,4.60000000],[1784548684000,4.00000000],[1784548989000,6.00000000],[1784549294000,4.00000000],[1784549599000,6.00000000],[1784549904000,4.60000000],[1784550208000,6.00000000],[1784550453000,6.00000000],[1784550758000,6.00000000],[1784551063000,6.00000000],[1784551368000,5.80000000],[1784551673000,6.00000000],[1784551978000,5.40000000],[1784552284000,4.40000000],[1784552588000,6.00000000],[1784552893000,5.00000000],[1784553198000,4.00000000],[1784553503000,5.40000000],[1784553810000,5.00000000],[1784554055000,4.80000000],[1784554357000,5.00000000],[1784554662000,5.00000000],[1784554967000,4.60000000],[1784555272000,4.80000000],[1784555577000,3.00000000],[1784555881000,3.00000000],[1784556187000,4.00000000],[1784556492000,3.80000000],[1784556797000,3.80000000],[1784557102000,4.00000000],[1784557407000,3.25000000],[1784557651000,2.20000000],[1784557957000,2.80000000],[1784558261000,1.60000000],[1784558566000,2.80000000],[1784558871000,1.60000000],[1784559176000,3.00000000],[1784559481000,3.00000000],[1784559786000,2.00000000],[1784560091000,1.40000000],[1784560396000,1.40000000],[1784560701000,1.20000000],[1784561006000,1.25000000],[1784561250000,1.40000000],[1784561554000,1.20000000],[1784561860000,1.50000000],[1784562165000,2.00000000],[1784562470000,2.00000000],[1784562775000,2.00000000],[1784563080000,2.00000000],[1784563389000,2.00000000],[1784563690000,1.80000000],[1784563995000,1.00000000],[1784564300000,1.00000000],[1784564605000,1.00000000],[1784564910000,1.00000000],[1784565154000,0.60000000],[1784565459000,0.60000000],[1784565764000,0.50000000],], 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: [[1784498418000,0.00000000],[1784498601000,0.00000000],[1784498855000,0.00000000],[1784499210000,0.00000000],[1784499455000,0.00000000],[1784499760000,0.00000000],[1784500065000,0.00000000],[1784500370000,0.00000000],[1784500675000,0.00000000],[1784500980000,0.00000000],[1784501285000,0.00000000],[1784501590000,0.00000000],[1784501895000,0.00000000],[1784502200000,0.00000000],[1784502505000,0.00000000],[1784502810000,0.00000000],[1784503054000,0.00000000],[1784503359000,0.00000000],[1784503664000,0.00000000],[1784503969000,0.00000000],[1784504274000,0.00000000],[1784504579000,0.00000000],[1784504883000,0.00000000],[1784505189000,0.00000000],[1784505494000,0.00000000],[1784505799000,0.00000000],[1784506104000,0.00000000],[1784506409000,0.00000000],[1784506653000,0.00000000],[1784506958000,0.00000000],[1784507263000,0.00000000],[1784507568000,0.00000000],[1784507873000,0.00000000],[1784508178000,0.00000000],[1784508484000,0.00000000],[1784508789000,0.00000000],[1784509093000,0.00000000],[1784509398000,0.00000000],[1784509703000,0.00000000],[1784510008000,0.00000000],[1784510252000,0.00000000],[1784510561000,0.00000000],[1784510862000,0.00000000],[1784511167000,0.00000000],[1784511472000,0.00000000],[1784511777000,0.00000000],[1784512082000,0.00000000],[1784512387000,0.00000000],[1784512692000,0.00000000],[1784512997000,0.00000000],[1784513302000,0.00000000],[1784513607000,0.00000000],[1784513851000,0.00000000],[1784514157000,0.00000000],[1784514462000,0.00000000],[1784514767000,0.00000000],[1784515071000,0.00000000],[1784515376000,0.00000000],[1784515682000,0.00000000],[1784515986000,0.00000000],[1784516291000,0.00000000],[1784516596000,0.00000000],[1784516902000,0.00000000],[1784517207000,0.00000000],[1784517451000,0.00000000],[1784517756000,0.00000000],[1784518060000,0.00000000],[1784518366000,0.00000000],[1784518671000,0.00000000],[1784518976000,0.00000000],[1784519281000,0.00000000],[1784519586000,0.00000000],[1784519891000,0.00000000],[1784520196000,0.00000000],[1784520501000,0.00000000],[1784520806000,0.00000000],[1784521050000,0.00000000],[1784521355000,0.00000000],[1784521660000,0.00000000],[1784521965000,0.00000000],[1784522270000,0.00000000],[1784522575000,0.00000000],[1784522880000,0.00000000],[1784523185000,0.00000000],[1784523490000,0.00000000],[1784523794000,0.00000000],[1784524100000,0.00000000],[1784524405000,0.00000000],[1784524710000,0.00000000],[1784524954000,0.00000000],[1784525260000,0.00000000],[1784525564000,0.00000000],[1784525869000,0.00000000],[1784526174000,0.00000000],[1784526479000,0.00000000],[1784526784000,0.00000000],[1784527089000,0.00000000],[1784527394000,0.00000000],[1784527700000,0.00000000],[1784528004000,0.00000000],[1784528309000,0.00000000],[1784528553000,0.00000000],[1784528858000,0.00000000],[1784529163000,0.00000000],[1784529467000,0.00000000],[1784529773000,0.00000000],[1784530078000,0.00000000],[1784530383000,0.00000000],[1784530692000,0.00000000],[1784530993000,0.00000000],[1784531298000,0.00000000],[1784531603000,0.00000000],[1784531908000,0.00000000],[1784532152000,0.00000000],[1784532457000,0.00000000],[1784532762000,0.00000000],[1784533066000,0.00000000],[1784533373000,0.00000000],[1784533677000,0.00000000],[1784533982000,0.00000000],[1784534291000,0.00000000],[1784534592000,0.00000000],[1784534897000,0.00000000],[1784535202000,0.00000000],[1784535507000,0.00000000],[1784535751000,0.00000000],[1784536056000,0.00000000],[1784536361000,0.00000000],[1784536666000,0.00000000],[1784536971000,0.00000000],[1784537276000,0.00000000],[1784537581000,0.00000000],[1784537886000,0.00000000],[1784538191000,0.00000000],[1784538496000,0.00000000],[1784538802000,0.00000000],[1784539106000,0.00000000],[1784539350000,0.00000000],[1784539655000,0.00000000],[1784539960000,0.00000000],[1784540265000,0.00000000],[1784540570000,0.00000000],[1784540875000,0.00000000],[1784541180000,0.00000000],[1784541485000,0.00000000],[1784541791000,0.00000000],[1784542095000,0.00000000],[1784542401000,0.00000000],[1784542705000,0.00000000],[1784542950000,0.00000000],[1784543255000,0.00000000],[1784543560000,0.00000000],[1784543865000,0.00000000],[1784544170000,0.00000000],[1784544475000,0.00000000],[1784544780000,0.00000000],[1784545085000,0.00000000],[1784545390000,0.00000000],[1784545695000,0.00000000],[1784546000000,0.00000000],[1784546305000,0.00000000],[1784546610000,0.00000000],[1784546854000,0.00000000],[1784547159000,0.00000000],[1784547464000,0.00000000],[1784547769000,0.00000000],[1784548074000,0.00000000],[1784548378000,0.00000000],[1784548684000,0.00000000],[1784548989000,0.00000000],[1784549294000,0.00000000],[1784549599000,0.00000000],[1784549904000,0.00000000],[1784550208000,0.00000000],[1784550453000,0.00000000],[1784550758000,0.00000000],[1784551063000,0.00000000],[1784551368000,0.00000000],[1784551673000,0.00000000],[1784551978000,0.00000000],[1784552284000,0.00000000],[1784552588000,0.00000000],[1784552893000,0.00000000],[1784553198000,0.00000000],[1784553503000,0.00000000],[1784553810000,0.00000000],[1784554055000,0.00000000],[1784554357000,0.00000000],[1784554662000,0.00000000],[1784554967000,0.00000000],[1784555272000,0.00000000],[1784555577000,0.00000000],[1784555881000,0.00000000],[1784556187000,0.00000000],[1784556492000,0.00000000],[1784556797000,0.00000000],[1784557102000,0.00000000],[1784557407000,0.00000000],[1784557651000,0.00000000],[1784557957000,0.00000000],[1784558261000,0.00000000],[1784558566000,0.00000000],[1784558871000,0.00000000],[1784559176000,0.00000000],[1784559481000,0.00000000],[1784559786000,0.00000000],[1784560091000,0.00000000],[1784560396000,0.00000000],[1784560701000,0.00000000],[1784561006000,0.00000000],[1784561250000,0.00000000],[1784561554000,0.00000000],[1784561860000,0.00000000],[1784562165000,0.00000000],[1784562470000,0.00000000],[1784562775000,0.00000000],[1784563080000,0.00000000],[1784563389000,0.00000000],[1784563690000,0.00000000],[1784563995000,0.00000000],[1784564300000,0.00000000],[1784564605000,0.00000000],[1784564910000,0.00000000],[1784565154000,0.00000000],[1784565459000,0.00000000],[1784565764000,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; }