Skip to content

feat(settings): QR codes for network access#238

Merged
thcp merged 8 commits into
mainfrom
feat/qr-code-server-access
Jun 29, 2026
Merged

feat(settings): QR codes for network access#238
thcp merged 8 commits into
mainfrom
feat/qr-code-server-access

Conversation

@thcp

@thcp thcp commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • When server mode (network access) is ON, the desktop settings panel now shows a QR code for each local IP address
  • Each QR encodes http://{ip}:{port}/mobile/ - scanning with the phone camera opens the StemDeck mobile UI directly in the browser
  • Uses segno (pure Python, no PIL needed) served via a new GET /api/qr?url=... endpoint that returns SVG

Changes

  • app/api/qr.py - new endpoint returning SVG QR codes
  • app/api/router.py - register qr router
  • pyproject.toml + uv.lock - add segno>=1.6
  • static/js/catalog.js - render QR cards in network settings section
  • static/css/daw.css - styles for QR card grid

Test plan

  • Enable server mode in Settings > Advanced
  • QR codes appear below the IP address list, one per local IP
  • Scan QR with phone camera - opens http://{ip}:{port}/mobile/ in browser
  • Disable server mode - QR section is hidden
  • No local network detected - QR section is empty (no cards rendered)

thcp added 8 commits June 29, 2026 17:22
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."
@thcp thcp marked this pull request as ready for review June 29, 2026 18:19
@thcp thcp merged commit 32bdc38 into main Jun 29, 2026
8 checks passed
@thcp thcp deleted the feat/qr-code-server-access branch June 29, 2026 18:20
@thcp

thcp commented Jun 29, 2026

Copy link
Copy Markdown
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.

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