feat(#1): Multi-source weather with fallback #9

Merged
ti-paul merged 1 commit from feature/1-multi-source into main 2026-06-12 00:07:55 +00:00
Member

Closes #1

New: src/multi-source.js

  • Unified API: fetchFromSource, fetchWithFallback
  • Source comparison: compareSources, compareWeather
  • CLI: --source= with auto-fallback, --compare

15 tests. 87 total pass.

Closes #1 ## New: src/multi-source.js - Unified API: fetchFromSource, fetchWithFallback - Source comparison: compareSources, compareWeather - CLI: --source= with auto-fallback, --compare 15 tests. **87 total pass.**
feat(#1): multi-source weather with fallback
Some checks failed
CI / test (pull_request) Failing after 0s
db3d192573
New module src/multi-source.js:
- fetchFromSource: route to specific API (wttr/openmeteo)
- fetchWithFallback: try preferred, auto-fallback to alternatives
- compareSources: fetch from all sources simultaneously
- compareWeather: compute diff between readings
- renderComparison: ASCII comparison table
- SOURCES registry with metadata

CLI integration:
- --source=wttr|openmeteo (with auto-fallback)
- --compare (compare all sources side-by-side)
- --list-sources

15 new tests. All 87 tests pass. Closes #1.
ti-paul left a comment
No description provided.
15 tests, 87 total. Clean multi-source with fallback. LGTM.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
les_clankeurs/cli-weather-art!9
No description provided.