On Tue, 2024-01-16 at 01:18 -0800, ToddAndMargo via users wrote:
Fedora 39
I do not have a stinkin' smart phone.
Me neither, I keep mine nice and clean. My friend has one that feels like it's been slid along a public toilet floor.
Pet hate, some service that asks people to scan a QR code from their website. Which isn't possible (for most people) if they don't have a phone, or if they only have a phone (what are they supposed to do, mess around with mirrors?).
I scanned a QR code to drive and read it with zbarimg. (it is a security code so I doctored the result up a lot).
zbarimg Screenshot_2024-01-04_16-08-43.png
QR-Code:otpauth://abcd/efgh:123445566?secret=ABCDEFGHIJKLMNONP&issuer=abcd.com scanned 1 barcode symbols from 1 images in 0.02 seconds
On a stinking smart phone, it brings back a six digit code. How do I duplicate this in Fedora?
Possibly use curl or wget to retrieve the results from the decoded web address. It's probably where the phone gets the code from, rather than directly out of the QR image. Or maybe it's some of the digits embedded in the middle of the URL.
There is a structure to QR codes. Looking at a generator on my phone, you get to specify the type of content, then various data elements in it. Such as being a personal contact, then name=something, address=something else, telephone=something or other. Though a specialist QR reading app for a particular purpose may do its own thing.