r/shortcuts • • 1d ago

Discussion Built a local Python bridge on iPadOS (a-Shell) that lets my Apple Watch & iPhone pull flashcards, stock quotes, and clipboard notes over local Wi-Fi (V7.5)

I wanted a lightweight, zero-cloud way to trigger scripts on my iPad Pro directly from my Apple Watch using native Apple Shortcuts (Get Contents of URL).
Everything runs inside **a-Shell** using only Python’s built-in standard library (no external dependencies or API keys). Right now, the local server listens on Port 5002 across 7 routes:
**/quiz** – Deals a random flashcard (Question | Answer) from a local text file straight to my watch notification banner.
**/stocks** – Pulls live market snapshots from a customizable tickers.txt watchlist.
**/clip** – Sends dictated or typed notes from my wrist to my iPad (and automatically files anything with a | into the flashcard deck).
**/read & /clear** – Reads back the last 5 saved notes or wipes the slate clean.
**/audit & /veto** – Runs a local file/hash integrity check or shuts down the server port on command.
**How to test it:**
Save the single-file bootstrapper (install_grid.py — \[https://dpaste.org/owWOa\]) into a-Shell.
Run python install_grid.py (it unpacks the server, sample flashcards, watchlist, and [README.md](http://readme.md/)into \~/Documents/sovereign_grid).
Run python master_mesh.py and point an Apple Shortcut (Get Contents of URL -> Show Notification) to http://<YOUR-IPAD-IP>:5002/quiz.
Happy to share how the Shortcuts triggers or a-Shell keep-alive setup work if anyone else is building local iPad utilities!

2 Upvotes

4 comments sorted by

1

u/Lopsided_Energy4741 7h ago

Fair enough—you asked for two concrete use cases instead of high-level bullets, so here are two I actually run daily:

  1. Zero-Cloud Watch Spaced-Repetition Quiz (/quiz & #tag filtering): Apple Continuity can't run Python scripts on an iPad from an Apple Watch. I keep a plain-text study deck on my iPad tagged by topic (#LSAT, #trivia). One tap on my Watch fires Get Contents of URL to pull a random question straight to my wrist, flags missed cards into a review queue, and tracks mastery stats—zero iCloud sync lag, zero third-party flashcard apps, and it works on a flight or in a dead zone.
  2. Wrist-to-Hub Priority Pinning & Daily Briefing (/add & /briefing): Instead of opening Notes, Reminders, and a browser separately, speaking or tapping a quick ! task on my Watch pins it in gold at the top of my iPad dashboard with a server-side timestamp. One morning tap on /briefing pulls my pinned tasks, latest timestamped notes, and local watchlist into a single notification on my wrist.

Tease of what's already running in my current build (V50.0): clickable #tag filter pills, a one-tap Watch macro (/run) that syncs across devices and returns a full briefing in one call, offline price caching, and a sanitized single-file release builder. Appreciate you pushing for specifics.

3

u/Few-Acadia-5593 1d ago edited 7h ago

But… why? If you’re demonstrating a poc, cool but we need use cases? Why bypass the cloud? What about first party continuity? Latency? Aka pro and cons. You can’t just drop this and expect engagement

-1

u/Lopsided_Energy4741 1d ago

Fair point—here is why I built it instead of relying on standard Continuity:

• Works 100% offline / Airplane Mode: Runs purely over a local router with zero iCloud sync delays or internet required.
• Watch-to-iPad script triggers: Lets an Apple Watch trigger custom Python scripts, pull filtered flashcards, or log timestamped notes straight to local text files in one tap.
• Sub-second local latency: Direct HTTP calls on the local subnet respond instantly without waiting for iCloud background sync between devices.
• Full data ownership: Everything lives in plain local files you control rather than third-party cloud servers.

2

u/Few-Acadia-5593 7h ago

But why would I turn on airplane mode, get offline? Why would I want to run python script or log notes

All in all, what do you offer more than continuity? I know there is value but I’m trying to make you spit it out.

So far it sounds like you’re had AI do it for you and you don’t necessarily know the added value or the use cases and spoiler alert, LLM will tell you generic stuff even if you specify not generic.

So tell us 2 use cases that are dope. Or even mild