Skip to content

Find the weather location and the installer's timezone with geo.omarchy.org - #16240

Merged
emirb merged 4 commits into
quattrofrom
weather-geo
Oct 22, 2026
Merged

emirb merged 4 commits into
quattrofrom
weather-geo

Conversation

@emirb

@emirb emirb commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

With no weather location stored, Omarchy asks third parties where the machine is. The weather panel asks wttr.in twice (?format=j1 for the forecast, ?format=%l for the city), omarchy-weather-location asks it a third time, and the installer's timezone guess runs tzupdate, which queries seven geo-IP services at once.

This asks Omarchy's own geo.omarchy.org instead: one request, answered from Cloudflare's view of the network in the shape of weather.json, so parseLocationFile reads it as is.

{"name":"Amsterdam","latitude":52.37403,"longitude":4.88969,"country":"NL","timezone":"Europe/Amsterdam"}
  • Weather panel: asks geo.omarchy.org first and passes its coordinates to Open-Meteo and wttr.in through Model.effectiveLocation. The first forecast waits for the answer. If geo.omarchy.org can't be reached, the panel falls back to wttr.in's own lookup as before, and a stored location still wins.
  • omarchy-weather-location: names the detected place from geo.omarchy.org.
  • Setup form: takes its timezone guess from geo.omarchy.org. A timezone preset by the install media still wins. Without an answer, the prompt filters the full list, as it already does offline.

What the panel fetches with no location stored:

Requests
Before wttr.in/?format=j1, wttr.in/?format=%l, Open-Meteo
After geo.omarchy.org, Open-Meteo, wttr.in/52.37403,4.88969
geo.omarchy.org unreachable wttr.in/?format=j1, Open-Meteo

#16049 changes the line next to the setup form's; whichever lands second needs a small rebase. Dropping tzupdate from the base packages and the ISO follows once this ships.

emirb added 3 commits October 22, 2026 07:53
With no location stored, the weather panel asked wttr.in where the
machine is twice: once for the forecast (wttr.in/?format=j1) and once
for the city's name (wttr.in/?format=%l). omarchy-weather-location
asked it again for the name.

geo.omacom.io is Omarchy's own lookup, a Cloudflare Worker that answers
from Cloudflare's view of the network in the shape of weather.json:

  {"name":"Amsterdam","latitude":52.37403,"longitude":4.88969,
   "country":"NL","timezone":"Europe/Amsterdam"}

so parseLocationFile reads it as is. The panel now asks it first and
uses its coordinates, through Model.effectiveLocation, for Open-Meteo and
wttr.in alike. The first fetch waits for the answer rather than let
wttr.in look the machine up meanwhile. If geo.omacom.io cannot be
reached, the panel falls back to wttr.in's own lookup as before. A
stored location still wins over the detected one.

In a 4.0 edge VM (a17a001, emulated), the shell's fetches after a
restart with no location stored:
  before: wttr.in/?format=j1, wttr.in/?format=%l, then Open-Meteo
  after:  geo.omacom.io, then Open-Meteo and wttr.in/52.37403,4.88969
With geo.omacom.io unreachable it fell back to wttr.in/?format=j1, and
storing and clearing a location fetched the same as before the change.
The setup form's timezone guess ran tzupdate, which asks seven geo-IP
services at once (geoip.chrisdown.name, ipbase, ipapi.co, worldtimeapi,
reallyfreegeoip, ipwho.is, ipinfo). It now asks geo.omacom.io, Omarchy's
own lookup, for the timezone. When it cannot be reached the prompt
falls back to filtering the full list, as it already did offline, and a
timezone preset by the install media still wins.

In a 4.0 edge VM with the real curl, jq and timedatectl, the prompt
preselected Europe/Amsterdam from geo.omacom.io.
The geo Worker now answers on omarchy.org, next to Omarchy's other
services such as ntp.omarchy.org. Same Worker, same JSON. geo.omacom.io
no longer resolves.
@emirb emirb changed the title Find the weather location and the installer's timezone with geo.omacom.io Find the weather location and the installer's timezone with geo.omarchy.org Oct 22, 2026
@emirb
emirb marked this pull request as ready for review October 22, 2026 08:33
@greptile-apps

greptile-apps Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the previously reported missing weather icon is fixed.

Summary

The PR uses geo.omarchy.org to find the weather location and suggest the installer's timezone.

  • The weather panel uses geo.omarchy.org to find an automatic location.
  • The weather-location command prints the city found by geo.omarchy.org.
  • The setup form uses geo.omarchy.org to suggest a timezone.

Reviews (3) · Last reviewed commit: "Show wttr.in's weather icon when Open-Me..." · Reviewed by Greptile

Comment thread shell/plugins/panels/weather/Panel.qml Resolved
…tion

The panel let wttr.in fill an empty icon only when no coordinates were
known. Once geo.omarchy.org supplied coordinates for an install with no
stored location, a failed Open-Meteo fetch left the icon empty, and the
bar hides the weather widget when it has no icon.

Gate the fallback on a stored location's coordinates again, as before
geo.omarchy.org: wttr.in fills the icon until Open-Meteo answers, and
Open-Meteo's icon replaces it when it does.
@omarchybot omarchybot added the enhancement New feature or request label Oct 22, 2026
@emirb
emirb merged commit 46ef114 into quattro Oct 22, 2026
2 checks passed
@emirb emirb added this to the 4.5 milestone Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants