Skip to content

add custom qr code for networking - #28

Open
pxp9 wants to merge 6 commits into
protolux-electronics:mainfrom
pxp9:qr-code-badgescreen
Open

add custom qr code for networking#28
pxp9 wants to merge 6 commits into
protolux-electronics:mainfrom
pxp9:qr-code-badgescreen

Conversation

@pxp9

@pxp9 pxp9 commented Apr 3, 2026

Copy link
Copy Markdown
Contributor

Adds custom QR code for networking in the name badge screen

see this PR from the server

For testing with the server locally

export DEVICE_SETUP_INSECURE="true"
export DEVICE_SETUP_URL="192.168.0.14:4000"
export MIX_TARGET=trellis
mix firmware

protolux-electronics/goatmire#1

image image

pxp9 added 4 commits April 3, 2026 23:09
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
@pxp9 pxp9 changed the title add qr code support add custom qr code for networking Apr 3, 2026
pxp9 added 2 commits April 6, 2026 17:42
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
Signed-off-by: Pepe Márquez Romero <pepe.marquezromero@protonmail.com>
|> round()
percentage =
((v - min_voltage) / (max_voltage - min_voltage) * 100)
|> max(0)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

format

Comment thread config/config.exs
raise "System environment variable `DEVICE_SETUP_URL` was not set. Use value `goatmire.fly.dev`, or set up your own server from the repo at https://github.com/protolux-electronics/goatmire"

## For local development is useful by default is false
device_setup_insecure = System.get_env("DEVICE_SETUP_INSECURE") == "true"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

helps in local development

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