Repository navigation
Name a plug while converting it, and record every conversion - #5
Merged
Merged
Conversation
convert now appends each converted plug (time, name, both MACs) to switchback-plugs.csv in the home folder. --log picks another file and --no-log turns it off. A log that cannot be written no longer stops a run. The README also says what label size --printer expects. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
convert asks for a name such as "Garage Freezer" (or takes --name) and the plug boots as garage-freezer, with no second flash. - sbplug-name.yaml: the portal and direct payloads carry two fixed-size placeholder slots. A boot step before Wi-Fi reads them and, if they were filled in, uses them as the name and friendly name. - image.patch_name fills the slots and fixes the checksum and SHA-256, sharing the code path with the Wi-Fi patch. - sbplug-adopt.yaml: what Adopt imports, without the name slots. - Version 0.5.0, README, CHANGELOG, CI validates the adopt config. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
What changed
convertasks for a name such as "Garage Freezer" (or takes--name). The plug boots asgarage-freezer, shown as "Garage Freezer", with no second flash. Enter keepssbplug-xxxxxx.sbplug-name.yaml). A boot step before Wi-Fi reads them and uses them if they were filled in.image.patch_namefills the slots and fixes the checksum and SHA-256, sharing the code path with the Wi-Fi patch.--server.sbplug-adopt.yaml, the portal firmware without the name slots.switchback-plugs.csvin the home folder.--logpicks another file and--no-logturns it off.Checked
bench-test-plug/ "Bench Test Plug", registered that hostname by DHCP, kept its Wi-Fi and entities, and stayed up past the rollback window.Not yet tested
A full conversion of a stock plug with a name, and the hotspot name under a patched name.
🤖 Generated with Claude Code