Skip to content

Restore WU adjustments without solar data - #182

Merged
rayshobby merged 2 commits into
masterfrom
fix/wu-missing-eto-inputs
Aug 16, 2026
Merged

rayshobby merged 2 commits into
masterfrom
fix/wu-missing-eto-inputs

Conversation

@rayshobby

Copy link
Copy Markdown
Member

Summary

  • restore Zimmerman and ETo adjustments for Weather Underground stations that do not report optional solar or wind measurements
  • apply the legacy zero fallback only when a measurement is unavailable throughout the returned history
  • preserve 3.1.0 truncation and error behavior for intermittent sensor gaps
  • keep provider cache values unchanged so WeatherSensor output still distinguishes unavailable measurements from measured zeroes
  • prepare Weather Server 3.1.1

Regression

Weather Server 3.1.0 required WU wind and solar values while constructing daily history. Stations without a solar sensor therefore returned error 10 for both Zimmerman and ETo, even though Zimmerman does not use those fields and older versions treated missing ETo inputs as zero.

Validation

  • npm ci
  • npm test: 75 passing
  • npx tsc --noEmit
  • npm run build
  • npm audit --omit=dev: 0 vulnerabilities
  • replayed the reporter's 155-observation WU payload through /1, /3 JSON, /3 legacy format, and /weatherSensorData
  • verified intermittent middle-day gaps truncate history and newest-day gaps remain errors

Allow Weather Underground history to remain usable when a personal weather station does not provide optional wind or solar measurements. Apply the legacy zero fallback only when a measurement is absent throughout the returned history, while preserving 3.1.0 truncation and error behavior for intermittent sensor gaps. Keep cached provider data unchanged so WeatherSensor output still distinguishes unavailable values from measured zeroes. Add regression coverage for WU, Zimmerman, ETo, and WeatherSensor behavior.
@rayshobby
rayshobby merged commit 07b3689 into master Aug 16, 2026
7 checks passed
@rayshobby
rayshobby deleted the fix/wu-missing-eto-inputs branch August 16, 2026 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant