Simple scad to generate STL model of badge with qr code.
I designed it to make simple badge to help people connect to WIFI, but you can use it however you want!
-
Prepare svg file of your desired qr code (or provide parameters for its generation in
docker-compose.yaml
file) -
Change all the necessary parameters in the
environment
section of thedocker-compose.yaml
file -
Run
docker-compose up
-
Prepare svg file of your desired QR code
-
Put it in the same folder as
main.scad
and call itqr.svg
-
Change all necessary parameters in
main.scad
file -
Build docker image
docker build -t qr_badger .
- Run given image
docker run --mount type=bind,source="$(pwd)"/,target=/data qr_badger
You can freely pass parameters to change the result of output model. For example:
docker run \
-e LABEL='New label' \
-e ADD_RING=false \
-e QR_SIZE=150 \
-e SVG_PATH='./qr.svg'
--mount type=bind,source="$(pwd)"/,target=/data qr_badger
Or generate qr on the fly:
docker run \
-e LABEL='My WIFI' \
-e ADD_RING=false \
-e QR_SIZE=150 \
-e WIFI_SSID="My WIFI" \
-e WIFI_PASSWORD="admin1" \
--mount type=bind,source="$(pwd)"/,target=/data qr_badger
Full list of parameters presented in ./docker-compose.yaml
file.
-
Optional ring at the top
-
Docker image to generate STL from given parameters
-
Docker-compose
-
Generate QR svg from parameters
-
Make text optional
-
Optional holes for magnets
-
Ability to add external fonts
-
Magnets may be embedded
-
Optional border (bug needs to be fixed)
-
Optional hole at the top
-
Preview badge from dockerfile