From d128872a2df419798893bae2d5e7a52505ff3dc8 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 2 Dec 2026 16:25:19 +0100 Subject: clock: tap weather or temperature to open Breezy Weather Breezy (standard build) can use OpenWeatherMap, the same provider as KWGT, so the app shows the same data as the widget. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 +++- clock/src/preset.json | 18 ++++++++++++++++-- clock/tallclock.kwgt | Bin 100598 -> 100665 bytes 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index f1e03bd..24dd3b0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -53,7 +53,9 @@ phone besides KWGT. fire deep links. For a URI use `{"action": "OPEN_LINK", "url": "..."}` (VIEW intent); `url` accepts inline `$formulas$`. - Date line taps open Niagara's agenda overlay: `niagara://agenda` (Niagara - has no weather overlay link). The event line opens the event itself in Etar + has no weather overlay link). The weather icon and temperature open Breezy + Weather (`org.breezyweather/.ui.main.MainActivity`, GitHub "standard" + build; both it and KWGT use OpenWeatherMap so the numbers match). The event line opens the event itself in Etar via `$ci(url, 0)$` (a `content://com.android.calendar/events/` link). - `tf(date)` gives a localized countdown ("fra 25 minuti"); `ci(..., 0)` is the next calendar event; both need KWGT's calendar/location permissions. diff --git a/clock/src/preset.json b/clock/src/preset.json index 7b5650f..e112440 100644 --- a/clock/src/preset.json +++ b/clock/src/preset.json @@ -87,7 +87,14 @@ "fx_shadow_direction": 270.0, "fx_shadow_distance": 3.0, "fx_shadow_blur": 4.0, - "position_anchor": "CENTER" + "position_anchor": "CENTER", + "internal_events": [ + { + "type": "SINGLE_TAP", + "action": "LAUNCH_APP", + "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=org.breezyweather/.ui.main.MainActivity;end" + } + ] }, { "internal_type": "TextModule", @@ -109,7 +116,14 @@ "fx_shadow_direction": 270.0, "fx_shadow_distance": 3.0, "fx_shadow_blur": 4.0, - "position_anchor": "CENTER" + "position_anchor": "CENTER", + "internal_events": [ + { + "type": "SINGLE_TAP", + "action": "LAUNCH_APP", + "intent": "intent:#Intent;action=android.intent.action.MAIN;category=android.intent.category.LAUNCHER;component=org.breezyweather/.ui.main.MainActivity;end" + } + ] } ], "internal_events": [ diff --git a/clock/tallclock.kwgt b/clock/tallclock.kwgt index ef693c5..79d6284 100644 Binary files a/clock/tallclock.kwgt and b/clock/tallclock.kwgt differ -- cgit v1.2.3