{"id":16514932,"url":"https://github.com/eiri/climber-count","last_synced_at":"2025-03-02T13:27:30.987Z","repository":{"id":241998246,"uuid":"808410054","full_name":"eiri/climber-count","owner":"eiri","description":"Scrapes the rockgympro.com climber count gauge","archived":false,"fork":false,"pushed_at":"2025-02-25T02:35:59.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T03:29:02.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":false,"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/eiri.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":"2024-05-31T02:39:47.000Z","updated_at":"2025-02-25T02:36:01.000Z","dependencies_parsed_at":"2024-06-24T14:10:51.648Z","dependency_job_id":"a3494074-3d9f-4813-8df1-b28684233351","html_url":"https://github.com/eiri/climber-count","commit_stats":null,"previous_names":["eiri/climber-count"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiri%2Fclimber-count","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiri%2Fclimber-count/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiri%2Fclimber-count/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eiri%2Fclimber-count/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eiri","download_url":"https://codeload.github.com/eiri/climber-count/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241512161,"owners_count":19974534,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-11T16:14:29.010Z","updated_at":"2025-03-02T13:27:30.966Z","avatar_url":"https://github.com/eiri.png","language":"Go","readme":"# Climber Count\n\nThis is a Telegram bot that scrapes the rockgympro.com climber count gauge for a given gym and returns the latest people count to a channel when asked.\n\n## How it works\n\n- Periodically pulls HTML from rockgympro.com for a given `pgk` and `fId`.\n- Parses the HTML file and extracts `var data` as JSON.\n- Retrieves the counter for a given gym and stores it along with the update time in SQLite.\n- When the bot is asked for `/count`, it returns the latest count from the storage.\n\n## Installation\n\nYou can either download the binary from the release tab, use Homebrew with `brew tap eiri/tap` and `brew install climber-count`, or use Docker with `docker pull ghcr.io/eiri/climber-count`.\n\n## Configuration\n\nExport the following environment variables:\n\n```\nPGK - A rockgympro.com UID. This is usually an MD5-like string in the URL path set right after \"public\".\nFID - Another ID, organization-specific.\nGYM - A gym abbreviation. The response can contain multiple gyms' counters.\nSCHEDULE - Key=crontab pairs separated by |. For example: weekdays=4 */5 8-22 * * MON-FRI|weekends=2 */5 8-20 * * SAT,SUN. This pulls the counter every five minutes during the gym's working hours. Theoretically, it can go down to seconds, but there is no need to spam rockgympro.com. Be nice.\nSTORAGE - A path to the SQLite file.\nBOT_TOKEN - A Telegram bot token from @BotFather.\n```\n\nFor Docker, it is probably more convenient to use [docker-compose](compose.yaml).\n\n## Licence\n\n[MIT](https://github.com/eiri/climber-count/blob/main/LICENSE)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiri%2Fclimber-count","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feiri%2Fclimber-count","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feiri%2Fclimber-count/lists"}