Repository navigation
Find the weather location and the installer's timezone with geo.omarchy.org - #16240
Merged
Merged
Conversation
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
marked this pull request as ready for review
October 22, 2026 08:33
Contributor
[Medium impact] The PR appears safe to merge; the previously reported missing weather icon is fixed. SummaryThe PR uses
Reviews (3) · Last reviewed commit: "Show wttr.in's weather icon when Open-Me..." · Reviewed by Greptile |
…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.
This was referenced Oct 22, 2026
This was referenced Nov 1, 2026
20 of 34 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With no weather location stored, Omarchy asks third parties where the machine is. The weather panel asks wttr.in twice (
?format=j1for the forecast,?format=%lfor the city),omarchy-weather-locationasks it a third time, and the installer's timezone guess runstzupdate, which queries seven geo-IP services at once.This asks Omarchy's own
geo.omarchy.orginstead: one request, answered from Cloudflare's view of the network in the shape ofweather.json, soparseLocationFilereads it as is.{"name":"Amsterdam","latitude":52.37403,"longitude":4.88969,"country":"NL","timezone":"Europe/Amsterdam"}geo.omarchy.orgfirst and passes its coordinates to Open-Meteo and wttr.in throughModel.effectiveLocation. The first forecast waits for the answer. Ifgeo.omarchy.orgcan'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 fromgeo.omarchy.org.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:
wttr.in/?format=j1,wttr.in/?format=%l, Open-Meteogeo.omarchy.org, Open-Meteo,wttr.in/52.37403,4.88969geo.omarchy.orgunreachablewttr.in/?format=j1, Open-Meteo#16049 changes the line next to the setup form's; whichever lands second needs a small rebase. Dropping
tzupdatefrom the base packages and the ISO follows once this ships.