var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1778709613000,11.00000000],[1778709806000,11.00000000],[1778710061000,10.94000000],[1778710381000,10.90000000],[1778710702000,10.85000000],[1778710953000,10.80000000],[1778711262000,10.76000000],[1778711582000,10.70000000],[1778711903000,10.70000000],[1778712158000,10.66000000],[1778712478000,10.74000000],[1778712798000,10.70000000],[1778713054000,10.62000000],[1778713375000,10.54000000],[1778713694000,10.47500000],[1778713950000,10.36000000],[1778714271000,10.26000000],[1778714591000,10.20000000],[1778714910000,10.07500000],[1778715152000,10.00000000],[1778715469000,9.92000000],[1778715789000,9.82000000],[1778716109000,9.80000000],[1778716365000,9.70000000],[1778716685000,9.60000000],[1778717006000,9.50000000],[1778717261000,9.46000000],[1778717582000,9.38000000],[1778717902000,9.27500000],[1778718157000,9.12000000],[1778718477000,9.00000000],[1778718797000,9.00000000],[1778719052000,9.06000000],[1778719374000,9.16000000],[1778719693000,9.20000000],[1778720012000,9.25000000],[1778720269000,9.36000000],[1778720589000,9.34000000],[1778720910000,9.25000000],[1778721165000,9.14000000],[1778721486000,9.02000000],[1778721806000,8.95000000],[1778722061000,8.80000000],[1778722381000,8.72000000],[1778722701000,8.55000000],[1778722957000,8.36000000],[1778723277000,8.36000000],[1778723598000,8.45000000],[1778723852000,8.50000000],[1778724173000,8.50000000],[1778724509000,8.45000000],[1778724765000,8.40000000],[1778725085000,8.32000000],[1778725406000,8.20000000],[1778725661000,8.12000000],[1778725981000,7.92000000],[1778726301000,7.90000000],[1778726557000,7.96000000],[1778726877000,8.02000000],[1778727197000,8.17500000],[1778727452000,8.24000000],[1778727773000,8.30000000],[1778728093000,8.30000000],[1778728412000,8.37500000],[1778728669000,8.40000000],[1778728989000,8.48000000],[1778729309000,8.50000000],[1778729565000,8.50000000],[1778729885000,8.50000000],[1778730205000,8.50000000],[1778730461000,8.50000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1778709613000,4.2],[1778709806000,4.2],[1778710061000,4.1],[1778710381000,4.1],[1778710702000,4],[1778710953000,4],[1778711262000,3.9],[1778711582000,3.9],[1778711903000,3.9],[1778712158000,3.8],[1778712478000,3.8],[1778712798000,3.9],[1778713054000,3.8],[1778713375000,3.9],[1778713694000,4],[1778713950000,4],[1778714271000,3.9],[1778714591000,3.9],[1778714910000,3.9],[1778715152000,3.9],[1778715469000,4],[1778715789000,3.9],[1778716109000,4],[1778716365000,4],[1778716685000,4],[1778717006000,4],[1778717261000,4],[1778717582000,3.9],[1778717902000,3.8],[1778718157000,3.8],[1778718477000,3.8],[1778718797000,3.8],[1778719052000,3.8],[1778719374000,3.8],[1778719693000,3.9],[1778720012000,3.8],[1778720269000,3.9],[1778720589000,3.9],[1778720910000,3.8],[1778721165000,3.7],[1778721486000,3.6],[1778721806000,3.7],[1778722061000,3.7],[1778722381000,3.8],[1778722701000,3.8],[1778722957000,4],[1778723277000,3.9],[1778723598000,3.8],[1778723852000,3.9],[1778724173000,3.9],[1778724509000,3.8],[1778724765000,3.8],[1778725085000,4],[1778725406000,4],[1778725661000,4.2],[1778725981000,4.1],[1778726301000,4.1],[1778726557000,4.1],[1778726877000,4.1],[1778727197000,4.1],[1778727452000,4.2],[1778727773000,4.3],[1778728093000,4.3],[1778728412000,4.3],[1778728669000,4.2],[1778728989000,4.3],[1778729309000,4.3],[1778729565000,4.3],[1778729885000,4.2],[1778730205000,4.1],[1778730461000,4.1],], 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: [[1778709613000,63.00000000],[1778709806000,63.00000000],[1778710061000,63.20000000],[1778710381000,63.00000000],[1778710702000,63.00000000],[1778710953000,63.00000000],[1778711262000,63.00000000],[1778711582000,63.00000000],[1778711903000,63.00000000],[1778712158000,63.00000000],[1778712478000,62.60000000],[1778712798000,63.00000000],[1778713054000,63.00000000],[1778713375000,64.00000000],[1778713694000,64.50000000],[1778713950000,65.00000000],[1778714271000,65.00000000],[1778714591000,65.20000000],[1778714910000,66.00000000],[1778715152000,66.00000000],[1778715469000,66.80000000],[1778715789000,67.00000000],[1778716109000,67.25000000],[1778716365000,68.00000000],[1778716685000,68.20000000],[1778717006000,68.75000000],[1778717261000,68.80000000],[1778717582000,69.00000000],[1778717902000,69.00000000],[1778718157000,69.60000000],[1778718477000,70.20000000],[1778718797000,70.25000000],[1778719052000,70.00000000],[1778719374000,69.20000000],[1778719693000,69.60000000],[1778720012000,69.00000000],[1778720269000,69.00000000],[1778720589000,69.00000000],[1778720910000,69.00000000],[1778721165000,69.00000000],[1778721486000,69.20000000],[1778721806000,70.00000000],[1778722061000,70.80000000],[1778722381000,71.40000000],[1778722701000,72.50000000],[1778722957000,74.20000000],[1778723277000,74.00000000],[1778723598000,73.00000000],[1778723852000,73.00000000],[1778724173000,73.00000000],[1778724509000,73.00000000],[1778724765000,73.00000000],[1778725085000,74.40000000],[1778725406000,75.00000000],[1778725661000,76.40000000],[1778725981000,77.00000000],[1778726301000,77.00000000],[1778726557000,77.00000000],[1778726877000,76.40000000],[1778727197000,76.00000000],[1778727452000,76.00000000],[1778727773000,76.00000000],[1778728093000,76.00000000],[1778728412000,76.00000000],[1778728669000,75.20000000],[1778728989000,75.00000000],[1778729309000,75.00000000],[1778729565000,75.00000000],[1778729885000,74.60000000],[1778730205000,74.00000000],[1778730461000,74.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: [[1778709613000,1008.2],[1778709806000,1008.1],[1778710061000,1008.1],[1778710381000,1008.1],[1778710702000,1008.1],[1778710953000,1008],[1778711262000,1007.9],[1778711582000,1008],[1778711903000,1007.9],[1778712158000,1007.9],[1778712478000,1007.9],[1778712798000,1007.8],[1778713054000,1007.9],[1778713375000,1007.9],[1778713694000,1007.9],[1778713950000,1007.9],[1778714271000,1007.8],[1778714591000,1007.8],[1778714910000,1007.9],[1778715152000,1007.8],[1778715469000,1007.8],[1778715789000,1007.7],[1778716109000,1007.9],[1778716365000,1007.8],[1778716685000,1007.8],[1778717006000,1007.8],[1778717261000,1007.9],[1778717582000,1007.8],[1778717902000,1007.8],[1778718157000,1007.6],[1778718477000,1007.7],[1778718797000,1007.7],[1778719052000,1007.7],[1778719374000,1007.7],[1778719693000,1007.6],[1778720012000,1007.6],[1778720269000,1007.6],[1778720589000,1007.6],[1778720910000,1007.6],[1778721165000,1007.7],[1778721486000,1007.6],[1778721806000,1007.5],[1778722061000,1007.6],[1778722381000,1007.6],[1778722701000,1007.6],[1778722957000,1007.7],[1778723277000,1007.7],[1778723598000,1007.5],[1778723852000,1007.6],[1778724173000,1007.5],[1778724509000,1007.6],[1778724765000,1007.4],[1778725085000,1007.5],[1778725406000,1007.5],[1778725661000,1007.5],[1778725981000,1007.4],[1778726301000,1007.4],[1778726557000,1007.5],[1778726877000,1007.5],[1778727197000,1007.6],[1778727452000,1007.5],[1778727773000,1007.5],[1778728093000,1007.5],[1778728412000,1007.5],[1778728669000,1007.5],[1778728989000,1007.6],[1778729309000,1007.5],[1778729565000,1007.5],[1778729885000,1007.5],[1778730205000,1007.5],[1778730461000,1007.4],], 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: [[1778709613000,4.32],[1778709806000,3.51],[1778710061000,3.672],[1778710381000,3.96],[1778710702000,4.77],[1778710953000,3.312],[1778711262000,1.8],[1778711582000,2.088],[1778711903000,3.69],[1778712158000,2.88],[1778712478000,3.456],[1778712798000,3.33],[1778713054000,5.904],[1778713375000,4.896],[1778713694000,3.06],[1778713950000,2.232],[1778714271000,4.32],[1778714591000,2.016],[1778714910000,3.06],[1778715152000,3.672],[1778715469000,3.024],[1778715789000,2.52],[1778716109000,4.32],[1778716365000,4.248],[1778716685000,4.248],[1778717006000,4.68],[1778717261000,4.536],[1778717582000,4.68],[1778717902000,4.14],[1778718157000,2.016],[1778718477000,4.464],[1778718797000,4.41],[1778719052000,4.68],[1778719374000,4.536],[1778719693000,2.88],[1778720012000,4.5],[1778720269000,4.104],[1778720589000,3.888],[1778720910000,3.51],[1778721165000,4.392],[1778721486000,3.816],[1778721806000,4.5],[1778722061000,4.536],[1778722381000,4.176],[1778722701000,3.69],[1778722957000,2.664],[1778723277000,2.88],[1778723598000,3.87],[1778723852000,4.104],[1778724173000,5.544],[1778724509000,4.41],[1778724765000,4.464],[1778725085000,3.24],[1778725406000,2.25],[1778725661000,3.6],[1778725981000,3.456],[1778726301000,3.06],[1778726557000,2.304],[1778726877000,3.672],[1778727197000,2.97],[1778727452000,5.544],[1778727773000,5.544],[1778728093000,3.024],[1778728412000,4.5],[1778728669000,4.752],[1778728989000,3.024],[1778729309000,2.88],[1778729565000,4.176],[1778729885000,5.688],[1778730205000,5.94],[1778730461000,2.88],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1778709613000,5.879999988],[1778709806000,5.04],[1778710061000,5.544],[1778710381000,5.544],[1778710702000,7.02],[1778710953000,4.536],[1778711262000,2.52],[1778711582000,4.032],[1778711903000,5.67],[1778712158000,4.032],[1778712478000,5.544],[1778712798000,4.41],[1778713054000,8.136],[1778713375000,7.056],[1778713694000,4.41],[1778713950000,4.536],[1778714271000,5.544],[1778714591000,3.528],[1778714910000,5.67],[1778715152000,6.048],[1778715469000,4.536],[1778715789000,4.536],[1778716109000,6.93],[1778716365000,6.624],[1778716685000,6.048],[1778717006000,6.39],[1778717261000,7.128],[1778717582000,6.048],[1778717902000,6.3],[1778718157000,3.024],[1778718477000,6.048],[1778718797000,6.93],[1778719052000,7.704],[1778719374000,6.624],[1778719693000,4.032],[1778720012000,6.93],[1778720269000,7.2],[1778720589000,6.048],[1778720910000,5.04],[1778721165000,7.128],[1778721486000,6.552],[1778721806000,5.67],[1778722061000,6.12],[1778722381000,4.536],[1778722701000,5.04],[1778722957000,4.032],[1778723277000,4.032],[1778723598000,5.04],[1778723852000,5.544],[1778724173000,7.56],[1778724509000,6.3],[1778724765000,5.544],[1778725085000,5.04],[1778725406000,2.52],[1778725661000,5.04],[1778725981000,4.536],[1778726301000,4.41],[1778726557000,4.032],[1778726877000,4.536],[1778727197000,4.41],[1778727452000,7.56],[1778727773000,7.056],[1778728093000,4.536],[1778728412000,6.93],[1778728669000,6.552],[1778728989000,4.032],[1778729309000,4.41],[1778729565000,6.552],[1778729885000,7.56],[1778730205000,6.93],[1778730461000,5.04],], 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: [[1778709613000,178.00000000],[1778709806000,175.00000000],[1778710061000,171.60000000],[1778710381000,152.00000000],[1778710702000,189.25000000],[1778710953000,173.00000000],[1778711262000,167.40000000],[1778711582000,168.60000000],[1778711903000,173.25000000],[1778712158000,195.60000000],[1778712478000,180.60000000],[1778712798000,178.75000000],[1778713054000,187.20000000],[1778713375000,166.00000000],[1778713694000,169.25000000],[1778713950000,175.60000000],[1778714271000,184.40000000],[1778714591000,179.20000000],[1778714910000,180.50000000],[1778715152000,163.60000000],[1778715469000,175.60000000],[1778715789000,168.40000000],[1778716109000,172.75000000],[1778716365000,185.40000000],[1778716685000,183.40000000],[1778717006000,176.50000000],[1778717261000,179.60000000],[1778717582000,171.00000000],[1778717902000,185.25000000],[1778718157000,178.60000000],[1778718477000,181.00000000],[1778718797000,175.00000000],[1778719052000,175.40000000],[1778719374000,171.60000000],[1778719693000,172.80000000],[1778720012000,167.00000000],[1778720269000,186.80000000],[1778720589000,163.20000000],[1778720910000,190.75000000],[1778721165000,166.80000000],[1778721486000,172.80000000],[1778721806000,184.25000000],[1778722061000,173.00000000],[1778722381000,172.80000000],[1778722701000,180.50000000],[1778722957000,168.20000000],[1778723277000,163.80000000],[1778723598000,176.75000000],[1778723852000,167.60000000],[1778724173000,180.60000000],[1778724509000,197.00000000],[1778724765000,194.40000000],[1778725085000,171.60000000],[1778725406000,172.75000000],[1778725661000,164.80000000],[1778725981000,170.60000000],[1778726301000,169.75000000],[1778726557000,178.60000000],[1778726877000,176.80000000],[1778727197000,178.25000000],[1778727452000,174.60000000],[1778727773000,160.80000000],[1778728093000,178.60000000],[1778728412000,173.50000000],[1778728669000,197.40000000],[1778728989000,170.00000000],[1778729309000,189.00000000],[1778729565000,179.00000000],[1778729885000,177.20000000],[1778730205000,163.75000000],[1778730461000,189.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: [[1778709613000,0.00000000],[1778709806000,0.00000000],[1778710061000,0.00000000],[1778710381000,0.00000000],[1778710702000,0.00000000],[1778710953000,0.00000000],[1778711262000,0.00000000],[1778711582000,0.00000000],[1778711903000,0.00000000],[1778712158000,0.00000000],[1778712478000,0.00000000],[1778712798000,0.00000000],[1778713054000,0.00000000],[1778713375000,0.00000000],[1778713694000,0.00000000],[1778713950000,0.00000000],[1778714271000,0.00000000],[1778714591000,0.00000000],[1778714910000,0.00000000],[1778715152000,0.00000000],[1778715469000,0.00000000],[1778715789000,0.00000000],[1778716109000,0.00000000],[1778716365000,0.00000000],[1778716685000,0.00000000],[1778717006000,0.00000000],[1778717261000,0.00000000],[1778717582000,0.00000000],[1778717902000,0.00000000],[1778718157000,0.00000000],[1778718477000,0.00000000],[1778718797000,0.00000000],[1778719052000,0.00000000],[1778719374000,0.00000000],[1778719693000,0.00000000],[1778720012000,0.00000000],[1778720269000,0.00000000],[1778720589000,0.00000000],[1778720910000,0.00000000],[1778721165000,0.00000000],[1778721486000,0.00000000],[1778721806000,0.00000000],[1778722061000,0.00000000],[1778722381000,0.00000000],[1778722701000,0.00000000],[1778722957000,0.00000000],[1778723277000,0.00000000],[1778723598000,0.00000000],[1778723852000,0.00000000],[1778724173000,0.00000000],[1778724509000,0.00000000],[1778724765000,0.00000000],[1778725085000,0.00000000],[1778725406000,0.00000000],[1778725661000,0.00000000],[1778725981000,0.00000000],[1778726301000,0.00000000],[1778726557000,0.00000000],[1778726877000,0.00000000],[1778727197000,0.00000000],[1778727452000,0.20000000],[1778727773000,1.00000000],[1778728093000,1.00000000],[1778728412000,2.00000000],[1778728669000,2.80000000],[1778728989000,3.80000000],[1778729309000,5.25000000],[1778729565000,6.40000000],[1778729885000,7.00000000],[1778730205000,7.75000000],[1778730461000,9.00000000],], color: '#ffb92f' } ]; var options = { xaxes: [{ axisLabel: 'solar_radiation', }], points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, yaxis: { min: 0, }, xaxis: { mode: 'time', minTickSize: [1, 'hour'], timeformat: '%d.%m.\, %H:%M', timezone: 'browser', }, grid: { hoverable: true, clickable: true, borderWidth: 0, }, tooltip: { show: true, content: '%x - %y.1W/m2' }, crosshair: { mode: 'x' }, legend: { show: true, container: '#chart-solar-radiation-legend' } }; graphs['#chart-solar-radiation'] = $.plot('#chart-solar-radiation', dataset, options); }); $(document).ready(function() { dataset = [ { label: 'UV žiarenie', data: [[1778709613000,0.00000000],[1778709806000,0.00000000],[1778710061000,0.00000000],[1778710381000,0.00000000],[1778710702000,0.00000000],[1778710953000,0.00000000],[1778711262000,0.00000000],[1778711582000,0.00000000],[1778711903000,0.00000000],[1778712158000,0.00000000],[1778712478000,0.00000000],[1778712798000,0.00000000],[1778713054000,0.00000000],[1778713375000,0.00000000],[1778713694000,0.00000000],[1778713950000,0.00000000],[1778714271000,0.00000000],[1778714591000,0.00000000],[1778714910000,0.00000000],[1778715152000,0.00000000],[1778715469000,0.00000000],[1778715789000,0.00000000],[1778716109000,0.00000000],[1778716365000,0.00000000],[1778716685000,0.00000000],[1778717006000,0.00000000],[1778717261000,0.00000000],[1778717582000,0.00000000],[1778717902000,0.00000000],[1778718157000,0.00000000],[1778718477000,0.00000000],[1778718797000,0.00000000],[1778719052000,0.00000000],[1778719374000,0.00000000],[1778719693000,0.00000000],[1778720012000,0.00000000],[1778720269000,0.00000000],[1778720589000,0.00000000],[1778720910000,0.00000000],[1778721165000,0.00000000],[1778721486000,0.00000000],[1778721806000,0.00000000],[1778722061000,0.00000000],[1778722381000,0.00000000],[1778722701000,0.00000000],[1778722957000,0.00000000],[1778723277000,0.00000000],[1778723598000,0.00000000],[1778723852000,0.00000000],[1778724173000,0.00000000],[1778724509000,0.00000000],[1778724765000,0.00000000],[1778725085000,0.00000000],[1778725406000,0.00000000],[1778725661000,0.00000000],[1778725981000,0.00000000],[1778726301000,0.00000000],[1778726557000,0.00000000],[1778726877000,0.00000000],[1778727197000,0.00000000],[1778727452000,0.00000000],[1778727773000,0.00000000],[1778728093000,0.00000000],[1778728412000,0.00000000],[1778728669000,0.00000000],[1778728989000,0.00000000],[1778729309000,0.00000000],[1778729565000,0.00000000],[1778729885000,0.00000000],[1778730205000,0.00000000],[1778730461000,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: [[1778709613000,0.00000000],[1778709806000,0.00000000],[1778710061000,0.00000000],[1778710381000,0.00000000],[1778710702000,0.00000000],[1778710953000,0.00000000],[1778711262000,0.00000000],[1778711582000,0.00000000],[1778711903000,0.00000000],[1778712158000,0.00000000],[1778712478000,0.00000000],[1778712798000,0.00000000],[1778713054000,0.00000000],[1778713375000,0.00000000],[1778713694000,0.00000000],[1778713950000,0.00000000],[1778714271000,0.00000000],[1778714591000,0.00000000],[1778714910000,0.00000000],[1778715152000,0.00000000],[1778715469000,0.00000000],[1778715789000,0.00000000],[1778716109000,0.00000000],[1778716365000,0.00000000],[1778716685000,0.00000000],[1778717006000,0.00000000],[1778717261000,0.00000000],[1778717582000,0.00000000],[1778717902000,0.00000000],[1778718157000,0.00000000],[1778718477000,0.00000000],[1778718797000,0.00000000],[1778719052000,0.00000000],[1778719374000,0.00000000],[1778719693000,0.00000000],[1778720012000,0.00000000],[1778720269000,0.00000000],[1778720589000,0.00000000],[1778720910000,0.00000000],[1778721165000,0.00000000],[1778721486000,0.00000000],[1778721806000,0.00000000],[1778722061000,0.00000000],[1778722381000,0.00000000],[1778722701000,0.00000000],[1778722957000,0.00000000],[1778723277000,0.00000000],[1778723598000,0.00000000],[1778723852000,0.00000000],[1778724173000,0.00000000],[1778724509000,0.00000000],[1778724765000,0.00000000],[1778725085000,0.00000000],[1778725406000,0.00000000],[1778725661000,0.00000000],[1778725981000,0.00000000],[1778726301000,0.00000000],[1778726557000,0.00000000],[1778726877000,0.00000000],[1778727197000,0.00000000],[1778727452000,0.00000000],[1778727773000,0.00000000],[1778728093000,0.00000000],[1778728412000,0.00000000],[1778728669000,0.00000000],[1778728989000,0.00000000],[1778729309000,0.00000000],[1778729565000,0.00000000],[1778729885000,0.00000000],[1778730205000,0.00000000],[1778730461000,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; }