diff --git a/.gitignore b/.gitignore index b7c5a4d..f200bc4 100644 --- a/.gitignore +++ b/.gitignore @@ -53,3 +53,4 @@ deployment/apps/podstatus/secret.yaml deployment/apps/frpc/secret.yaml deployment/apps/healthcheck/secret.yaml kubeconfig +tmp/ \ No newline at end of file diff --git a/Dockerfile.contactform b/Dockerfile.contactform index f1b3510..5fb1ae1 100644 --- a/Dockerfile.contactform +++ b/Dockerfile.contactform @@ -19,7 +19,7 @@ RUN --mount=type=cache,target=$POETRY_CACHE_DIR poetry install --no-root FROM python:3.12-bookworm as runtime RUN apt-get update && \ - apt-get install -y nginx && \ + apt-get install -y nginx chromium && \ rm -rf /var/lib/apt/lists/* ENV VIRTUAL_ENV=/app/.venv \ diff --git a/README.md b/README.md index bcbcbe2..9acff1e 100644 --- a/README.md +++ b/README.md @@ -231,7 +231,7 @@ command_chaos=sh -c "notify-send -t 2000 $(curl -s -u username:password http://l ### Contactform with Printer The Contactform app lives in the `contactform/` folder. -It serves two main purposes: +It serves these purposes: * Collecting leads at the conference booth and store them in Odoo as CRM lead * Printing of labels for all kind of fun, for example for the booth raffle @@ -243,7 +243,17 @@ It allows configuration of the Odoo campaign name, the label header and can opti As the application runs directly on the Raspberry Pi, it needs to be available on the Internet, so that a booth visitor can directly access it. This is made possible with FRP, see next section. -The label printing was made possible thanks to the fantastic [brother_ql_web](https://github.com/FriedrichFroebel/brother_ql_web/) Python module. +The label printing is made possible thanks to the fantastic [brother_ql_web](https://github.com/FriedrichFroebel/brother_ql_web/) Python module. + +#### APPUiO Voucher + +The app generates an APPUiO Voucher and prints it on a label. +The generated QR code links to https://www.appuio.ch/sign-up with URL parameters to prefill the form fields for user convenience: + +`?voucher=abc123&company=XYZ&name=John%20Doe&email=john@example.com&phone=123456789` + +For this form field pre-filling to work, a small JavaScript snippet (`hack/field-values-from-url.js`) needs to be available in the APPUiO website. +It is added into a `