feat(settings): QR codes for network access#238
Merged
Conversation
When server mode is on, show a scannable QR code for each local IP in
the desktop settings panel. Each QR encodes http://{ip}:{port}/mobile/
so the phone camera opens the mobile UI directly.
- Add segno (pure Python, no PIL) as a new dependency
- Add GET /api/qr?url=... endpoint that returns an SVG QR code
- Render one QR card per LAN address in the network settings section
- Drop the yellow IP address chips; the QR label already shows the URL - QR codes start blurred so a nearby camera app can't scan them immediately; tap any card to toggle the blur - Add a hint line: "Blurred so your camera doesn't get too excited. Tap to reveal."
Collaborator
Author
|
Fixed: QR codes now appear in Settings > Advanced when server mode is on, one per local IP. Each encodes the /mobile/ URL so the phone camera opens StemDeck directly. Codes are blurred by default, tap to reveal. |
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.
Summary
http://{ip}:{port}/mobile/- scanning with the phone camera opens the StemDeck mobile UI directly in the browsersegno(pure Python, no PIL needed) served via a newGET /api/qr?url=...endpoint that returns SVGChanges
app/api/qr.py- new endpoint returning SVG QR codesapp/api/router.py- register qr routerpyproject.toml+uv.lock- addsegno>=1.6static/js/catalog.js- render QR cards in network settings sectionstatic/css/daw.css- styles for QR card gridTest plan
http://{ip}:{port}/mobile/in browser