Guest WiFi QR Code (via luci-app-commands?)

You could place the qr code as png/svg/... in the folder /www/code.svg then everybody can fetch this image with http://openwrt.lan/code.svg or http://192.168.1.1/code.svg.

Isn't that nice, but you can save the link in your bookmarks or everybody has to remember the url!

For the generation of the qr code you can use this script.

#!/bin/sh

NAME=${1:-$(uci get wireless.default_radio0.ssid)}
KEY=${2:-$(uci get wireless.default_radio0.key)}

command -v qrencode >/dev/null 2>&1 || (
  opkg update && opkg install qrencode
) || exit 1

echo "WIFI:T:WPA;S:${NAME};P:${KEY};;" | qrencode -o /www/code.svg -t SVG
5 Likes