{"id":17922495,"url":"https://github.com/gierens/fitstar-utilization","last_synced_at":"2026-04-16T03:32:15.672Z","repository":{"id":140300895,"uuid":"504105436","full_name":"gierens/fitstar-utilization","owner":"gierens","description":"Python script for pulling utilization data from the Fit Star website and Grafana dashboard for visualization.","archived":false,"fork":false,"pushed_at":"2023-04-13T18:04:34.000Z","size":809,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-03-04T10:00:03.770Z","etag":null,"topics":["fitstar","grafana","influxdb","python","selenium","sport","utilization"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gierens.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2022-06-16T10:08:58.000Z","updated_at":"2022-10-16T23:09:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"65592a06-322d-42c2-bf92-6f2775ab9230","html_url":"https://github.com/gierens/fitstar-utilization","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gierens/fitstar-utilization","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gierens%2Ffitstar-utilization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gierens%2Ffitstar-utilization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gierens%2Ffitstar-utilization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gierens%2Ffitstar-utilization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gierens","download_url":"https://codeload.github.com/gierens/fitstar-utilization/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gierens%2Ffitstar-utilization/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31870506,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"online","status_checked_at":"2026-04-16T02:00:06.042Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["fitstar","grafana","influxdb","python","selenium","sport","utilization"],"created_at":"2024-10-28T20:39:25.178Z","updated_at":"2026-04-16T03:32:15.629Z","avatar_url":"https://github.com/gierens.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fit Star Utilization\n\nPython script for pulling utilization data from the\n[Fit Star website](https://www.fit-star.de), paired with\n[Grafana](https://grafana.com/)\ndashboard for visualization.\n\n![Fit Star Utilization Dashboard](dashboard.png)\n\n## Demo\nInstead of setting this up yourself, you can also simply access\nan instance of the dashboard I host myself\n[here](https://grafana-public.schollheim.net/d/qq0XN2SVk/fitstar-utilization).\nI also intend make the\n[InfluxDB](https://www.influxdata.com/)\nthat feeds this publicly accessible when I find the time.\n\n## Python Script\nThe script uses [Selenium](https://www.selenium.dev/)\nto automatically retrieve the utilization data from the Fit Star studio\nwebsites (e.g. https://www.fit-star.de/fitnessstudio/muenchen-neuhausen).\nThis has certain implications for its dependencies and usage.\n\n### Dependencies\nSelenium requires a compatible browser together with the corresponding driver.\nA good choice is [Chromium](https://www.chromium.org),\nwhich can be installed with the driver by:\n```bash\nsudo apt install -y chromium chromium-driver\n```\nThe required Python modules are listed in the\n[`requirements.txt`](requirements.txt)\nfile. To install them execute:\n```bash\nsudo python3 -m pip install -r requirements.txt\n```\n\n### Usage\nTo fetch the data for all studios in Munich and insert them into a given\n[InfluxDB](https://www.influxdata.com/) the script is used as follows:\n```bash\n./fitstar-utilization.py --host influxdb.example.net --port 8086 --ssl --verify-ssl --username admin --password supersecretpassword --filter muenchen\n```\nFor further information refer to the `-h/--help` option.\n\nNote that because of Selenium requiring a browser, the script needs to run in\nthe presence of the graphical session. In case you run this over SSH or as\ncron job, you need to set the `DISPLAY` variable. You can use the `w` command\nto list active X sessions.\n\nI myself run the script on a\n[Raspberry Pi 4 Model B](https://www.raspberrypi.com/products/raspberry-pi-4-model-b/)\nin an [XRDP](http://xrdp.org/) session.\n\n## Grafana Dashboard\nThe Grafana dashboard can be directly imported into Grafana with its\nID `17200`, the corresponding webpage is:\nhttps://grafana.com/grafana/dashboards/17200\n\n## License\nThis project is distributed under [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgierens%2Ffitstar-utilization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgierens%2Ffitstar-utilization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgierens%2Ffitstar-utilization/lists"}