Closed Wlodarski closed 4 years ago
Another bug related to https://github.com/Wlodarski/DR-Altimeter/issues/4 and https://github.com/Wlodarski/DR-Altimeter/issues/6 Wunderground, at the hour, skips the hourly prediction, making DR-Altimeter confused and outputting the wrong text table.
Wrong output :
=============================================================================== 6h55 1010.84 hPa 6h05[7], 6h11[6], 6h17[5], 6h24[4], 6h30[3], 6h37[2], 6h44[1], 6h51[0], 6h58[-1] ------------------------------------------------------------------------------- 7h 1011.80 hPa -8.0m -8.0m 7h03[fix], 7h05[-2], 7h13[-3], 7h21[-4], 7h30[-5], 7h38[-6], 7h47[-7], 7h57[-8] ------------------------------------------------------------------------------- 8h 1012.40 hPa -13.0m -5.0m 8h07[-9], 8h18[-10], 8h29[-11], 8h41[-12], 8h54[-13] -------------------------------------------------------------------------------
It should be :
=============================================================================== 6h55 1010.84 hPa 6h05[7], 6h11[6], 6h17[5], 6h24[4], 6h30[3], 6h37[2], 6h44[1], 6h51[0], 6h58[-1] ------------------------------------------------------------------------------- 7h 7h03[fix], 7h05[-2], 7h13[-3], 7h21[-4], 7h30[-5], 7h38[-6], 7h47[-7], 7h57[-8] ------------------------------------------------------------------------------- 8h 1011.80 hPa -8.0m -8.0m 8h07[-9], 8h18[-10], 8h29[-11], 8h41[-12], 8h54[-13] -------------------------------------------------------------------------------
First solution that comes in mind is to keep constantly in mind that index is not always synonymous with dhour.
index
dhour
https://github.com/Wlodarski/DR-Altimeter/commit/9a6d8705eddd7cf27d7c6d8fcc28febb2522f3ae solves this issue
Another bug related to https://github.com/Wlodarski/DR-Altimeter/issues/4 and https://github.com/Wlodarski/DR-Altimeter/issues/6 Wunderground, at the hour, skips the hourly prediction, making DR-Altimeter confused and outputting the wrong text table.
Wrong output :
It should be :
First solution that comes in mind is to keep constantly in mind that
index
is not always synonymous withdhour
.