script to make QRs

main
Bel LaPointe 2025-10-06 07:48:19 -06:00
parent 149ddcb923
commit 2f54c61601
11 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
#! /usr/bin/env bash
set -euo pipefail
if ! which qrcode; then
go install github.com/skip2/go-qrcode/qrcode@latest
fi
cd "$(dirname "$(realpath "$BASH_SOURCE")")"
cat ../../../srv/data.yaml \
| yq .routes \
| jq -r keys[] \
| grep diag \
| while read -r line; do
f="${line##*/}.png"
qrcode "https://25-bday-qt.home.blapointe.com/${line#/}" > "$f"
done

Binary file not shown.

After

Width:  |  Height:  |  Size: 862 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 938 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 945 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 B