var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [], 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: 'Rýchlosť vetra (km/h)', data: [[1713391249000,0],[1713391377000,0],[1713391697000,0],[1713391953000,0],[1713392273000,0],[1713392593000,0],[1713392913000,0],[1713393169000,0],[1713393489000,1.728],[1713393809000,2.7],[1713394065000,3.096],[1713394384000,4.032],[1713394704000,2.88],[1713394960000,2.088],[1713395280000,0],[1713395600000,0],[1713395851000,0],[1713396151000,0.072],[1713396464000,1.872],[1713396784000,1.512],[1713397171000,1.559999988],[1713397360000,0.432],[1713397680000,0],[1713398000000,0.99],[1713398256000,0.144],[1713398576000,0.864],[1713398896000,0.18],[1713399152000,0.72],[1713399472000,1.44],[1713399792000,1.08],[1713400111000,3.51],[1713400368000,4.608],[1713400688000,5.4],[1713401008000,5.49],[1713401251000,5.4],[1713401568000,3.024],[1713401888000,2.88],[1713402208000,2.7],[1713402464000,4.968],[1713402784000,2.808],[1713403104000,3.96],[1713403351000,3.744],[1713403652000,4.968],[1713403984000,5.472],[1713404304000,6.3],[1713404551000,5.112],[1713404865000,3.6],[1713405184000,8.28],[1713405504000,3.33],[1713405760000,3.672],[1713406080000,2.88],[1713406400000,3.6],[1713406651000,3.312],[1713406951000,3.528],[1713407264000,1.368],[1713407585000,1.944],[1713407905000,1.44],[1713408161000,2.736],[1713408481000,2.808],[1713408801000,1.62],[1713409057000,3.024],[1713409377000,4.32],[1713409697000,0.72],[1713409953000,1.656],[1713410273000,0.144],[1713410593000,0],[1713410912000,0],[1713411169000,1.512],[1713411489000,0.936],[1713411809000,1.53],[1713412065000,1.8],[1713412384000,0.288],[1713412704000,0],[1713412960000,0],[1713413280000,0],[1713413600000,0],[1713413856000,0.072],[1713414176000,1.872],[1713414496000,1.62],[1713414752000,0.432],[1713415072000,2.448],[1713415392000,2.592],[1713415712000,1.08],[1713415968000,3.528],[1713416288000,0.936],[1713416608000,1.44],[1713416864000,1.584],[1713417184000,0.576],[1713417504000,0],[1713417760000,1.008],[1713418080000,0.792],[1713418400000,3.51],[1713418656000,3.6],[1713418976000,1.224],[1713419297000,3.15],[1713419552000,3.096],[1713419872000,3.528],[1713420192000,4.5],[1713420465000,4.392],[1713420784000,7.416],[1713421104000,6.12],[1713421361000,4.392],[1713421680000,7.56],[1713422001000,7.29],[1713422257000,3.744],[1713422576000,4.968],[1713422897000,5.85],[1713423152000,5.832],[1713423473000,4.68],[1713423792000,3.888],[1713424112000,2.97],[1713424368000,3.672],[1713424688000,5.976],[1713425008000,4.32],[1713425264000,7.776],[1713425584000,4.464],[1713425905000,3.87],[1713426160000,4.464],[1713426480000,5.04],[1713426800000,2.52],[1713427056000,6.264],[1713427376000,8.064],[1713427696000,4.41],[1713427953000,4.32],[1713428272000,6.408],[1713428594000,7.848],[1713428912000,5.67],[1713429168000,2.664],[1713429488000,7.2],[1713429808000,4.23],[1713430064000,7.056],[1713430384000,4.392],[1713430704000,5.4],[1713430952000,4.896],[1713431252000,3.024],[1713431568000,5.472],[1713431888000,1.368],[1713432207000,8.1],[1713432464000,4.032],[1713432784000,5.472],[1713433104000,4.05],[1713433360000,2.736],[1713433681000,6.048],[1713434013000,6.12],[1713434272000,5.616],[1713434592000,6.552],[1713434912000,7.74],[1713435168000,5.688],[1713435504000,4.68],[1713435776000,5.544],[1713436112000,4.95],[1713436368000,4.608],[1713436704000,3.78],[1713436960000,6.408],[1713437313000,8.82],[1713437568000,5.04],[1713437888000,5.544],[1713438208000,5.22],[1713438465000,3.672],[1713438800000,7.47],[1713439056000,5.328],[1713439392000,9.288],[1713439712000,6.12],[1713439968000,6.264],[1713440288000,6.84],[1713440560000,9.288],[1713440881000,6.84],[1713441212000,6.39],[1713441527000,10.8],[1713441792000,6.48],[1713442080000,7.65],[1713442351000,10.98],[1713442657000,5.67],[1713443016000,8.73],[1713443280000,7.2],[1713443600000,4.32],[1713443856000,3.888],[1713444176000,5.976],[1713444512000,5.58],[1713444768000,8.28],[1713445104000,7.02],[1713445360000,11.088],[1713445680000,3.42],[1713445968000,7.056],[1713446288000,5.184],[1713446608000,6.48],[1713446864000,7.128],[1713447184000,6.192],[1713447504000,8.1],[1713447760000,9.432],[1713448080000,7.92],[1713448401000,4.68],[1713448655000,4.32],[1713448992000,4.464],[1713449312000,7.74],[1713449569000,7.272],[1713449904000,3.69],[1713450207000,5.58],[1713450463000,8.568],[1713450799000,7.74],[1713451052000,9.504],[1713451375000,11.664],[1713451695000,9.09],[1713451951000,7.344],[1713452271000,6.264],[1713452591000,7.47],[1713452852000,6.696],[1713453196000,3.87],[1713453453000,4.752],[1713453776000,7.272],[1713454096000,6.93],[1713454420000,3.96],[1713454652000,4.032],[1713454975000,2.16],[1713455295000,4.05],[1713455551000,4.392],[1713455871000,5.616],[1713456191000,4.68],[1713456511000,5.4],[1713456767000,3.312],[1713457087000,3.24],[1713457407000,0.81],[1713457663000,1.224],[1713457983000,1.728],[1713458303000,0.54],[1713458559000,1.512],[1713458879000,1.656],[1713459200000,2.34],[1713459455000,2.52],[1713459776000,3.672],[1713460096000,2.79],[1713460352000,3.168],[1713460672000,2.952],[1713460992000,2.016],[1713461313000,4.14],[1713461568000,2.664],[1713461888000,2.952],[1713462208000,7.83],[1713462464000,5.184],[1713462783000,4.104],[1713463103000,4.05],[1713463359000,5.832],[1713463679000,7.272],[1713463999000,6.12],[1713464253000,7.56],[1713464575000,7.92],[1713464895000,6.84],[1713465151000,7.92],[1713465471000,7.704],[1713465791000,5.904],[1713466111000,6.48],[1713466367000,6.12],[1713466687000,7.704],[1713467007000,7.65],[1713467263000,7.2],[1713467583000,6.48],[1713467903000,7.92],[1713468152000,5.976],[1713468479000,8.208],[1713468799000,6.75],[1713469052000,5.112],[1713469376000,5.04],[1713469695000,4.05],[1713469951000,5.256],[1713470252000,4.104],[1713470575000,2.448],[1713470895000,2.52],[1713471151000,2.7],], color: '#002f80', points: { show: false }, lines: { show: true, lineWidth: 2, fill: false, }, }, { label: 'Náraz vetra (km/h)', data: [[1713391249000,0],[1713391377000,0],[1713391697000,0],[1713391953000,0],[1713392273000,0],[1713392593000,0],[1713392913000,0],[1713393169000,0],[1713393489000,2.016],[1713393809000,3.78],[1713394065000,4.032],[1713394384000,4.032],[1713394704000,3.15],[1713394960000,2.52],[1713395280000,0],[1713395600000,0],[1713395851000,0],[1713396151000,0.504],[1713396464000,2.52],[1713396784000,2.016],[1713397171000,2.52],[1713397360000,1.008],[1713397680000,0],[1713398000000,1.89],[1713398256000,1.008],[1713398576000,1.008],[1713398896000,1.26],[1713399152000,2.016],[1713399472000,2.52],[1713399792000,2.016],[1713400111000,4.41],[1713400368000,6.552],[1713400688000,7.056],[1713401008000,7.56],[1713401251000,8.136],[1713401568000,4.536],[1713401888000,5.04],[1713402208000,5.04],[1713402464000,8.064],[1713402784000,5.04],[1713403104000,5.67],[1713403351000,5.544],[1713403652000,8.064],[1713403984000,8.568],[1713404304000,9.45],[1713404551000,7.56],[1713404865000,5.04],[1713405184000,13.176],[1713405504000,5.04],[1713405760000,5.04],[1713406080000,4.536],[1713406400000,6.39],[1713406651000,4.032],[1713406951000,5.544],[1713407264000,2.52],[1713407585000,3.024],[1713407905000,2.52],[1713408161000,4.032],[1713408481000,5.544],[1713408801000,3.78],[1713409057000,4.536],[1713409377000,5.544],[1713409697000,1.26],[1713409953000,2.016],[1713410273000,0.504],[1713410593000,0],[1713410912000,0],[1713411169000,2.016],[1713411489000,1.512],[1713411809000,1.89],[1713412065000,3.024],[1713412384000,0.504],[1713412704000,0],[1713412960000,0],[1713413280000,0],[1713413600000,0],[1713413856000,0.504],[1713414176000,2.52],[1713414496000,1.89],[1713414752000,0.504],[1713415072000,3.024],[1713415392000,4.032],[1713415712000,1.26],[1713415968000,4.536],[1713416288000,1.008],[1713416608000,1.89],[1713416864000,2.52],[1713417184000,1.008],[1713417504000,0],[1713417760000,1.008],[1713418080000,1.512],[1713418400000,5.04],[1713418656000,4.032],[1713418976000,2.52],[1713419297000,3.78],[1713419552000,5.04],[1713419872000,5.544],[1713420192000,6.3],[1713420465000,7.056],[1713420784000,10.152],[1713421104000,9.45],[1713421361000,6.048],[1713421680000,11.736],[1713422001000,10.17],[1713422257000,6.048],[1713422576000,9.144],[1713422897000,8.82],[1713423152000,8.136],[1713423473000,6.624],[1713423792000,6.048],[1713424112000,4.41],[1713424368000,5.544],[1713424688000,8.208],[1713425008000,6.93],[1713425264000,11.16],[1713425584000,6.048],[1713425905000,5.04],[1713426160000,6.552],[1713426480000,7.632],[1713426800000,3.78],[1713427056000,10.152],[1713427376000,11.736],[1713427696000,5.67],[1713427953000,6.552],[1713428272000,9.144],[1713428594000,10.152],[1713428912000,7.65],[1713429168000,4.536],[1713429488000,10.224],[1713429808000,5.67],[1713430064000,9.144],[1713430384000,6.624],[1713430704000,6.93],[1713430952000,7.632],[1713431252000,3.528],[1713431568000,7.056],[1713431888000,2.016],[1713432207000,10.8],[1713432464000,6.048],[1713432784000,8.136],[1713433104000,6.3],[1713433360000,4.032],[1713433681000,7.704],[1713434013000,8.28],[1713434272000,8.64],[1713434592000,9.648],[1713434912000,10.89],[1713435168000,8.64],[1713435504000,6.3],[1713435776000,8.136],[1713436112000,7.65],[1713436368000,7.056],[1713436704000,5.67],[1713436960000,8.64],[1713437313000,12.87],[1713437568000,6.048],[1713437888000,7.632],[1713438208000,8.28],[1713438465000,5.616],[1713438800000,11.43],[1713439056000,8.136],[1713439392000,11.232],[1713439712000,9.54],[1713439968000,9.648],[1713440288000,9.54],[1713440560000,13.896],[1713440881000,8.64],[1713441212000,8.82],[1713441527000,12.87],[1713441792000,8.91],[1713442080000,12.78],[1713442351000,14.04],[1713442657000,7.65],[1713443016000,15.3],[1713443280000,9.72],[1713443600000,6.3],[1713443856000,5.04],[1713444176000,9.648],[1713444512000,6.93],[1713444768000,12.312],[1713445104000,9.54],[1713445360000,14.4],[1713445680000,5.67],[1713445968000,9.144],[1713446288000,8.568],[1713446608000,10.17],[1713446864000,10.8],[1713447184000,10.728],[1713447504000,10.8],[1713447760000,13.32],[1713448080000,13.248],[1713448401000,6.3],[1713448655000,6.552],[1713448992000,6.552],[1713449312000,10.8],[1713449569000,10.224],[1713449904000,5.67],[1713450207000,8.28],[1713450463000,11.304],[1713450799000,10.89],[1713451052000,14.832],[1713451375000,17.352],[1713451695000,15.48],[1713451951000,10.224],[1713452271000,8.136],[1713452591000,9.54],[1713452852000,11.16],[1713453196000,6.39],[1713453453000,7.056],[1713453776000,10.224],[1713454096000,8.28],[1713454420000,6.84],[1713454652000,7.128],[1713454975000,3.024],[1713455295000,5.67],[1713455551000,6.048],[1713455871000,8.064],[1713456191000,6.624],[1713456511000,6.93],[1713456767000,5.04],[1713457087000,4.536],[1713457407000,1.89],[1713457663000,2.016],[1713457983000,3.024],[1713458303000,0.63],[1713458559000,2.52],[1713458879000,2.52],[1713459200000,3.15],[1713459455000,4.032],[1713459776000,6.552],[1713460096000,3.78],[1713460352000,5.04],[1713460672000,5.544],[1713460992000,3.528],[1713461313000,5.67],[1713461568000,4.032],[1713461888000,4.032],[1713462208000,10.89],[1713462464000,8.208],[1713462783000,6.552],[1713463103000,6.3],[1713463359000,9.144],[1713463679000,9.648],[1713463999000,8.28],[1713464253000,11.232],[1713464575000,11.232],[1713464895000,8.28],[1713465151000,11.232],[1713465471000,11.808],[1713465791000,9.144],[1713466111000,8.82],[1713466367000,9.648],[1713466687000,11.736],[1713467007000,10.26],[1713467263000,9.72],[1713467583000,10.224],[1713467903000,10.8],[1713468152000,8.568],[1713468479000,12.24],[1713468799000,9.45],[1713469052000,7.56],[1713469376000,7.56],[1713469695000,5.67],[1713469951000,6.048],[1713470252000,5.544],[1713470575000,3.024],[1713470895000,4.41],[1713471151000,3.78],], 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: [[1713391249000,282.50000000],[1713391377000,302.00000000],[1713391697000,307.75000000],[1713391953000,317.20000000],[1713392273000,317.00000000],[1713392593000,325.80000000],[1713392913000,319.50000000],[1713393169000,320.00000000],[1713393489000,304.40000000],[1713393809000,246.25000000],[1713394065000,248.80000000],[1713394384000,243.00000000],[1713394704000,282.75000000],[1713394960000,288.40000000],[1713395280000,300.60000000],[1713395600000,301.50000000],[1713395851000,303.60000000],[1713396151000,291.60000000],[1713396464000,261.40000000],[1713396784000,271.60000000],[1713397171000,267.00000000],[1713397360000,269.60000000],[1713397680000,269.20000000],[1713398000000,295.50000000],[1713398256000,295.40000000],[1713398576000,279.00000000],[1713398896000,288.00000000],[1713399152000,280.20000000],[1713399472000,266.20000000],[1713399792000,271.00000000],[1713400111000,252.00000000],[1713400368000,167.80000000],[1713400688000,212.20000000],[1713401008000,153.75000000],[1713401251000,180.60000000],[1713401568000,292.20000000],[1713401888000,208.60000000],[1713402208000,112.25000000],[1713402464000,264.80000000],[1713402784000,222.60000000],[1713403104000,119.00000000],[1713403351000,104.80000000],[1713403652000,198.80000000],[1713403984000,90.80000000],[1713404304000,117.75000000],[1713404551000,183.00000000],[1713404865000,156.80000000],[1713405184000,44.80000000],[1713405504000,267.00000000],[1713405760000,195.80000000],[1713406080000,103.80000000],[1713406400000,64.50000000],[1713406651000,130.60000000],[1713406951000,169.40000000],[1713407264000,224.80000000],[1713407585000,215.20000000],[1713407905000,267.50000000],[1713408161000,240.40000000],[1713408481000,207.60000000],[1713408801000,292.75000000],[1713409057000,258.00000000],[1713409377000,227.80000000],[1713409697000,279.75000000],[1713409953000,257.20000000],[1713410273000,271.80000000],[1713410593000,272.60000000],[1713410912000,277.75000000],[1713411169000,272.80000000],[1713411489000,267.60000000],[1713411809000,263.50000000],[1713412065000,262.00000000],[1713412384000,255.60000000],[1713412704000,266.75000000],[1713412960000,260.20000000],[1713413280000,269.40000000],[1713413600000,275.25000000],[1713413856000,286.20000000],[1713414176000,264.60000000],[1713414496000,262.00000000],[1713414752000,266.00000000],[1713415072000,262.00000000],[1713415392000,266.20000000],[1713415712000,268.25000000],[1713415968000,227.60000000],[1713416288000,247.40000000],[1713416608000,262.50000000],[1713416864000,243.00000000],[1713417184000,281.80000000],[1713417504000,258.25000000],[1713417760000,247.20000000],[1713418080000,249.40000000],[1713418400000,218.00000000],[1713418656000,236.20000000],[1713418976000,293.00000000],[1713419297000,172.25000000],[1713419552000,178.60000000],[1713419872000,203.00000000],[1713420192000,112.50000000],[1713420465000,157.20000000],[1713420784000,129.60000000],[1713421104000,129.00000000],[1713421361000,222.80000000],[1713421680000,164.00000000],[1713422001000,45.25000000],[1713422257000,169.20000000],[1713422576000,131.00000000],[1713422897000,174.25000000],[1713423152000,210.00000000],[1713423473000,143.80000000],[1713423792000,138.20000000],[1713424112000,201.25000000],[1713424368000,219.20000000],[1713424688000,131.80000000],[1713425008000,140.25000000],[1713425264000,230.20000000],[1713425584000,212.60000000],[1713425905000,172.50000000],[1713426160000,312.80000000],[1713426480000,169.80000000],[1713426800000,323.50000000],[1713427056000,118.00000000],[1713427376000,216.60000000],[1713427696000,144.00000000],[1713427953000,143.20000000],[1713428272000,223.20000000],[1713428594000,246.20000000],[1713428912000,246.50000000],[1713429168000,291.60000000],[1713429488000,323.00000000],[1713429808000,299.25000000],[1713430064000,305.80000000],[1713430384000,240.40000000],[1713430704000,227.00000000],[1713430952000,222.40000000],[1713431252000,323.60000000],[1713431568000,198.80000000],[1713431888000,321.00000000],[1713432207000,204.25000000],[1713432464000,135.40000000],[1713432784000,252.20000000],[1713433104000,337.75000000],[1713433360000,264.20000000],[1713433681000,264.00000000],[1713434013000,123.25000000],[1713434272000,173.60000000],[1713434592000,285.80000000],[1713434912000,232.00000000],[1713435168000,254.80000000],[1713435504000,251.50000000],[1713435776000,289.40000000],[1713436112000,171.25000000],[1713436368000,143.40000000],[1713436704000,157.25000000],[1713436960000,246.00000000],[1713437313000,247.25000000],[1713437568000,259.00000000],[1713437888000,240.60000000],[1713438208000,295.00000000],[1713438465000,237.00000000],[1713438800000,318.75000000],[1713439056000,195.80000000],[1713439392000,200.40000000],[1713439712000,218.25000000],[1713439968000,97.80000000],[1713440288000,247.25000000],[1713440560000,166.60000000],[1713440881000,148.40000000],[1713441212000,49.25000000],[1713441527000,254.50000000],[1713441792000,173.50000000],[1713442080000,320.75000000],[1713442351000,175.00000000],[1713442657000,191.75000000],[1713443016000,180.25000000],[1713443280000,196.20000000],[1713443600000,210.00000000],[1713443856000,172.40000000],[1713444176000,248.20000000],[1713444512000,171.00000000],[1713444768000,270.80000000],[1713445104000,246.00000000],[1713445360000,223.00000000],[1713445680000,249.00000000],[1713445968000,89.00000000],[1713446288000,196.60000000],[1713446608000,174.00000000],[1713446864000,259.80000000],[1713447184000,163.40000000],[1713447504000,118.75000000],[1713447760000,303.00000000],[1713448080000,134.80000000],[1713448401000,203.50000000],[1713448655000,216.80000000],[1713448992000,238.20000000],[1713449312000,322.00000000],[1713449569000,200.00000000],[1713449904000,190.50000000],[1713450207000,265.25000000],[1713450463000,187.00000000],[1713450799000,307.00000000],[1713451052000,165.80000000],[1713451375000,61.60000000],[1713451695000,66.50000000],[1713451951000,166.60000000],[1713452271000,131.80000000],[1713452591000,201.25000000],[1713452852000,100.40000000],[1713453196000,194.50000000],[1713453453000,294.60000000],[1713453776000,315.00000000],[1713454096000,114.00000000],[1713454420000,244.00000000],[1713454652000,269.20000000],[1713454975000,175.00000000],[1713455295000,114.50000000],[1713455551000,94.60000000],[1713455871000,223.00000000],[1713456191000,304.20000000],[1713456511000,246.75000000],[1713456767000,125.40000000],[1713457087000,158.00000000],[1713457407000,326.75000000],[1713457663000,312.60000000],[1713457983000,322.20000000],[1713458303000,326.75000000],[1713458559000,311.00000000],[1713458879000,323.60000000],[1713459200000,304.00000000],[1713459455000,307.40000000],[1713459776000,196.60000000],[1713460096000,259.25000000],[1713460352000,219.60000000],[1713460672000,208.00000000],[1713460992000,256.40000000],[1713461313000,304.50000000],[1713461568000,320.00000000],[1713461888000,256.40000000],[1713462208000,318.00000000],[1713462464000,331.00000000],[1713462783000,204.60000000],[1713463103000,166.75000000],[1713463359000,272.20000000],[1713463679000,19.80000000],[1713463999000,255.75000000],[1713464253000,326.80000000],[1713464575000,280.40000000],[1713464895000,261.50000000],[1713465151000,267.80000000],[1713465471000,268.60000000],[1713465791000,237.00000000],[1713466111000,267.75000000],[1713466367000,151.80000000],[1713466687000,104.40000000],[1713467007000,177.50000000],[1713467263000,343.80000000],[1713467583000,219.40000000],[1713467903000,161.75000000],[1713468152000,209.60000000],[1713468479000,321.00000000],[1713468799000,185.00000000],[1713469052000,283.00000000],[1713469376000,215.00000000],[1713469695000,254.50000000],[1713469951000,209.60000000],[1713470252000,262.00000000],[1713470575000,259.60000000],[1713470895000,240.00000000],[1713471151000,307.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: [[1713391249000,0.00000000],[1713391377000,0.00000000],[1713391697000,0.00000000],[1713391953000,0.00000000],[1713392273000,0.00000000],[1713392593000,0.00000000],[1713392913000,0.00000000],[1713393169000,0.00000000],[1713393489000,0.00000000],[1713393809000,0.00000000],[1713394065000,0.00000000],[1713394384000,0.00000000],[1713394704000,0.00000000],[1713394960000,0.00000000],[1713395280000,0.00000000],[1713395600000,0.00000000],[1713395851000,0.00000000],[1713396151000,0.00000000],[1713396464000,0.00000000],[1713396784000,0.00000000],[1713397171000,0.00000000],[1713397360000,0.00000000],[1713397680000,0.00000000],[1713398000000,0.00000000],[1713398256000,0.00000000],[1713398576000,0.00000000],[1713398896000,0.00000000],[1713399152000,0.00000000],[1713399472000,0.00000000],[1713399792000,0.00000000],[1713400111000,0.00000000],[1713400368000,0.00000000],[1713400688000,0.00000000],[1713401008000,0.00000000],[1713401251000,0.00000000],[1713401568000,0.00000000],[1713401888000,0.00000000],[1713402208000,0.00000000],[1713402464000,0.00000000],[1713402784000,0.00000000],[1713403104000,0.00000000],[1713403351000,0.00000000],[1713403652000,0.00000000],[1713403984000,0.00000000],[1713404304000,0.00000000],[1713404551000,0.00000000],[1713404865000,0.00000000],[1713405184000,0.00000000],[1713405504000,0.00000000],[1713405760000,0.00000000],[1713406080000,0.00000000],[1713406400000,0.00000000],[1713406651000,0.00000000],[1713406951000,0.00000000],[1713407264000,0.00000000],[1713407585000,0.00000000],[1713407905000,0.00000000],[1713408161000,0.00000000],[1713408481000,0.00000000],[1713408801000,0.00000000],[1713409057000,0.00000000],[1713409377000,0.00000000],[1713409697000,0.00000000],[1713409953000,0.00000000],[1713410273000,0.00000000],[1713410593000,0.00000000],[1713410912000,0.00000000],[1713411169000,0.40000000],[1713411489000,1.00000000],[1713411809000,1.50000000],[1713412065000,2.60000000],[1713412384000,4.00000000],[1713412704000,6.00000000],[1713412960000,8.40000000],[1713413280000,11.60000000],[1713413600000,14.00000000],[1713413856000,16.60000000],[1713414176000,19.60000000],[1713414496000,24.00000000],[1713414752000,25.40000000],[1713415072000,26.60000000],[1713415392000,27.80000000],[1713415712000,28.50000000],[1713415968000,28.60000000],[1713416288000,29.60000000],[1713416608000,31.00000000],[1713416864000,31.40000000],[1713417184000,33.80000000],[1713417504000,35.00000000],[1713417760000,39.20000000],[1713418080000,56.60000000],[1713418400000,76.25000000],[1713418656000,70.80000000],[1713418976000,74.20000000],[1713419297000,96.00000000],[1713419552000,116.00000000],[1713419872000,118.60000000],[1713420192000,94.50000000],[1713420465000,90.80000000],[1713420784000,86.20000000],[1713421104000,77.75000000],[1713421361000,90.40000000],[1713421680000,111.00000000],[1713422001000,126.00000000],[1713422257000,136.80000000],[1713422576000,145.60000000],[1713422897000,172.50000000],[1713423152000,130.40000000],[1713423473000,111.60000000],[1713423792000,141.40000000],[1713424112000,121.50000000],[1713424368000,131.40000000],[1713424688000,184.00000000],[1713425008000,196.25000000],[1713425264000,282.40000000],[1713425584000,218.20000000],[1713425905000,176.75000000],[1713426160000,336.80000000],[1713426480000,362.00000000],[1713426800000,350.50000000],[1713427056000,392.60000000],[1713427376000,244.80000000],[1713427696000,352.50000000],[1713427953000,491.60000000],[1713428272000,503.00000000],[1713428594000,508.80000000],[1713428912000,513.50000000],[1713429168000,283.80000000],[1713429488000,232.40000000],[1713429808000,148.75000000],[1713430064000,332.20000000],[1713430384000,567.40000000],[1713430704000,399.25000000],[1713430952000,557.40000000],[1713431252000,536.00000000],[1713431568000,160.80000000],[1713431888000,216.00000000],[1713432207000,548.25000000],[1713432464000,661.00000000],[1713432784000,449.80000000],[1713433104000,210.50000000],[1713433360000,294.80000000],[1713433681000,221.00000000],[1713434013000,328.75000000],[1713434272000,291.60000000],[1713434592000,314.20000000],[1713434912000,352.25000000],[1713435168000,343.40000000],[1713435504000,598.50000000],[1713435776000,536.80000000],[1713436112000,135.00000000],[1713436368000,135.00000000],[1713436704000,603.00000000],[1713436960000,648.20000000],[1713437313000,459.25000000],[1713437568000,184.20000000],[1713437888000,160.20000000],[1713438208000,394.25000000],[1713438465000,418.20000000],[1713438800000,683.75000000],[1713439056000,596.60000000],[1713439392000,451.00000000],[1713439712000,627.50000000],[1713439968000,602.00000000],[1713440288000,474.25000000],[1713440560000,613.00000000],[1713440881000,565.00000000],[1713441212000,239.00000000],[1713441527000,472.25000000],[1713441792000,503.50000000],[1713442080000,573.25000000],[1713442351000,561.50000000],[1713442657000,504.25000000],[1713443016000,427.00000000],[1713443280000,478.00000000],[1713443600000,467.25000000],[1713443856000,506.00000000],[1713444176000,484.60000000],[1713444512000,480.75000000],[1713444768000,468.80000000],[1713445104000,464.50000000],[1713445360000,461.00000000],[1713445680000,460.00000000],[1713445968000,480.00000000],[1713446288000,478.60000000],[1713446608000,483.00000000],[1713446864000,460.80000000],[1713447184000,410.40000000],[1713447504000,385.00000000],[1713447760000,370.00000000],[1713448080000,351.20000000],[1713448401000,305.00000000],[1713448655000,339.20000000],[1713448992000,322.00000000],[1713449312000,277.75000000],[1713449569000,127.40000000],[1713449904000,153.00000000],[1713450207000,108.25000000],[1713450463000,94.20000000],[1713450799000,104.25000000],[1713451052000,88.00000000],[1713451375000,70.00000000],[1713451695000,108.00000000],[1713451951000,109.60000000],[1713452271000,114.20000000],[1713452591000,53.50000000],[1713452852000,47.80000000],[1713453196000,45.50000000],[1713453453000,44.60000000],[1713453776000,48.00000000],[1713454096000,46.50000000],[1713454420000,43.66666667],[1713454652000,43.80000000],[1713454975000,49.60000000],[1713455295000,55.00000000],[1713455551000,57.60000000],[1713455871000,59.00000000],[1713456191000,75.80000000],[1713456511000,64.50000000],[1713456767000,54.20000000],[1713457087000,43.20000000],[1713457407000,34.25000000],[1713457663000,28.00000000],[1713457983000,25.40000000],[1713458303000,27.25000000],[1713458559000,25.60000000],[1713458879000,23.80000000],[1713459200000,21.25000000],[1713459455000,18.20000000],[1713459776000,15.80000000],[1713460096000,14.00000000],[1713460352000,11.80000000],[1713460672000,10.00000000],[1713460992000,7.80000000],[1713461313000,5.50000000],[1713461568000,3.40000000],[1713461888000,2.00000000],[1713462208000,1.00000000],[1713462464000,1.00000000],[1713462783000,0.00000000],[1713463103000,0.00000000],[1713463359000,0.00000000],[1713463679000,0.00000000],[1713463999000,0.00000000],[1713464253000,0.00000000],[1713464575000,0.00000000],[1713464895000,0.00000000],[1713465151000,0.00000000],[1713465471000,0.00000000],[1713465791000,0.00000000],[1713466111000,0.00000000],[1713466367000,0.00000000],[1713466687000,0.00000000],[1713467007000,0.00000000],[1713467263000,0.00000000],[1713467583000,0.00000000],[1713467903000,0.00000000],[1713468152000,0.00000000],[1713468479000,0.00000000],[1713468799000,0.00000000],[1713469052000,0.00000000],[1713469376000,0.00000000],[1713469695000,0.00000000],[1713469951000,0.00000000],[1713470252000,0.00000000],[1713470575000,0.00000000],[1713470895000,0.00000000],[1713471151000,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: [[1713391249000,0.00000000],[1713391377000,0.00000000],[1713391697000,0.00000000],[1713391953000,0.00000000],[1713392273000,0.00000000],[1713392593000,0.00000000],[1713392913000,0.00000000],[1713393169000,0.00000000],[1713393489000,0.00000000],[1713393809000,0.00000000],[1713394065000,0.00000000],[1713394384000,0.00000000],[1713394704000,0.00000000],[1713394960000,0.00000000],[1713395280000,0.00000000],[1713395600000,0.00000000],[1713395851000,0.00000000],[1713396151000,0.00000000],[1713396464000,0.00000000],[1713396784000,0.00000000],[1713397171000,0.00000000],[1713397360000,0.00000000],[1713397680000,0.00000000],[1713398000000,0.00000000],[1713398256000,0.00000000],[1713398576000,0.00000000],[1713398896000,0.00000000],[1713399152000,0.00000000],[1713399472000,0.00000000],[1713399792000,0.00000000],[1713400111000,0.00000000],[1713400368000,0.00000000],[1713400688000,0.00000000],[1713401008000,0.00000000],[1713401251000,0.00000000],[1713401568000,0.00000000],[1713401888000,0.00000000],[1713402208000,0.00000000],[1713402464000,0.00000000],[1713402784000,0.00000000],[1713403104000,0.00000000],[1713403351000,0.00000000],[1713403652000,0.00000000],[1713403984000,0.00000000],[1713404304000,0.00000000],[1713404551000,0.00000000],[1713404865000,0.00000000],[1713405184000,0.00000000],[1713405504000,0.00000000],[1713405760000,0.00000000],[1713406080000,0.00000000],[1713406400000,0.00000000],[1713406651000,0.00000000],[1713406951000,0.00000000],[1713407264000,0.00000000],[1713407585000,0.00000000],[1713407905000,0.00000000],[1713408161000,0.00000000],[1713408481000,0.00000000],[1713408801000,0.00000000],[1713409057000,0.00000000],[1713409377000,0.00000000],[1713409697000,0.00000000],[1713409953000,0.00000000],[1713410273000,0.00000000],[1713410593000,0.00000000],[1713410912000,0.00000000],[1713411169000,0.00000000],[1713411489000,0.00000000],[1713411809000,0.00000000],[1713412065000,0.00000000],[1713412384000,0.00000000],[1713412704000,0.00000000],[1713412960000,0.00000000],[1713413280000,0.00000000],[1713413600000,0.00000000],[1713413856000,0.00000000],[1713414176000,0.00000000],[1713414496000,0.00000000],[1713414752000,0.00000000],[1713415072000,0.00000000],[1713415392000,0.00000000],[1713415712000,0.00000000],[1713415968000,0.00000000],[1713416288000,0.00000000],[1713416608000,0.00000000],[1713416864000,0.00000000],[1713417184000,0.00000000],[1713417504000,0.00000000],[1713417760000,0.00000000],[1713418080000,0.00000000],[1713418400000,0.00000000],[1713418656000,0.00000000],[1713418976000,0.00000000],[1713419297000,0.25000000],[1713419552000,1.00000000],[1713419872000,1.00000000],[1713420192000,0.25000000],[1713420465000,0.00000000],[1713420784000,0.00000000],[1713421104000,0.00000000],[1713421361000,0.00000000],[1713421680000,1.00000000],[1713422001000,1.00000000],[1713422257000,1.00000000],[1713422576000,1.00000000],[1713422897000,1.00000000],[1713423152000,1.00000000],[1713423473000,1.00000000],[1713423792000,1.20000000],[1713424112000,1.00000000],[1713424368000,1.00000000],[1713424688000,1.00000000],[1713425008000,1.50000000],[1713425264000,2.20000000],[1713425584000,1.60000000],[1713425905000,1.00000000],[1713426160000,3.00000000],[1713426480000,3.00000000],[1713426800000,2.75000000],[1713427056000,3.20000000],[1713427376000,1.60000000],[1713427696000,2.75000000],[1713427953000,4.00000000],[1713428272000,4.80000000],[1713428594000,4.20000000],[1713428912000,4.50000000],[1713429168000,2.40000000],[1713429488000,1.80000000],[1713429808000,1.25000000],[1713430064000,2.60000000],[1713430384000,5.20000000],[1713430704000,3.50000000],[1713430952000,5.00000000],[1713431252000,4.60000000],[1713431568000,1.00000000],[1713431888000,1.60000000],[1713432207000,4.75000000],[1713432464000,5.80000000],[1713432784000,3.60000000],[1713433104000,1.50000000],[1713433360000,2.60000000],[1713433681000,1.40000000],[1713434013000,2.75000000],[1713434272000,2.20000000],[1713434592000,2.80000000],[1713434912000,3.00000000],[1713435168000,2.80000000],[1713435504000,5.50000000],[1713435776000,4.80000000],[1713436112000,1.00000000],[1713436368000,1.00000000],[1713436704000,5.50000000],[1713436960000,6.00000000],[1713437313000,4.25000000],[1713437568000,1.00000000],[1713437888000,1.00000000],[1713438208000,3.25000000],[1713438465000,3.40000000],[1713438800000,6.00000000],[1713439056000,5.60000000],[1713439392000,4.00000000],[1713439712000,5.75000000],[1713439968000,5.00000000],[1713440288000,4.00000000],[1713440560000,5.40000000],[1713440881000,5.00000000],[1713441212000,2.00000000],[1713441527000,4.00000000],[1713441792000,4.25000000],[1713442080000,5.00000000],[1713442351000,5.00000000],[1713442657000,4.50000000],[1713443016000,3.50000000],[1713443280000,4.00000000],[1713443600000,4.00000000],[1713443856000,4.20000000],[1713444176000,4.00000000],[1713444512000,4.00000000],[1713444768000,4.00000000],[1713445104000,4.00000000],[1713445360000,4.00000000],[1713445680000,4.00000000],[1713445968000,4.00000000],[1713446288000,4.00000000],[1713446608000,4.00000000],[1713446864000,4.00000000],[1713447184000,3.40000000],[1713447504000,3.00000000],[1713447760000,3.00000000],[1713448080000,3.00000000],[1713448401000,2.50000000],[1713448655000,3.00000000],[1713448992000,2.80000000],[1713449312000,2.25000000],[1713449569000,0.80000000],[1713449904000,1.00000000],[1713450207000,0.75000000],[1713450463000,0.40000000],[1713450799000,0.75000000],[1713451052000,0.20000000],[1713451375000,0.00000000],[1713451695000,0.50000000],[1713451951000,0.40000000],[1713452271000,0.60000000],[1713452591000,0.00000000],[1713452852000,0.00000000],[1713453196000,0.00000000],[1713453453000,0.00000000],[1713453776000,0.00000000],[1713454096000,0.00000000],[1713454420000,0.00000000],[1713454652000,0.00000000],[1713454975000,0.00000000],[1713455295000,0.00000000],[1713455551000,0.00000000],[1713455871000,0.00000000],[1713456191000,0.00000000],[1713456511000,0.00000000],[1713456767000,0.00000000],[1713457087000,0.00000000],[1713457407000,0.00000000],[1713457663000,0.00000000],[1713457983000,0.00000000],[1713458303000,0.00000000],[1713458559000,0.00000000],[1713458879000,0.00000000],[1713459200000,0.00000000],[1713459455000,0.00000000],[1713459776000,0.00000000],[1713460096000,0.00000000],[1713460352000,0.00000000],[1713460672000,0.00000000],[1713460992000,0.00000000],[1713461313000,0.00000000],[1713461568000,0.00000000],[1713461888000,0.00000000],[1713462208000,0.00000000],[1713462464000,0.00000000],[1713462783000,0.00000000],[1713463103000,0.00000000],[1713463359000,0.00000000],[1713463679000,0.00000000],[1713463999000,0.00000000],[1713464253000,0.00000000],[1713464575000,0.00000000],[1713464895000,0.00000000],[1713465151000,0.00000000],[1713465471000,0.00000000],[1713465791000,0.00000000],[1713466111000,0.00000000],[1713466367000,0.00000000],[1713466687000,0.00000000],[1713467007000,0.00000000],[1713467263000,0.00000000],[1713467583000,0.00000000],[1713467903000,0.00000000],[1713468152000,0.00000000],[1713468479000,0.00000000],[1713468799000,0.00000000],[1713469052000,0.00000000],[1713469376000,0.00000000],[1713469695000,0.00000000],[1713469951000,0.00000000],[1713470252000,0.00000000],[1713470575000,0.00000000],[1713470895000,0.00000000],[1713471151000,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: [[1713391249000,0.00000000],[1713391377000,0.00000000],[1713391697000,0.00000000],[1713391953000,0.00000000],[1713392273000,0.00000000],[1713392593000,0.00000000],[1713392913000,0.00000000],[1713393169000,0.00000000],[1713393489000,0.00000000],[1713393809000,0.00000000],[1713394065000,0.00000000],[1713394384000,0.00000000],[1713394704000,0.00000000],[1713394960000,0.00000000],[1713395280000,0.00000000],[1713395600000,0.00000000],[1713395851000,0.00000000],[1713396151000,0.00000000],[1713396464000,0.00000000],[1713396784000,0.00000000],[1713397171000,0.00000000],[1713397360000,0.00000000],[1713397680000,0.00000000],[1713398000000,0.00000000],[1713398256000,0.00000000],[1713398576000,0.00000000],[1713398896000,0.00000000],[1713399152000,0.00000000],[1713399472000,0.00000000],[1713399792000,0.00000000],[1713400111000,0.00000000],[1713400368000,0.00000000],[1713400688000,0.00000000],[1713401008000,0.00000000],[1713401251000,0.00000000],[1713401568000,0.00000000],[1713401888000,0.00000000],[1713402208000,0.00000000],[1713402464000,0.00000000],[1713402784000,0.00000000],[1713403104000,0.00000000],[1713403351000,0.00000000],[1713403652000,0.00000000],[1713403984000,0.00000000],[1713404304000,0.00000000],[1713404551000,0.00000000],[1713404865000,0.00000000],[1713405184000,0.00000000],[1713405504000,0.00000000],[1713405760000,0.00000000],[1713406080000,0.00000000],[1713406400000,0.00000000],[1713406651000,0.00000000],[1713406951000,0.00000000],[1713407264000,0.00000000],[1713407585000,0.00000000],[1713407905000,0.00000000],[1713408161000,0.00000000],[1713408481000,0.00000000],[1713408801000,0.00000000],[1713409057000,0.00000000],[1713409377000,0.00000000],[1713409697000,0.00000000],[1713409953000,0.00000000],[1713410273000,0.00000000],[1713410593000,0.00000000],[1713410912000,0.00000000],[1713411169000,0.00000000],[1713411489000,0.00000000],[1713411809000,0.00000000],[1713412065000,0.00000000],[1713412384000,0.00000000],[1713412704000,0.00000000],[1713412960000,0.00000000],[1713413280000,0.00000000],[1713413600000,0.00000000],[1713413856000,0.00000000],[1713414176000,0.00000000],[1713414496000,0.00000000],[1713414752000,0.00000000],[1713415072000,0.00000000],[1713415392000,0.00000000],[1713415712000,0.00000000],[1713415968000,0.00000000],[1713416288000,0.00000000],[1713416608000,0.00000000],[1713416864000,0.00000000],[1713417184000,0.00000000],[1713417504000,0.00000000],[1713417760000,0.00000000],[1713418080000,0.00000000],[1713418400000,0.00000000],[1713418656000,0.00000000],[1713418976000,0.00000000],[1713419297000,0.00000000],[1713419552000,0.00000000],[1713419872000,0.00000000],[1713420192000,0.00000000],[1713420465000,0.00000000],[1713420784000,0.00000000],[1713421104000,0.00000000],[1713421361000,0.00000000],[1713421680000,0.00000000],[1713422001000,0.00000000],[1713422257000,0.00000000],[1713422576000,0.00000000],[1713422897000,0.00000000],[1713423152000,0.00000000],[1713423473000,0.00000000],[1713423792000,0.00000000],[1713424112000,0.00000000],[1713424368000,0.00000000],[1713424688000,0.00000000],[1713425008000,0.00000000],[1713425264000,0.00000000],[1713425584000,0.00000000],[1713425905000,0.00000000],[1713426160000,0.00000000],[1713426480000,0.00000000],[1713426800000,0.00000000],[1713427056000,0.00000000],[1713427376000,0.00000000],[1713427696000,0.00000000],[1713427953000,0.00000000],[1713428272000,0.00000000],[1713428594000,0.00000000],[1713428912000,0.00000000],[1713429168000,0.00000000],[1713429488000,0.00000000],[1713429808000,0.00000000],[1713430064000,0.00000000],[1713430384000,0.00000000],[1713430704000,0.00000000],[1713430952000,0.00000000],[1713431252000,0.00000000],[1713431568000,0.00000000],[1713431888000,0.00000000],[1713432207000,0.00000000],[1713432464000,0.00000000],[1713432784000,0.00000000],[1713433104000,0.00000000],[1713433360000,0.00000000],[1713433681000,0.00000000],[1713434013000,0.00000000],[1713434272000,0.00000000],[1713434592000,0.00000000],[1713434912000,0.00000000],[1713435168000,0.00000000],[1713435504000,0.00000000],[1713435776000,0.00000000],[1713436112000,0.00000000],[1713436368000,0.00000000],[1713436704000,0.00000000],[1713436960000,0.00000000],[1713437313000,0.00000000],[1713437568000,0.00000000],[1713437888000,0.00000000],[1713438208000,0.00000000],[1713438465000,0.00000000],[1713438800000,0.00000000],[1713439056000,0.00000000],[1713439392000,0.00000000],[1713439712000,0.00000000],[1713439968000,0.00000000],[1713440288000,0.00000000],[1713440560000,0.00000000],[1713440881000,0.00000000],[1713441212000,0.00000000],[1713441527000,0.00000000],[1713441792000,0.00000000],[1713442080000,0.00000000],[1713442351000,0.00000000],[1713442657000,0.00000000],[1713443016000,0.00000000],[1713443280000,0.00000000],[1713443600000,0.00000000],[1713443856000,0.00000000],[1713444176000,0.00000000],[1713444512000,0.00000000],[1713444768000,0.00000000],[1713445104000,0.00000000],[1713445360000,0.00000000],[1713445680000,0.00000000],[1713445968000,0.00000000],[1713446288000,0.00000000],[1713446608000,0.00000000],[1713446864000,0.00000000],[1713447184000,0.00000000],[1713447504000,0.00000000],[1713447760000,0.00000000],[1713448080000,0.00000000],[1713448401000,0.00000000],[1713448655000,0.00000000],[1713448992000,0.00000000],[1713449312000,0.00000000],[1713449569000,0.00000000],[1713449904000,0.00000000],[1713450207000,0.00000000],[1713450463000,0.00000000],[1713450799000,0.00000000],[1713451052000,0.00000000],[1713451375000,0.00000000],[1713451695000,0.00000000],[1713451951000,0.00000000],[1713452271000,0.00000000],[1713452591000,0.00000000],[1713452852000,0.00000000],[1713453196000,0.00000000],[1713453453000,0.00000000],[1713453776000,0.00000000],[1713454096000,0.00000000],[1713454420000,0.00000000],[1713454652000,0.00000000],[1713454975000,0.00000000],[1713455295000,0.00000000],[1713455551000,0.00000000],[1713455871000,0.00000000],[1713456191000,0.00000000],[1713456511000,0.00000000],[1713456767000,0.00000000],[1713457087000,0.00000000],[1713457407000,0.00000000],[1713457663000,0.00000000],[1713457983000,0.00000000],[1713458303000,0.00000000],[1713458559000,0.00000000],[1713458879000,0.00000000],[1713459200000,0.00000000],[1713459455000,0.00000000],[1713459776000,0.00000000],[1713460096000,0.00000000],[1713460352000,0.00000000],[1713460672000,0.00000000],[1713460992000,0.00000000],[1713461313000,0.00000000],[1713461568000,0.00000000],[1713461888000,0.00000000],[1713462208000,0.00000000],[1713462464000,0.00000000],[1713462783000,0.00000000],[1713463103000,0.00000000],[1713463359000,0.00000000],[1713463679000,0.00000000],[1713463999000,0.00000000],[1713464253000,0.00000000],[1713464575000,0.00000000],[1713464895000,0.00000000],[1713465151000,0.00000000],[1713465471000,0.00000000],[1713465791000,0.00000000],[1713466111000,0.00000000],[1713466367000,0.00000000],[1713466687000,0.00000000],[1713467007000,0.00000000],[1713467263000,0.00000000],[1713467583000,0.00000000],[1713467903000,0.00000000],[1713468152000,0.00000000],[1713468479000,0.00000000],[1713468799000,0.00000000],[1713469052000,0.00000000],[1713469376000,0.00000000],[1713469695000,0.00000000],[1713469951000,0.00000000],[1713470252000,0.00000000],[1713470575000,0.00000000],[1713470895000,0.00000000],[1713471151000,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; }