No description
Find a file
2026-06-23 13:27:46 +00:00
.gitignore Add configurable QR code page 2026-06-23 13:19:06 +00:00
.htaccess Add configurable QR code page 2026-06-23 13:19:06 +00:00
deploy.sh Add configurable QR code page 2026-06-23 13:19:06 +00:00
index.php Removed badge around center text 2026-06-23 13:27:46 +00:00
README.md Add configurable QR code page 2026-06-23 13:19:06 +00:00
what.example.json Add configurable QR code page 2026-06-23 13:19:06 +00:00

qr

QR-code webpage intended to be hosted at:

192.168.0.226:/var/www/html/qr

Open QR codes with:

http://192.168.0.226/qr?what=wifi
http://192.168.0.226/qr?what=haguest

If what is not defined in what.json, the page returns 404 Not Found.

QR data

Copy the example on the web server:

cp what.example.json what.json

Edit what.json on the server. It is ignored by git and excluded from deploys because it may contain secrets like Wi-Fi passwords.

Supported entries:

{
  "wifi": {
    "type": "wifi",
    "label": "Home Wi-Fi",
    "ssid": "Your WiFi name",
    "password": "Your WiFi password",
    "security": "WPA",
    "hidden": false
  },
  "haguest": {
    "type": "url",
    "label": "HA Guest",
    "url": "http://192.168.0.226/haguest"
  }
}

The key name, such as wifi or haguest, is shown in the centre of the QR code.

Deploy

./deploy.sh

The deployment helper uses rsync and can be overridden with:

  • QR_DEPLOY_HOST (default: 192.168.0.226)
  • QR_DEPLOY_DEST (default: /var/www/html/qr)