Jump to content

Template:egWifiQRcode

From RaySoft

Syntax

{{egWifiQRcode}}

Usage

Code

{{egWifiQRcode}}

Result

Generate and print a QR code for my Wi-Fi based on a SSID and a password from Bitwarden
ssid="$(bw get --raw 'username' 'Wi-Fi Shared Password')"
passwd="$(bw get --raw 'password' 'Wi-Fi Shared Password')"

qrencode --dpi=300 --output=- --size=100 \
  "WIFI:S:${ssid};T:WPA2;P:${passwd};;" \
| lpr -P 'Brother_HL_525DN_series' -o 'media=a4' -o 'number-up=4'

unset -v ssid passwd