Skip to content

omamobile-owl-widgets 0.1.2, omamobile-shell 0.2.90: weather widgets from Open-Meteo, wttr.in gone - #366

Merged
derekross merged 3 commits into
mainfrom
weather-widgets-open-meteo
Nov 3, 2026
Merged

derekross merged 3 commits into
mainfrom
weather-widgets-open-meteo

Conversation

@derekross

@derekross derekross commented Nov 2, 2026 •

Copy link
Copy Markdown
Owner

wttr.in refused connections from both the laptop and the phone today, so the Today widget showed only the date. The maintainer decided (2026-11-02) to drop wttr.in everywhere: weather comes from Open-Meteo, the same source the phone's own weather service (omamobile-weather) uses.

What changes

omamobile-owl-widgets 0.1.2 ships its own copies of the store widgets that used wttr.in, in packages/omamobile-owl-widgets/overrides/. update-index.js indexes them and install checks them against the index's sha256, as it does the store's files. The pinned store commit is unchanged. The new packages/omamobile-owl-widgets/README.md lists how each copy differs from the store and says the change should go upstream.

Widget Store → ours Change
simonschubert/today 1.1 → 1.1.1 Current conditions, the next 24 h, 3 days, wind, humidity, rain, UV, pressure, visibility, sunrise and sunset from api.open-meteo.com. Open-Meteo has no moon phase, so it is worked out from the date. The yr.no link stays.
simonschubert/forecast 1.2 → 1.2.1 Same source, fetched with http() instead of curl | jq, so it no longer runs commands or needs curl and jq
simonschubert/sun-and-moon 1.2 → 1.2.1 Sunrise and sunset from Open-Meteo through http() (no commands); the moon from the date
simonschubert/air-and-pollen 1.1 → 1.1.1 Already used the air-quality API. The place now comes from Open-Meteo geocoding or the phone's location
simonschubert/planes-overhead 1.1 → 1.1.1 Place from Open-Meteo geocoding or the phone's location; OpenSky unchanged
ssalentin/red-panda 1.1 → 1.1.1 Rain comes from the phone's own weather reading (~/.local/state/omamobile/weather.json, file(...) optional, so owl: 5) instead of wttr.in by IP. It no longer uses the internet.
setiapam/omaprayer 1.2 → 1.2.1 No IP location: "auto" now shows "set a city" instead of a guessed city's prayer times

How the weather copies find the place:

  • "lat,lon" in city: the home screen's GeoClue position, as OwlCell feeds it today. It goes straight into the request.
  • A city name: it is looked up with geocoding-api.open-meteo.com. The result is picked with omamobile-weather's pick_place rule: the first result whose region, county, country or country code matches a part after a comma, with US state codes read as states ("Springfield, IL" is Illinois), otherwise the first result. The test checks it agrees with pick_place, since the lock screen reads Today's city too.
  • Neither: the widget shows "set a city or turn on Location". Open-Meteo has no IP lookup.

Units: a phoneUnit state that the home screen fills from the locale (°F for US locales, the same rule as omamobile-weather). Without it, the found place's country decides. Each copy credits "weather: open-meteo.com (cc by 4.0)" where it shows its source, as Open-Meteo's terms require, and keeps its author credit.

Versions: each copy is one step past the store's version, never a suffix. catalog.newer("1.1", "1.1-x") is true, so a suffixed version would have let the Store tab offer the store's wttr.in copy as an "update".

omamobile-shell 0.2.90 (main has 0.2.88; #358 holds 0.2.89):

  • HomeModel.js: the catalog source hosts for the five weather built-ins are Open-Meteo's, and the city hint no longer says "Empty: wttr.in guesses from your address".
  • New HomeModel.localeUnit. test/weather.py checks that it agrees with omamobile-weather's locale_unit.
  • OwlCell.qml sets phoneUnit.
  • test/owl-core.js, test/home-render and tests/owl/render/layout-jobs.js use Open-Meteo stand-ins and fixtures.
  • Depends on omamobile-owl-widgets>=0.1.2.

Docs: docs/owl-review/README.md (new note, regenerated approval rows, 19 of 47 now pass), and a note in docs/WIDGET-INTEROP-PLAN.md. tests/owl/port-approvals.js reads our copies, and forecast is now approved after migration.

Which widgets ask for approval again

An approval holds for the exact command strings the compiler prints, and a URL built from widget values is listed without its host (approvalMatches).

  • Ask again (their lists changed): Today, Forecast, Sun and moon, and store copies of red panda and omaprayer. Each shows "Before it runs: …, Tap to review" once. Red panda asks to read the weather file.
  • Keep their approval silently: Air and pollen and Planes overhead. Their lists are unchanged (two built URLs each), so they move from wttr.in to Open-Meteo's place lookup without asking. A typed city goes there, as it went to wttr.in; the phone's position never does.

Putting the hosts into the approval record would close that gap; it predates this PR and belongs in its own.

Review fixes (round 40)

  • Today's visibility in imperial mode: with precipitation_unit=inch Open-Meteo answers in feet, so Today now converts from hourly_units. Wind and rain come in the units requested; pressure is always hPa. Tested with a feet fixture and a metres one.
  • "Town, Region" uses pick_place's rule, with tests.
  • overrides/LICENSE (the store's MIT), and a "Modified from omarchy-widgets widgets//widget.owl@b63886b …" first line in each copy.
  • Omaprayer's "auto" asks for a city.
  • A comment explains why the geocoding and first forecast requests always go out: the fixed host the approval sheet names.

Left as it is

  • packages/omamobile-shell/widgets/OWL.md still has wttr.in in its examples. It is Simon Schubert's language guide, vendored unchanged as its header states.
  • weatherIcon() still takes the older World Weather Online codes, and our copies map WMO codes onto them. Only the comment changed.

Tests (laptop only, no phone)

  • packages/omamobile-owl-widgets/test/all, with the new test/open-meteo.js: every copy compiles and names only Open-Meteo hosts plus its own service. It drives each copy with made-up Open-Meteo answers through our OWL runtime and checks URLs, rounding, region pick, units, WMO words, the credit, the "set a city or turn on Location" message, the moon, red panda's rain and omaprayer's auto.
  • Also: every copy is indexed and install ships it in place of the store's.
  • packages/omamobile-shell/test/all, tests/all and tools/pr-check origin/main all pass.
  • Not run here: test/home-render and tests/owl conformance (they need the OWL container).

To check on the phone

  1. Install both packages (owl-widgets first) and restart the shell. Today, Forecast and Sun and moon ask for approval once, and the sheet lists the Open-Meteo hosts.
  2. With Location on and "Use my location" set, Today shows the temperature, the words, "your location" and °F on a US locale. Tap it: the next 24 hours, 3 days, wind, UV, pressure, visibility, sunrise and sunset, the moon, and the Open-Meteo credit.
  3. Type a city ("State College, PA") on Today's screen: the place name and country appear.
  4. Turn Location off and clear the city: the tile reads "set a city or turn on Location".
  5. On a US locale, Today's visibility is a sensible number of miles (about 6-25), not about 80.
  6. Air and pollen and Planes overhead keep running without asking for approval again.
  7. Forecast, Sun and moon, Air and pollen and Planes overhead each show data.
  8. If a red panda is placed, it shelters when omamobile-weather show reports rain.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d

derekross and others added 3 commits November 2, 2026 18:43
…from Open-Meteo

wttr.in refused connections from both the laptop and the phone on
2026-11-02, so the Today widget showed only the date. The phone's own
weather service (omamobile-weather) already uses Open-Meteo, and the
maintainer decided to drop wttr.in everywhere.

omamobile-owl-widgets ships its own copies of the store widgets that used
it (overrides/, indexed and sha256-checked like the store's files):
today, forecast, sun and moon, air and pollen, planes overhead, red panda
and omaprayer. Each keeps its look: current conditions, the next 24 hours,
three days, wind, UV, sunrise and sunset come from api.open-meteo.com; a
typed city is looked up with geocoding-api.open-meteo.com (the result
matching "Town, Region", else the first); the phone's "lat,lon" goes
straight in; with neither the widget says "set a city or turn on
Location", since Open-Meteo has no IP location. The moon phase is worked
out from the date. Forecast and sun and moon fetch with http() now, so
they no longer run curl and jq. Red panda reads the phone's weather
reading instead of the internet; omaprayer's "auto" uses its own default
city. Each credits Open-Meteo (CC BY 4.0) and is one version step past the
store's. Their hosts changed, so earlier approvals ask again.

omamobile-shell: the catalog's sources and city descriptions name
Open-Meteo, OwlCell gives the copies the phone's locale unit as their
phoneUnit state (HomeModel.localeUnit, the same rule as omamobile-weather,
which test/weather.py checks), and the OWL tests and render fixtures use
Open-Meteo answers. It depends on omamobile-owl-widgets 0.1.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
# Conflicts:
#	packages/omamobile-shell/version
… the Open-Meteo copies

From the review of #366:

- Today showed visibility about 3.3 times too large in imperial mode:
  with precipitation_unit=inch Open-Meteo answers visibility in feet
  (hourly_units.visibility "ft"). Today now converts from the unit the
  answer reports; wind and rain come in the units asked for and pressure
  is always hPa. The test has a feet fixture and a metres one.
- "Town, Region" now picks the place as omamobile-weather's pick_place
  does (each part after a comma, US state codes read as states), since
  the lock screen reads Today's city too: "Springfield, IL" is Illinois
  in both. The test runs pick_place on the same answers.
- Not every copy asks for approval again: approvals compare command
  strings, and air and pollen and planes overhead kept theirs. The
  package README and the owl-review note now say which five ask.
- overrides/LICENSE carries the store's MIT licence, and each copy's
  first line names the store file and commit it was modified from.
- Omaprayer's "auto" asks for a city instead of showing Jakarta's
  prayer times.
- A comment says why the geocoding and first forecast requests always
  go out (the fixed host the approval sheet names).

omamobile-shell takes 0.2.90: main has 0.2.88 (#362) and #358 holds
0.2.89.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
@derekross derekross changed the title omamobile-owl-widgets 0.1.2, omamobile-shell 0.2.87: weather widgets from Open-Meteo, wttr.in gone omamobile-owl-widgets 0.1.2, omamobile-shell 0.2.90: weather widgets from Open-Meteo, wttr.in gone Nov 3, 2026
@derekross
derekross merged commit 5b9c15f into main Nov 3, 2026
2 checks passed
@derekross
derekross deleted the weather-widgets-open-meteo branch November 3, 2026 00:28
derekross added a commit that referenced this pull request Nov 9, 2026
test/weather.py (since 0.2.90, #366) runs plugins/omamobile.home/HomeModel.js
under node, but the PKGBUILD never said so. CI's runner and the build image
have node, so nothing noticed until tools/phone-install-package built the
shell on the Pixel 7 Pro, which has no node: check() failed at
"omamobile-weather" and the package wasn't installed (2026-11-08, while
installing #420 for its test). phone-install-package installs a package's
checkdepends for the build and removes them afterwards, so with this line
the phone built and installed it and nodejs was gone again.

No version change: the package's files are the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
robertzas pushed a commit to robertzas/omarchy-mobile that referenced this pull request Nov 14, 2026
…from Open-Meteo, wttr.in gone (derekross#366)

wttr.in refused connections from the laptop and the phone, so the Today widget showed only the date. Seven OWL store widgets now ship as override copies on Open-Meteo (today, forecast, sun-and-moon, air-and-pollen, planes-overhead) or on the phone's own weather file (red panda), and omaprayer's IP lookup is gone ('set a city'). Places: lat,lon from the phone, or a typed city through Open-Meteo's geocoding with omamobile-weather's pick_place rule (US state codes); units from the phone's locale, converted from Open-Meteo's own unit fields (visibility comes in feet in imperial mode). Each copy credits Open-Meteo (CC BY 4.0), keeps its author's credit, and says what it was modified from (MIT, overrides/LICENSE). The store pin and sha256 checks are unchanged. Today, forecast, sun and moon, red panda and omaprayer ask for approval once; air and pollen and planes overhead keep theirs. omamobile-owl-widgets 0.1.2, omamobile-shell 0.2.90.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BeEcdVeSfyLCbijF8XQF1d
robertzas pushed a commit to robertzas/omarchy-mobile that referenced this pull request Nov 14, 2026
test/weather.py (since 0.2.90, derekross#366) runs plugins/omamobile.home/HomeModel.js
under node, but the PKGBUILD never said so. CI's runner and the build image
have node, so nothing noticed until tools/phone-install-package built the
shell on the Pixel 7 Pro, which has no node: check() failed at
"omamobile-weather" and the package wasn't installed (2026-11-08, while
installing derekross#420 for its test). phone-install-package installs a package's
checkdepends for the build and removes them afterwards, so with this line
the phone built and installed it and nodejs was gone again.

No version change: the package's files are the same.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant