{"id":23825120,"url":"https://github.com/vjean/velib","last_synced_at":"2026-06-17T06:32:29.497Z","repository":{"id":92331131,"uuid":"193385122","full_name":"VJean/velib","owner":"VJean","description":"doing things with open data about Paris' Vélib'","archived":false,"fork":false,"pushed_at":"2022-06-23T21:05:13.000Z","size":10,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-12T06:03:26.918Z","etag":null,"topics":["paris","velib"],"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/VJean.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,"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}},"created_at":"2019-06-23T19:01:05.000Z","updated_at":"2024-06-25T19:02:42.000Z","dependencies_parsed_at":"2023-05-16T21:45:14.962Z","dependency_job_id":null,"html_url":"https://github.com/VJean/velib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VJean/velib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VJean%2Fvelib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VJean%2Fvelib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VJean%2Fvelib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VJean%2Fvelib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VJean","download_url":"https://codeload.github.com/VJean/velib/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VJean%2Fvelib/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34437449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["paris","velib"],"created_at":"2025-01-02T11:18:22.573Z","updated_at":"2026-06-17T06:32:29.490Z","avatar_url":"https://github.com/VJean.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Velib\n\nMake use of a dataset from opendata.paris.fr ([Vélib' - Disponibilité temps réel](https://opendata.paris.fr/explore/dataset/velib-disponibilite-en-temps-reel)), that is updated every minute, and describes the status of every Vélib' station. \n\n## Get the data\n\n`get-records.sh` pulls the data from the API.\n\nNo need to create an account, the quota for an anonymous access is limited to 5000 queries a day, which is enough for this use case. (5000 queries/day == 3 queries/minute)\n\nWhat I did was putting `get-records.sh` in a crontab to be executed every minute and 20 seconds. In case the data wasn't available at this time, I put a second cron entry 30 seconds later. The script make sure that it doesn't pull the same data twice in a row.\n\nHere's a trick to get around the minute-resolution of crontab ([credits](https://stackoverflow.com/questions/9619362/running-a-cron-every-30-seconds)) :\n```\n* * * * * sleep 20 ; ~/velib/get-records.sh \u003e\u003e ~/velib/velib.log 2\u003e\u00261\n* * * * * sleep 50 ; ~/velib/get-records.sh \u003e\u003e ~/velib/velib.log 2\u003e\u00261\n```\n\n## Display in Grafana\n\n`datasource.py` was created to serve datapoints by acting as a datasource for Grafana. Note: this has not been tested since 2019.\n\n## Generate reports\n\n`velib.py` is a one-file-fits-all script that provides functions to generate static and animated charts based on the data available.\nThis is in a draft state for now and could be greatly improved.\n\n## Python libraries\n\nUses Cartopy, which depends on geos and proj. On archlinux: `sudo pacman -S geos proj`\nand also Cython (pip)\n\n`Proj` version error: see https://github.com/SciTools/cartopy/pull/1289#issuecomment-506025563\nLet's target `cartopy@23e31dd` to get the compatibility with proj \u003e= 6\n`Cartopy` requirements needs to be specified as: git+https://github.com/SciTools/cartopy.git@23e31dd#egg=Cartopy\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjean%2Fvelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvjean%2Fvelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvjean%2Fvelib/lists"}