vbguyny / ws4kp

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

Marine Forecast shows "NaN" or "NaNkts" when no data is available for ocean / lake conditions. #105

Open bradtchapman opened 1 year ago

bradtchapman commented 1 year ago

Hello,

I love that you built this very faithful clone of the old Weather Channel station. It's brilliant.

On a forecast for Big Bear City (a mountain town), the marine forecast showed "NaNkts" , which looks weird.

When the weather service fails to return data, or no data is available for the given area, I would expect the screen to show "---" (hypens) instead.

See attached screenshot.

Details: Location: Big Bear City, CA Station Id: KL35 Radar Id: SGX Zone Id: CAZ055

Screenshot 2023-11-23 at 8 58 12 PM
bradtchapman commented 1 year ago

The NaN issue appears in Chrome as well, so this is not specific to Safari.

Screenshot 2023-11-24 at 1 17 27 AM