script to make QRs
|
|
@ -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
|
||||
|
After Width: | Height: | Size: 862 B |
|
After Width: | Height: | Size: 956 B |
|
After Width: | Height: | Size: 938 B |
|
After Width: | Height: | Size: 940 B |
|
After Width: | Height: | Size: 952 B |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 945 B |
|
After Width: | Height: | Size: 952 B |
|
After Width: | Height: | Size: 952 B |
|
After Width: | Height: | Size: 941 B |