Skip to content

weather: fetch forecasts through dms - #4110

Merged
bbedward merged 2 commits into
duxlabs-dev:masterfrom
joshii-h:weather-go
Nov 5, 2026
Merged

bbedward merged 2 commits into
duxlabs-dev:masterfrom
joshii-h:weather-go

Conversation

@joshii-h

@joshii-h joshii-h commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

The weather service now asks dms for the forecast (weather.get) instead of running one fetch per provider in QML. Providers, fallback and filling live in dux-go's weather package (duxlabs-dev/dux-go#6), the same way lyrics work. Plugins add a provider with a weather block in their manifest (command, name, url) and get the coordinates as JSON on stdin, like lyrics plugins. WeatherProviders.js is gone.

Follows bbedward's suggestion in #4086: "Probably prefer to move the fetching multiple provider logic to go, maybe dux-go or dms itself at some point."

Uses dux-go's weather package from duxlabs-dev/dux-go#6 (already in master's dux-go version). Replaces #4089 and #4090.

A meaningful part of the code was written with AI help; I have read and tested it.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Related #3871. Replaces #4089 and #4090.

Docs: duxlabs-dev/dux-docs#192

Checklist

  • My code follows the conventions in CONTRIBUTING.md
  • I have tested my changes locally
  • New user-facing strings are wrapped in I18n.tr() with translator context, reusing existing terms where possible
  • Go changes: ran make fmt, added/updated tests, make test passes, and go mod tidy is clean
  • QML changes: ran make lint-qml with no new warnings
  • I have opened a corresponding pull request in dux-docs to document any new behaviors: https://github.com/duxlabs-dev/dux-docs

@github-actions github-actions Bot added core Go daemon and CLI under core/ feature internal ui Quickshell UI under quickshell/ labels Nov 3, 2026
@joshii-h
joshii-h marked this pull request as ready for review November 5, 2026 08:10
@bbedward

bbedward commented Nov 5, 2026

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Claude review

No issues found.
Checked: Go weather handler, plugin manifest WeatherProvider and router/capabilities wiring against the lyrics equivalents; WeatherService request/cancel/serial handling, reconnect and retry paths through DMSService.sendRequest/cancelRequest/failPendingRequests, plugin provider catalog and saveProviders, PluginService weather-only plugins, removed WeatherProviders.js references, i18n and deprecated shims. dux-go's weather response shape (source/filled/forecast) was not verifiable locally. Model: claude-opus-5-5.

@bbedward
bbedward merged commit e15e9dc into duxlabs-dev:master Nov 5, 2026
5 of 6 checks passed
dux-ci Bot pushed a commit that referenced this pull request Nov 5, 2026
port 2.1

(cherry picked from commit e15e9dc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Go daemon and CLI under core/ feature internal ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants