{"id":43213113,"url":"https://github.com/skorbut/trackday","last_synced_at":"2026-02-01T07:35:06.130Z","repository":{"id":46075184,"uuid":"163525365","full_name":"skorbut/trackday","owner":"skorbut","description":"Small app to be deployed on a Raspberry Pi to display race information of a carrera digital slot car track","archived":false,"fork":false,"pushed_at":"2022-09-16T17:55:27.000Z","size":9304,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-05-19T16:05:17.065Z","etag":null,"topics":["carrera","flask","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skorbut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-12-29T16:34:40.000Z","updated_at":"2021-11-16T09:15:50.000Z","dependencies_parsed_at":"2022-09-18T10:51:58.891Z","dependency_job_id":null,"html_url":"https://github.com/skorbut/trackday","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/skorbut/trackday","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorbut%2Ftrackday","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorbut%2Ftrackday/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorbut%2Ftrackday/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorbut%2Ftrackday/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skorbut","download_url":"https://codeload.github.com/skorbut/trackday/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skorbut%2Ftrackday/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28972641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T06:46:42.625Z","status":"ssl_error","status_checked_at":"2026-02-01T06:44:56.173Z","response_time":56,"last_error":"SSL_read: 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":["carrera","flask","python"],"created_at":"2026-02-01T07:35:06.013Z","updated_at":"2026-02-01T07:35:06.096Z","avatar_url":"https://github.com/skorbut.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# trackday\n\nA small race monitor for carrera digital.\n\n## Setup\n\nTrackday uses a SQLite database to store race and driver data. Initialize/reset the database via:\n\n```sh\n. ./venv/bin/activate\nrm app.db\nrm -rf migrations\nflask db init\nflask db migrate\nflask db upgrade\nflask seed\n```\n\nRun the server locally via virtualenv\n```sh\n. ./venv/bin/activate\nflask run\n```\n\nPoint your browser at http://127.0.0.1:5000 to access the app\n\n### Localization\n\nWrap all strings to be localized in `_l()` calls. For templates use: `{{ _() }}`\n\nInitialize babel via `pybabel extract -F babel.cfg -k _l -o messages.pot .`. Generate the german language catalog via `pybabel init -i messages.pot -d app/translations -l de`. Compile the language files via `pybabel compile -d app/translations`.\n\nTo update the translation do `pybabel extract -F babel.cfg -k _l -o messages.pot .` to collect new translation, update the language files via `pybabel update -i messages.pot -d app/translations`. After that you need to recompile using `pybabel compile -d app/translations`.\n\n### USB Serial Connection on Mac\n\nYou can check via `ioreg -c IOSerialBSDClient | grep usb` where the serial connection is available.\n\n### Update the raspberrypi\n\n- connect to raspberrypi via the deploy user using `ssh deploy@raspberrypi`\n- change to trackday directory and pull the latest changes from git\n- restart the server via `sudo supervisorctl restart trackday`\n\n\n## Changes\n\n### 20210524\nSmall changes for season handling\n\n### 20201111\nUpdate to python 3.9, restructure the code handling track communication and race management.\nAdd result pages for race types.\n\n### 20200209 - new driver cockpit\nGet rid of the digit display for fuel levels - integrate gauge.js to display fuel levels\nCalculate sleep time for cu request thread based on current track status\n\n### 20190915 - denormalize Laps\n\nIn order to fetch racer and car based statistics the lap information must be denormalized:\n```\nflask shell\nfor r in Race.query.all():\n    r.denormalize_laps()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorbut%2Ftrackday","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskorbut%2Ftrackday","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskorbut%2Ftrackday/lists"}