News for hackers. Stuff that matters.
Re:Show HN: Print a WiFi Login Card by toomuchtodo on Sunday May 31, 2020 @02:10PM (#23371355)
Lovely! Is it possible to inject SSID and passphrase parameters as env vars into the Docker container and have a png or pdf render without the web interface?

Edit: Thank you to those who replied!

Re:Show HN: Print a WiFi Login Card by davb on Sunday May 31, 2020 @02:51PM (#23371653)
You can generate QR codes using qrencode (available in most distros package repos), as follows:

qrencode -o wifi.png "WIFI:T:WPA;S:<SSID>;P:<PASSWORD>;;"

Re:Show HN: Print a WiFi Login Card by jasonjayr on Sunday May 31, 2020 @02:40PM (#23371576)
qrencode is in debian/ubuntu (https://fukuchi.org/works/qrencode/)

    qrencode -t ansiutf8 'WIFI:T:WPA;S:{ssid};P:{password};;'
No docker required ...
Re:Show HN: Print a WiFi Login Card by toomuchtodo on Sunday May 31, 2020 @03:55PM (#23372178)
I’m on a Mac, so I would need Docker if the tool wasn’t built for Mac (only Linux).
Re:Show HN: Print a WiFi Login Card by dewey on Sunday May 31, 2020 @03:57PM (#23372185)
No, you can just install it via Homebrew.

brew install qrencode

Re:Show HN: Print a WiFi Login Card by toomuchtodo on Sunday May 31, 2020 @04:45PM (#23372562)
Good to know! Thank you!