vbguyny / ws4kp

WeatherStar 4000+
https://battaglia.ddns.net/twc
MIT License
427 stars 117 forks source link

Wind Issue #117

Closed K-A-0-S closed 6 months ago

K-A-0-S commented 6 months ago

Wind data issue preventing emulator from loading completely. I cannot load locations outside of geo or stations.js.

And the locations that do load are missing wind data. It displays NA. Consequently there are only a handful of locations that are usable. The others hang and never finish "loading".

image

After some experimentation, I found committing out the following allows for the main stations and surrounding areas to work "as intended"..... Forgot where.

image

K-A-0-S commented 6 months ago

Found it...

image

commented out "fixes" for me.

K-A-0-S commented 6 months ago

Specifically...

image

\ws4kp-master\Scripts\metars.js

vbguyny commented 6 months ago

@K-A-0-S hello! Could you please indicate your location and/or the METARS that was used to cause this to break?

K-A-0-S commented 6 months ago

Sure...

Example:

Try Baltimore City. That works. But if you try Severna Park or other surrounding cities is gets "stuck".

K-A-0-S commented 6 months ago

You can see there is an issue even with Baltimore...

image

K-A-0-S commented 6 months ago

Once I commented out the wind (shown above). Places like Severna Park work...

image

K-A-0-S commented 6 months ago

Hope that helps.

vbguyny commented 6 months ago

Very strange... I wonder was changed with METARS that broke this...

vbguyny commented 6 months ago

Fixed! I simple changed the code to log the error instead of throwing one. @K-A-0-S thanks for chasing this one down!