-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QR Code in R #90
Comments
Thanks heaps for the implementation! Sounds like a good addition. I won't have bandwidth for the next two weeks but happy to work on this! |
I'm revisiting this issue and am thinking that another great use for the function is to bake settings into the QR code, something that ODK Central doesn't yet do. In my day job every app user has different settings (e.g. auto send or not, theme, map base layers). So this function could be complemented by a vignette "qr" explaining how to choose and write settings into one or several settings.json, then create a QR code for a given project using those settings files. |
One caveat: I do not know how much free space is left in the compressed 64*64 code. However, it could be that other sizes are possible. Slightly different QR-Code for app users
|
Reviving Dieter's neat idea with the options to add more settings to the QR code than Central currently exports, and to add a plaintext version of the QR content (app user name, maybe some settings) to the exported QR code. Thanks to @ivangayton for suggesting the Python package as alternative https://pypi.org/project/segno/ |
Cross-linking the Python version https://gist.github.com/lognaturel/d538a40901aad8e5057bf0aeb8081ea6 |
The example below shows how to create QR Codes for test submissions. I post it here because there were are some missing parts in the documentation (base64 encoding), and there was a nasty gotcha in
qrencode
that stumbles over the allowed CRLF in base64 encoding. I have not tested it exactly as it is, because it is part of a R6 class that creates the warehouse SQLite database.Some ideas from here
Maybe one day I will try to create a pull request - no now.
Template
collect_settings.json
The text was updated successfully, but these errors were encountered: