var graphs = {}; $(document).ready(function() { dataset = [ { label: 'Teplota (°C)', data: [[1659391200000,21.30000000],[1659391800000,21.50000000],[1659392400000,21.50000000],[1659393000000,21.40000000],[1659393600000,21.30000000],[1659394200000,21.20000000],[1659394800000,21.10000000],[1659395400000,21.10000000],[1659396000000,21.00000000],[1659396600000,21.10000000],[1659397200000,21.10000000],[1659397800000,21.00000000],[1659398400000,20.80000000],[1659399000000,20.80000000],[1659399600000,21.10000000],[1659400200000,21.20000000],[1659400800000,20.70000000],[1659401400000,20.10000000],[1659402000000,19.60000000],[1659402600000,19.30000000],[1659403200000,19.10000000],[1659403800000,19.40000000],[1659404400000,19.80000000],[1659405000000,20.00000000],[1659405600000,20.00000000],[1659406200000,20.10000000],[1659406800000,20.20000000],[1659407400000,20.30000000],[1659408000000,20.10000000],[1659408600000,20.00000000],[1659409200000,20.00000000],[1659409800000,20.00000000],[1659410400000,20.10000000],[1659411000000,19.90000000],[1659411600000,19.70000000],[1659412200000,19.50000000],[1659412800000,19.60000000],[1659413400000,19.60000000],[1659414000000,19.60000000],[1659414600000,19.90000000],[1659415200000,20.20000000],[1659415800000,21.00000000],[1659416400000,21.40000000],[1659417000000,21.70000000],[1659417600000,22.30000000],[1659418200000,22.40000000],[1659418800000,22.20000000],[1659419400000,22.60000000],[1659420000000,22.70000000],[1659420600000,22.80000000],[1659421200000,23.00000000],[1659421800000,23.30000000],[1659422400000,23.70000000],[1659423000000,24.00000000],[1659423600000,24.20000000],[1659424200000,24.90000000],[1659424800000,25.10000000],[1659425400000,25.20000000],[1659426000000,25.50000000],[1659426600000,25.80000000],[1659427200000,26.00000000],[1659427800000,26.40000000],[1659428400000,25.80000000],[1659429000000,26.50000000],[1659429600000,26.60000000],[1659430200000,27.40000000],[1659430800000,27.40000000],[1659431400000,26.70000000],[1659432000000,26.80000000],[1659432600000,26.90000000],[1659433200000,26.70000000],[1659433800000,26.60000000],[1659434400000,26.80000000],[1659435000000,26.70000000],[1659435600000,26.40000000],[1659436200000,26.30000000],[1659436800000,26.00000000],[1659437400000,26.40000000],[1659438000000,27.60000000],[1659438600000,28.10000000],[1659439200000,28.80000000],[1659439800000,29.20000000],[1659440400000,29.00000000],[1659441000000,28.80000000],[1659441600000,29.00000000],[1659442200000,28.80000000],[1659442800000,28.70000000],[1659443400000,29.20000000],[1659444000000,29.00000000],[1659444600000,29.20000000],[1659445200000,28.90000000],[1659445800000,28.90000000],[1659446400000,28.70000000],[1659447000000,27.70000000],[1659447600000,27.80000000],[1659448200000,27.70000000],[1659448800000,28.80000000],[1659449400000,29.00000000],[1659450000000,29.00000000],[1659450600000,29.20000000],[1659451200000,29.10000000],[1659451800000,28.70000000],[1659452400000,28.60000000],[1659453000000,28.60000000],[1659453600000,28.50000000],[1659454200000,28.40000000],[1659454800000,28.40000000],[1659455400000,28.60000000],[1659456000000,28.30000000],[1659456600000,27.80000000],[1659457200000,27.80000000],[1659458400000,27.20000000],[1659459000000,26.60000000],[1659459600000,26.20000000],[1659460200000,25.80000000],[1659460800000,25.30000000],[1659461400000,25.10000000],[1659462000000,24.80000000],[1659462600000,24.50000000],[1659463200000,24.30000000],[1659463800000,24.00000000],[1659464400000,23.80000000],[1659465000000,23.60000000],[1659465600000,23.40000000],[1659466200000,23.30000000],[1659466800000,23.20000000],[1659467400000,23.20000000],[1659468000000,23.00000000],[1659468600000,22.90000000],[1659469200000,22.80000000],[1659469800000,22.60000000],[1659470400000,22.50000000],[1659471000000,22.40000000],[1659471600000,22.30000000],[1659472200000,22.20000000],[1659472800000,21.90000000],[1659473400000,21.70000000],[1659474000000,21.10000000],[1659474600000,20.80000000],[1659475200000,21.00000000],[1659475800000,21.50000000],[1659476400000,21.70000000],[1659477000000,21.70000000],[1659477600000,21.70000000],], color: '#d6212a' }, { label: 'Rosný bod (°C)', data: [[1659391200000,15],[1659391800000,14.8],[1659392400000,14.6],[1659393000000,14.4],[1659393600000,14.3],[1659394200000,14.1],[1659394800000,14.1],[1659395400000,14.1],[1659396000000,14],[1659396600000,14.1],[1659397200000,14],[1659397800000,14],[1659398400000,13.9],[1659399000000,14.1],[1659399600000,14.3],[1659400200000,14.4],[1659400800000,14.3],[1659401400000,14.2],[1659402000000,14.1],[1659402600000,14.2],[1659403200000,14.2],[1659403800000,14.3],[1659404400000,14.5],[1659405000000,14.5],[1659405600000,14.5],[1659406200000,14.6],[1659406800000,14.6],[1659407400000,14.6],[1659408000000,14.4],[1659408600000,14.5],[1659409200000,14.6],[1659409800000,14.6],[1659410400000,14.6],[1659411000000,14.5],[1659411600000,14.6],[1659412200000,14.5],[1659412800000,14.7],[1659413400000,14.7],[1659414000000,14.7],[1659414600000,14.8],[1659415200000,15],[1659415800000,15.4],[1659416400000,15.5],[1659417000000,15.6],[1659417600000,15.8],[1659418200000,15.7],[1659418800000,15.8],[1659419400000,15.9],[1659420000000,15.9],[1659420600000,16.1],[1659421200000,16.2],[1659421800000,16.5],[1659422400000,16.6],[1659423000000,16.4],[1659423600000,16.4],[1659424200000,16.7],[1659424800000,16],[1659425400000,15.6],[1659426000000,15.7],[1659426600000,15.6],[1659427200000,15.6],[1659427800000,15.7],[1659428400000,15.3],[1659429000000,15.8],[1659429600000,15.5],[1659430200000,16.3],[1659430800000,16.1],[1659431400000,16],[1659432000000,16],[1659432600000,16.1],[1659433200000,16],[1659433800000,16.2],[1659434400000,15.8],[1659435000000,15.6],[1659435600000,15.8],[1659436200000,15.5],[1659436800000,15.1],[1659437400000,15],[1659438000000,15.6],[1659438600000,15.5],[1659439200000,15.9],[1659439800000,15.4],[1659440400000,14.9],[1659441000000,14.8],[1659441600000,15.3],[1659442200000,15.5],[1659442800000,15.3],[1659443400000,15.4],[1659444000000,15],[1659444600000,14.8],[1659445200000,14.7],[1659445800000,14.9],[1659446400000,14.8],[1659447000000,14.3],[1659447600000,14.6],[1659448200000,14.7],[1659448800000,14.9],[1659449400000,14.5],[1659450000000,14.1],[1659450600000,14.2],[1659451200000,14.1],[1659451800000,13.6],[1659452400000,13.7],[1659453000000,13.8],[1659453600000,13.9],[1659454200000,13.8],[1659454800000,13.6],[1659455400000,13.6],[1659456000000,13.2],[1659456600000,12.8],[1659457200000,13.2],[1659458400000,13.7],[1659459000000,13.5],[1659459600000,13.4],[1659460200000,13.3],[1659460800000,13.3],[1659461400000,13.5],[1659462000000,13.7],[1659462600000,13.7],[1659463200000,13.7],[1659463800000,13.7],[1659464400000,13.9],[1659465000000,13.9],[1659465600000,13.9],[1659466200000,13.9],[1659466800000,14],[1659467400000,14],[1659468000000,13.9],[1659468600000,13.8],[1659469200000,13.7],[1659469800000,13.6],[1659470400000,13.5],[1659471000000,13.4],[1659471600000,13.5],[1659472200000,13.5],[1659472800000,13.6],[1659473400000,13.6],[1659474000000,13.4],[1659474600000,13.4],[1659475200000,13.7],[1659475800000,13.9],[1659476400000,13.9],[1659477000000,13.9],[1659477600000,14],], 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: [[1659391200000,67.40000000],[1659391800000,65.80000000],[1659392400000,65.00000000],[1659393000000,64.40000000],[1659393600000,64.40000000],[1659394200000,64.20000000],[1659394800000,64.40000000],[1659395400000,64.40000000],[1659396000000,64.60000000],[1659396600000,64.40000000],[1659397200000,64.20000000],[1659397800000,64.40000000],[1659398400000,65.00000000],[1659399000000,65.60000000],[1659399600000,65.40000000],[1659400200000,65.20000000],[1659400800000,67.00000000],[1659401400000,68.80000000],[1659402000000,70.60000000],[1659402600000,72.40000000],[1659403200000,73.40000000],[1659403800000,72.60000000],[1659404400000,71.60000000],[1659405000000,70.80000000],[1659405600000,70.60000000],[1659406200000,70.60000000],[1659406800000,70.40000000],[1659407400000,69.80000000],[1659408000000,70.00000000],[1659408600000,70.60000000],[1659409200000,71.20000000],[1659409800000,71.00000000],[1659410400000,70.80000000],[1659411000000,71.40000000],[1659411600000,72.40000000],[1659412200000,73.20000000],[1659412800000,73.60000000],[1659413400000,73.60000000],[1659414000000,73.60000000],[1659414600000,72.80000000],[1659415200000,72.00000000],[1659415800000,70.40000000],[1659416400000,69.20000000],[1659417000000,68.20000000],[1659417600000,66.80000000],[1659418200000,66.00000000],[1659418800000,67.00000000],[1659419400000,66.20000000],[1659420000000,65.40000000],[1659420600000,66.00000000],[1659421200000,65.60000000],[1659421800000,65.60000000],[1659422400000,64.40000000],[1659423000000,62.60000000],[1659423600000,62.00000000],[1659424200000,60.40000000],[1659424800000,57.20000000],[1659425400000,55.40000000],[1659426000000,54.60000000],[1659426600000,53.40000000],[1659427200000,52.80000000],[1659427800000,51.80000000],[1659428400000,52.40000000],[1659429000000,52.00000000],[1659429600000,50.60000000],[1659430200000,50.80000000],[1659430800000,50.00000000],[1659431400000,52.00000000],[1659432000000,51.60000000],[1659432600000,51.60000000],[1659433200000,52.00000000],[1659433800000,52.80000000],[1659434400000,50.80000000],[1659435000000,50.60000000],[1659435600000,52.20000000],[1659436200000,51.60000000],[1659436800000,51.00000000],[1659437400000,49.60000000],[1659438000000,48.00000000],[1659438600000,46.40000000],[1659439200000,45.60000000],[1659439800000,43.20000000],[1659440400000,42.20000000],[1659441000000,42.40000000],[1659441600000,43.40000000],[1659442200000,44.40000000],[1659442800000,44.20000000],[1659443400000,43.20000000],[1659444000000,42.60000000],[1659444600000,41.40000000],[1659445200000,42.00000000],[1659445800000,42.40000000],[1659446400000,42.60000000],[1659447000000,43.80000000],[1659447600000,44.40000000],[1659448200000,45.00000000],[1659448800000,42.80000000],[1659449400000,41.20000000],[1659450000000,40.20000000],[1659450600000,39.80000000],[1659451200000,39.80000000],[1659451800000,39.40000000],[1659452400000,40.00000000],[1659453000000,40.20000000],[1659453600000,40.80000000],[1659454200000,40.80000000],[1659454800000,40.20000000],[1659455400000,39.80000000],[1659456000000,39.40000000],[1659456600000,39.60000000],[1659457200000,40.60000000],[1659458400000,43.40000000],[1659459000000,44.60000000],[1659459600000,45.20000000],[1659460200000,46.00000000],[1659460800000,47.40000000],[1659461400000,48.60000000],[1659462000000,50.00000000],[1659462600000,51.00000000],[1659463200000,51.80000000],[1659463800000,52.80000000],[1659464400000,54.00000000],[1659465000000,54.80000000],[1659465600000,55.40000000],[1659466200000,55.80000000],[1659466800000,56.20000000],[1659467400000,56.20000000],[1659468000000,56.60000000],[1659468600000,56.60000000],[1659469200000,56.60000000],[1659469800000,56.80000000],[1659470400000,56.80000000],[1659471000000,57.00000000],[1659471600000,57.60000000],[1659472200000,58.00000000],[1659472800000,59.40000000],[1659473400000,60.00000000],[1659474000000,61.40000000],[1659474600000,62.60000000],[1659475200000,63.00000000],[1659475800000,62.00000000],[1659476400000,61.40000000],[1659477000000,61.40000000],[1659477600000,61.80000000],], 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: [[1659391200000,1016.8],[1659391800000,1016.8],[1659392400000,1016.8],[1659393000000,1016.9],[1659393600000,1017],[1659394200000,1017],[1659394800000,1017],[1659395400000,1017],[1659396000000,1017],[1659396600000,1017.1],[1659397200000,1017],[1659397800000,1017],[1659398400000,1017.1],[1659399000000,1017],[1659399600000,1016.9],[1659400200000,1016.8],[1659400800000,1016.9],[1659401400000,1016.6],[1659402000000,1016.1],[1659402600000,1016.3],[1659403200000,1016.4],[1659403800000,1016.4],[1659404400000,1016.4],[1659405000000,1016.4],[1659405600000,1016.4],[1659406200000,1016.4],[1659406800000,1017.1],[1659407400000,1017.5],[1659408000000,1017.1],[1659408600000,1016.6],[1659409200000,1016.5],[1659409800000,1016.5],[1659410400000,1016.4],[1659411000000,1016.5],[1659411600000,1016.6],[1659412200000,1016.7],[1659412800000,1016.7],[1659413400000,1016.8],[1659414000000,1017],[1659414600000,1017],[1659415200000,1017.5],[1659415800000,1017.9],[1659416400000,1017.8],[1659417000000,1017.8],[1659417600000,1017.7],[1659418200000,1017.8],[1659418800000,1017.9],[1659419400000,1017.8],[1659420000000,1017.9],[1659420600000,1017.9],[1659421200000,1018.1],[1659421800000,1018.1],[1659422400000,1018],[1659423000000,1018.1],[1659423600000,1018],[1659424200000,1017.8],[1659424800000,1017.6],[1659425400000,1017.6],[1659426000000,1017.5],[1659426600000,1017.5],[1659427200000,1017.5],[1659427800000,1017.4],[1659428400000,1017.6],[1659429000000,1017.5],[1659429600000,1017.5],[1659430200000,1017.4],[1659430800000,1017.4],[1659431400000,1017.6],[1659432000000,1017.6],[1659432600000,1017.6],[1659433200000,1017.6],[1659433800000,1017.6],[1659434400000,1017.5],[1659435000000,1017.6],[1659435600000,1017.5],[1659436200000,1017.5],[1659436800000,1017.4],[1659437400000,1017.3],[1659438000000,1017],[1659438600000,1016.8],[1659439200000,1016.6],[1659439800000,1016.4],[1659440400000,1016.4],[1659441000000,1016.4],[1659441600000,1016.3],[1659442200000,1016.3],[1659442800000,1016.3],[1659443400000,1016.1],[1659444000000,1016.2],[1659444600000,1016.1],[1659445200000,1016.2],[1659445800000,1016.2],[1659446400000,1016.3],[1659447000000,1016.5],[1659447600000,1016.4],[1659448200000,1016.4],[1659448800000,1016],[1659449400000,1015.9],[1659450000000,1015.9],[1659450600000,1015.9],[1659451200000,1015.9],[1659451800000,1015.9],[1659452400000,1016],[1659453000000,1016],[1659453600000,1016],[1659454200000,1016],[1659454800000,1015.9],[1659455400000,1015.8],[1659456000000,1015.9],[1659456600000,1016.1],[1659457200000,1016.1],[1659458400000,1016.3],[1659459000000,1016.4],[1659459600000,1016.6],[1659460200000,1016.7],[1659460800000,1016.9],[1659461400000,1017],[1659462000000,1017.1],[1659462600000,1017.3],[1659463200000,1017.4],[1659463800000,1017.6],[1659464400000,1017.7],[1659465000000,1017.9],[1659465600000,1018],[1659466200000,1018.1],[1659466800000,1018.1],[1659467400000,1018.1],[1659468000000,1018.2],[1659468600000,1018.2],[1659469200000,1018.4],[1659469800000,1018.5],[1659470400000,1018.5],[1659471000000,1018.6],[1659471600000,1018.7],[1659472200000,1018.8],[1659472800000,1018.9],[1659473400000,1019],[1659474000000,1019.1],[1659474600000,1019.2],[1659475200000,1019.1],[1659475800000,1019],[1659476400000,1018.9],[1659477000000,1019],[1659477600000,1019],], 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: 'Slnečné žiarenie (W/m2)', data: [[1659391200000,0.00000000],[1659391800000,0.00000000],[1659392400000,0.00000000],[1659393000000,0.00000000],[1659393600000,0.00000000],[1659394200000,0.00000000],[1659394800000,0.00000000],[1659395400000,0.00000000],[1659396000000,0.00000000],[1659396600000,0.00000000],[1659397200000,0.00000000],[1659397800000,0.00000000],[1659398400000,0.00000000],[1659399000000,0.00000000],[1659399600000,0.00000000],[1659400200000,0.00000000],[1659400800000,0.00000000],[1659401400000,0.00000000],[1659402000000,0.00000000],[1659402600000,0.00000000],[1659403200000,0.00000000],[1659403800000,0.00000000],[1659404400000,0.00000000],[1659405000000,0.00000000],[1659405600000,0.00000000],[1659406200000,0.00000000],[1659406800000,0.00000000],[1659407400000,0.00000000],[1659408000000,0.00000000],[1659408600000,0.00000000],[1659409200000,0.00000000],[1659409800000,0.00000000],[1659410400000,0.00000000],[1659411000000,4.00000000],[1659411600000,8.00000000],[1659412200000,12.00000000],[1659412800000,26.00000000],[1659413400000,40.00000000],[1659414000000,50.00000000],[1659414600000,40.00000000],[1659415200000,86.00000000],[1659415800000,114.00000000],[1659416400000,132.00000000],[1659417000000,148.00000000],[1659417600000,164.00000000],[1659418200000,172.00000000],[1659418800000,214.00000000],[1659419400000,236.00000000],[1659420000000,238.00000000],[1659420600000,280.00000000],[1659421200000,328.00000000],[1659421800000,348.00000000],[1659422400000,368.00000000],[1659423000000,392.00000000],[1659423600000,416.00000000],[1659424200000,444.00000000],[1659424800000,468.00000000],[1659425400000,492.00000000],[1659426000000,518.00000000],[1659426600000,540.00000000],[1659427200000,578.00000000],[1659427800000,384.00000000],[1659428400000,432.00000000],[1659429000000,694.00000000],[1659429600000,656.00000000],[1659430200000,648.00000000],[1659430800000,588.00000000],[1659431400000,632.00000000],[1659432000000,732.00000000],[1659432600000,600.00000000],[1659433200000,476.00000000],[1659433800000,530.00000000],[1659434400000,528.00000000],[1659435000000,378.00000000],[1659435600000,266.00000000],[1659436200000,188.00000000],[1659436800000,192.00000000],[1659437400000,794.00000000],[1659438000000,968.00000000],[1659438600000,842.00000000],[1659439200000,900.00000000],[1659439800000,886.00000000],[1659440400000,850.00000000],[1659441000000,830.00000000],[1659441600000,842.00000000],[1659442200000,740.00000000],[1659442800000,828.00000000],[1659443400000,780.00000000],[1659444000000,674.00000000],[1659444600000,618.00000000],[1659445200000,618.00000000],[1659445800000,558.00000000],[1659446400000,292.00000000],[1659447000000,334.00000000],[1659447600000,230.00000000],[1659448200000,642.00000000],[1659448800000,670.00000000],[1659449400000,612.00000000],[1659450000000,568.00000000],[1659450600000,542.00000000],[1659451200000,500.00000000],[1659451800000,466.00000000],[1659452400000,444.00000000],[1659453000000,414.00000000],[1659453600000,388.00000000],[1659454200000,362.00000000],[1659454800000,336.00000000],[1659455400000,306.00000000],[1659456000000,282.00000000],[1659456600000,256.00000000],[1659457200000,230.00000000],[1659458400000,146.00000000],[1659459000000,48.00000000],[1659459600000,60.00000000],[1659460200000,26.00000000],[1659460800000,24.00000000],[1659461400000,22.00000000],[1659462000000,18.00000000],[1659462600000,16.00000000],[1659463200000,12.00000000],[1659463800000,8.00000000],[1659464400000,4.00000000],[1659465000000,0.00000000],[1659465600000,0.00000000],[1659466200000,0.00000000],[1659466800000,0.00000000],[1659467400000,0.00000000],[1659468000000,0.00000000],[1659468600000,0.00000000],[1659469200000,0.00000000],[1659469800000,0.00000000],[1659470400000,0.00000000],[1659471000000,0.00000000],[1659471600000,0.00000000],[1659472200000,0.00000000],[1659472800000,0.00000000],[1659473400000,0.00000000],[1659474000000,0.00000000],[1659474600000,0.00000000],[1659475200000,0.00000000],[1659475800000,0.00000000],[1659476400000,0.00000000],[1659477000000,0.00000000],[1659477600000,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: 'Zrážky', data: [[1659391200000,0.00000000],[1659391800000,0.00000000],[1659392400000,0.00000000],[1659393000000,0.00000000],[1659393600000,0.00000000],[1659394200000,0.00000000],[1659394800000,0.00000000],[1659395400000,0.00000000],[1659396000000,0.00000000],[1659396600000,0.00000000],[1659397200000,0.00000000],[1659397800000,0.00000000],[1659398400000,0.00000000],[1659399000000,0.00000000],[1659399600000,0.00000000],[1659400200000,0.00000000],[1659400800000,0.00000000],[1659401400000,0.00000000],[1659402000000,0.00000000],[1659402600000,0.00000000],[1659403200000,0.00000000],[1659403800000,0.00000000],[1659404400000,0.00000000],[1659405000000,0.00000000],[1659405600000,0.00000000],[1659406200000,0.00000000],[1659406800000,0.00000000],[1659407400000,0.00000000],[1659408000000,0.00000000],[1659408600000,0.00000000],[1659409200000,0.00000000],[1659409800000,0.00000000],[1659410400000,0.00000000],[1659411000000,0.00000000],[1659411600000,0.00000000],[1659412200000,0.00000000],[1659412800000,0.00000000],[1659413400000,0.00000000],[1659414000000,0.00000000],[1659414600000,0.00000000],[1659415200000,0.00000000],[1659415800000,0.00000000],[1659416400000,0.00000000],[1659417000000,0.00000000],[1659417600000,0.00000000],[1659418200000,0.00000000],[1659418800000,0.00000000],[1659419400000,0.00000000],[1659420000000,0.00000000],[1659420600000,0.00000000],[1659421200000,0.00000000],[1659421800000,0.00000000],[1659422400000,0.00000000],[1659423000000,0.00000000],[1659423600000,0.00000000],[1659424200000,0.00000000],[1659424800000,0.00000000],[1659425400000,0.00000000],[1659426000000,0.00000000],[1659426600000,0.00000000],[1659427200000,0.00000000],[1659427800000,0.00000000],[1659428400000,0.00000000],[1659429000000,0.00000000],[1659429600000,0.00000000],[1659430200000,0.00000000],[1659430800000,0.00000000],[1659431400000,0.00000000],[1659432000000,0.00000000],[1659432600000,0.00000000],[1659433200000,0.00000000],[1659433800000,0.00000000],[1659434400000,0.00000000],[1659435000000,0.00000000],[1659435600000,0.00000000],[1659436200000,0.00000000],[1659436800000,0.00000000],[1659437400000,0.00000000],[1659438000000,0.00000000],[1659438600000,0.00000000],[1659439200000,0.00000000],[1659439800000,0.00000000],[1659440400000,0.00000000],[1659441000000,0.00000000],[1659441600000,0.00000000],[1659442200000,0.00000000],[1659442800000,0.00000000],[1659443400000,0.00000000],[1659444000000,0.00000000],[1659444600000,0.00000000],[1659445200000,0.00000000],[1659445800000,0.00000000],[1659446400000,0.00000000],[1659447000000,0.00000000],[1659447600000,0.00000000],[1659448200000,0.00000000],[1659448800000,0.00000000],[1659449400000,0.00000000],[1659450000000,0.00000000],[1659450600000,0.00000000],[1659451200000,0.00000000],[1659451800000,0.00000000],[1659452400000,0.00000000],[1659453000000,0.00000000],[1659453600000,0.00000000],[1659454200000,0.00000000],[1659454800000,0.00000000],[1659455400000,0.00000000],[1659456000000,0.00000000],[1659456600000,0.00000000],[1659457200000,0.00000000],[1659458400000,0.00000000],[1659459000000,0.00000000],[1659459600000,0.00000000],[1659460200000,0.00000000],[1659460800000,0.00000000],[1659461400000,0.00000000],[1659462000000,0.00000000],[1659462600000,0.00000000],[1659463200000,0.00000000],[1659463800000,0.00000000],[1659464400000,0.00000000],[1659465000000,0.00000000],[1659465600000,0.00000000],[1659466200000,0.00000000],[1659466800000,0.00000000],[1659467400000,0.00000000],[1659468000000,0.00000000],[1659468600000,0.00000000],[1659469200000,0.00000000],[1659469800000,0.00000000],[1659470400000,0.00000000],[1659471000000,0.00000000],[1659471600000,0.00000000],[1659472200000,0.00000000],[1659472800000,0.00000000],[1659473400000,0.00000000],[1659474000000,0.00000000],[1659474600000,0.00000000],[1659475200000,0.00000000],[1659475800000,0.00000000],[1659476400000,0.00000000],[1659477000000,0.00000000],[1659477600000,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; }