Skip to content

Make convert friendlier: Wi-Fi picker, clearer prompts, redirect check - #4

Merged
WiFiGUY512 merged 1 commit into
mainfrom
feat/friendlier-convert
Nov 22, 2026
Merged

WiFiGUY512 merged 1 commit into
mainfrom
feat/friendlier-convert

Conversation

@WiFiGUY512

Copy link
Copy Markdown
Owner

Fixes found while converting the first real plug with this package.

What changed

  • Wi-Fi picker. convert lists the Wi-Fi networks the computer can see (netsh on Windows, nmcli on Linux, the current network on macOS). You pick a number and type the password. Networks that are 5 GHz only are left out. Typing a name still works.
  • Prompt. The question is now "Found 1 plug. It will become sbplug-xxxxxx. Convert it?" instead of leading with MAC addresses.
  • Redirect check. When wohand.com already points at another machine on the network, convert says so. If a Switchback server answers there, it offers to follow that server. Otherwise it asks before touching the plug. Before, the plug converted from the other server while convert reported FAILED.
  • README. The no-install uvx command comes first. The install steps include the PATH step. Troubleshooting covers both problems.
  • CHANGELOG. 0.4.0 is dated.

Checked

  • pytest, ruff, ruff format and mypy pass.
  • The server probe was checked against a live switchback serve.

Not yet tested

The Windows network list is tested against sample netsh output only, not on a real Windows machine. If the scan fails, convert falls back to asking for the name.

🤖 Generated with Claude Code

Found while converting the first real plug with this package.

- convert lists the Wi-Fi networks the computer can see (netsh on
  Windows, nmcli on Linux, the current network on macOS) and leaves
  out 5 GHz-only ones. Typing a name still works.
- The convert question says "Found 1 plug. It will become
  sbplug-xxxxxx. Convert it?" instead of leading with MAC addresses.
- When wohand.com already points at another machine on the network,
  convert says so. If a Switchback server answers there it offers to
  follow it; otherwise it asks before touching the plug. Before, the
  plug converted from the other server while convert reported FAILED.
- README: the no-install uvx command comes first, the install steps
  include the PATH step, and troubleshooting covers both problems.
- CHANGELOG: 0.4.0 dated.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@WiFiGUY512
WiFiGUY512 merged commit a40277f into main Nov 22, 2026
8 checks passed
@WiFiGUY512
WiFiGUY512 deleted the feat/friendlier-convert branch November 22, 2026 21:02
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