This App handles the QR Codes created by the EasyBadge ID Card Printer Software. For development RStudio is used. Install git to use version control.
Description of the installation and configuration to use the QR Code Scanner.
All Software which is used to run QR Code Scaner is Open Source. Please be aware of different licenses with varying policies.
Install Streamlit & Python to run the source code locally. A virtual Python environment like Anaconda / Miniconda is highly recommend.
After that you need to install some Python libraries. To do so use the requirements.txt
file with:
pip install -r requirements.txt
Clone the repository of QRCodeScanner with following command:
git clone https://github.com/DrBenjamin/QRCodeScanner.git
First make a directory .streamlit
. After that create the file .streamlit/config.toml
. Here you define the theming and some Streamlit server behaviour flags:
[theme]
primaryColor = "#F63366"
backgroundColor = "#FFFFFF"
secondaryBackgroundColor = "#F0F2F6"
textColor = "#262730"
font = "sans serif"
[browser]
gatherUsageStats = false
[server]
headless = true
Now create the file .streamlit/secrets.toml
where you define some hidden configuration. Define the Google Sheets API settings:
[google]
url = "" # URL to the Google spreadsheet
spreadsheet_id = "" # ID of the Google spreadsheet for workshop data
pin_spreadsheet_id = "" # ID of the Google spreadsheet for Emp. No. - PIN checking
credentials_file = "" # File name of the JSON document with Service Account
credentials_file_id = "" # ID of the Google spreadsheet for workshop data
If you've installed all dependencies, configured the MySQL server and edited the Streamlit app config files (config.toml
/ secrets.toml
) to your setup, you can run the app locally within the Terminal of RStudio or any other terminal with access to Python and the Python libraries (e.g. a virtual environment) with this command:
streamlit run QRCodeScanner.py
This will open the Web App on the servers IP address(es) and the designated port.
The Software and its dependencies will be updated regularly, so make sure to always run the newest versions to avoid security risks.
To update to the latest version of the Streamlit web app framework, run the following command:
pip install --upgrade streamlit
To update all dependencies, use this command:
pip install --upgrade -r requirements.txt