Skip to content

Make weather widgets location- and units-aware#5745

Open
twagner12 wants to merge 5 commits into
basecamp:devfrom
twagner12:weather-location
Open

Make weather widgets location- and units-aware#5745
twagner12 wants to merge 5 commits into
basecamp:devfrom
twagner12:weather-location

Conversation

@twagner12
Copy link
Copy Markdown
Contributor

@twagner12 twagner12 commented May 10, 2026

The weather widgets currently auto-detect both location and units from geo-IP, which fails on VPNs and on US locations that prefer metric (or vice versa). This adds:

Location

  • omarchy weather location / set-location / clear-location
  • walker picker via omarchy menu weather

Units

  • omarchy weather units / set-units (metric|imperial) / clear-units
  • walker picker reachable from the Setup → Weather menu

The Weather setup submenu now also dispatches via omarchy-menu weather, so a waybar right-click can be bound straight to it.

When no value is configured, behavior is identical to today — wttr.in auto-detects from the request.

`omarchy-weather-icon` and `omarchy-weather-status` now read
`~/.config/omarchy/current/weather.location` when present and pass it to
wttr.in. When the file is absent or empty, the URL is unchanged
(`https://wttr.in?format=...`) and behavior is identical to before, so
auto-detect remains the default.

Adds four small CLI commands:

  omarchy weather location          show current value
  omarchy weather set-location <x>  persist <x> (city, "City, ST", or zip)
  omarchy weather clear-location    delete the file, return to auto-detect
  omarchy menu weather              walker prompt that calls set-location

No `omarchy-menu` wiring; users can keybind `omarchy menu weather` or run
it from the CLI. Spaces in locations are encoded as `+` for wttr.in.
Copilot AI review requested due to automatic review settings May 10, 2026 23:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Menu structure based on basecamp#5714 by NjengaFelix.

Co-Authored-By: Felix Njenga <32095327+NjengaFelix@users.noreply.github.com>
twagner12 added 3 commits May 14, 2026 14:04
Wires `omarchy-menu weather` to open the Weather setup submenu
(Location, Units) so it can be bound to waybar's right-click handler.
Copilot AI review requested due to automatic review settings May 14, 2026 19:26
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.

@twagner12 twagner12 changed the title Make weather widgets location-aware Make weather widgets location- and units-aware May 14, 2026
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.

2 participants