Possible flaw in AQ_station_popup

I think i have found a minor flaw in AQ_station_popup, but cannot find where/how to fix it. The little indicator arrow shows the same position in ‘current’ and ‘average’ when they should not. Both count the number of blocks to move the arrow based on $nr_blocks, see lines 195-199 and 211-215. See also attached picture where current shows up one block (correctly), but so does average, which should be one block to the left. All the numbers are correct. I can’t find where the $nr_blocks comes from, but it would seem the value need to be reset between the ‘current’ and ‘average’ settings.

Regards,

Jim

1 Like

Error confirmed in version AQ_station_popup.php|01|2021-02-28|

Hi Jim,

Thanks for finding this. This error is at least active for 2 1/2 years.

Attached a new version (2023-09-03) to test which should work OK.
AQ_station_popup.php.zip (5.0 KB)

Regards,
Wim

Thank you Wim! Now i just have to wait for my air quality to decline again :joy: Actually, it was Bitsostring who saw and pointed it out to me.

Regards,

Jim

@ALL

One can always check the “official” test-site TEST TEST Home Weather Station (ecoLcl version)
I updated the demo-sties-script also as they showed the same error.

Wim

Hi!

I can’t download the linked file: " Oops! That page doesn’t exist or is private.".

Update:
solved - now the file is downloadable. thx!

Oliver