{"id":45974337,"url":"https://github.com/flipdot/drinks-touch","last_synced_at":"2026-02-28T16:03:06.343Z","repository":{"id":39579377,"uuid":"58283166","full_name":"flipdot/drinks-touch","owner":"flipdot","description":"Digital replacement for the drinks tally list featuring a touchscreen, user management and a barcode scanner.","archived":false,"fork":false,"pushed_at":"2026-02-20T18:40:54.000Z","size":11691,"stargazers_count":8,"open_issues_count":11,"forks_count":4,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-02-20T23:51:51.400Z","etag":null,"topics":["barcode-scanner","touchscreen","user-management"],"latest_commit_sha":null,"homepage":"https://wiki.flipdot.org/Getr%C3%A4nkez%C3%A4hler","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flipdot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["dargmuesli"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2016-05-07T20:27:30.000Z","updated_at":"2026-02-20T18:40:57.000Z","dependencies_parsed_at":"2023-10-15T04:37:59.335Z","dependency_job_id":"89cd148e-4af9-45b7-b2e1-06afadebffd8","html_url":"https://github.com/flipdot/drinks-touch","commit_stats":null,"previous_names":[],"tags_count":161,"template":false,"template_full_name":null,"purl":"pkg:github/flipdot/drinks-touch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipdot%2Fdrinks-touch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipdot%2Fdrinks-touch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipdot%2Fdrinks-touch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipdot%2Fdrinks-touch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flipdot","download_url":"https://codeload.github.com/flipdot/drinks-touch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flipdot%2Fdrinks-touch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29941801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T13:49:17.081Z","status":"ssl_error","status_checked_at":"2026-02-28T13:48:50.396Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["barcode-scanner","touchscreen","user-management"],"created_at":"2026-02-28T16:03:05.598Z","updated_at":"2026-02-28T16:03:06.336Z","avatar_url":"https://github.com/flipdot.png","language":"Python","funding_links":["https://github.com/sponsors/dargmuesli"],"categories":[],"sub_categories":[],"readme":"[![CI](https://github.com/flipdot/drinks-touch/actions/workflows/ci.yml/badge.svg)](https://github.com/flipdot/drinks-touch/actions/workflows/ci.yml)\n\n# Drinks Touch\nDigital replacement for the drinks tally list featuring a touchscreen, user management and a barcode scanner.\n\n## Table of Contents\n1. **[Development](#development)**\n    - **[Build](#build)**\n    - **[Configuration](#configuration)**\n    - **[Deployment](#deployment)**\n1. **[Profiling](#profiling)**\n1. **[License](#license)**\n\n## Development\n\nStart dependencies like Postgre and keycloak with:\n\n```\ndocker compose -f docker-compose.dev.yml up\n```\n\n- Mailpit: http://localhost:8025/\n- Keycloak: http://localhost:8080/\n- Webapp: http://localhost:5002/\n  - Not part of compose; Requires either game.py or webapp.py to be running\n\nThe project is using poetry. Install the dependencies with:\n\n```sh\npoetry install\n```\n\nInitialize the database. Needs to be run again after the data model has changed:\n\n```sh\nalembic upgrade head\n```\n\nTo start the application, run:\n\n```sh\nFULLSCREEN=0 poetry run python drinks_touch/game.py\n```\n\nThere are more environment variables available. Checkout the `drinks_touch/config.py` file for more information.\n\n---\n\nPython `pre-commit` helps to detect and fix common issues before committing. Install the git hooks with:\n\n```sh\npre-commit install\n```\n\nIt is also being run in the CI pipeline. If you see any rules that don't make sense for us, feel free\nto adjust the `.pre-commit-config.yaml` file or comment out invocation in the `ci.yml` file.\n\nThis project is deployed within the [drinks-touch_stack](https://github.com/flipdot/drinks-touch_stack/) in accordance to the [dargstack template](https://github.com/dargstack/dargstack_template/) to make deployment a breeze.\n\nThe provided `Dockerfile` lets you build a localized Python image. Build it with the following command:\n\n```bash\ndocker build -t flipdot/drinks-touch .\n```\n\nThe following information is therefore only useful if you decide to deploy this project containerless.\n\n### Changing the database model\n\nIf you do changes to the database, you need to create a migration:\n\n```sh\nalembic revision --autogenerate\n```\n\nCheck the migration file. It is located in `alembic/versions/`.\nIf everything is fine, apply the migration like described above.\n\n### Configuration\nThe following configuration files are evaluated at execution time and must be derived from their respective examples, which can be found in the same directories.\n\n- `drinks_touch/config.py`\n\n### Deployment\n\n#### Dependencies\n- Keycloak server, (see [oidc.py](drinks_touch/oidc.py))\n- PostgreSQL @localhost (see [storage.py](drinks_touch/database/storage.py))\n- touch display with a minimum of 480x800 px.\n\nInstall dependencies like this:\n\n```bash\nsudo apt-get install python-dev libssl-dev\npip2 install -r requirements.txt\n```\n\nThen, start PostgreSQL with `systemctl start`. And finally, run the entrypoint script `drinks_touch/game.py`.\n\nFor embedded systems it is recommended to use `@reboot runGame.sh` inside a cron tab.\nThis starts an X server, sets various display properties and puts the application itself in a loop.\n\n\n## Profiling\nTo profile the time individual lines of code take to execute install *line_profiler*.\n\n    pip install line_profiler\n\nThen add @profile to the methods you are interested in.\n\nInside `drinks_touch`, run with\n\n    kernprof -l game.py\n\nAnd analyze results with\n\n    python -m line_profiler game.py.lprof | less\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflipdot%2Fdrinks-touch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflipdot%2Fdrinks-touch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflipdot%2Fdrinks-touch/lists"}