{"id":23959639,"url":"https://github.com/otobrglez/bicikelj-sh","last_synced_at":"2025-04-13T08:13:04.784Z","repository":{"id":46924890,"uuid":"408797344","full_name":"otobrglez/bicikelj-sh","owner":"otobrglez","description":"This is BicikeLJ client implemented in Bash.","archived":false,"fork":false,"pushed_at":"2021-09-21T18:56:41.000Z","size":26,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T08:12:53.410Z","etag":null,"topics":["bash","cli","slovenia"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/otobrglez.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}},"created_at":"2021-09-21T11:43:43.000Z","updated_at":"2024-08-31T18:45:12.000Z","dependencies_parsed_at":"2022-09-23T08:53:10.972Z","dependency_job_id":null,"html_url":"https://github.com/otobrglez/bicikelj-sh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otobrglez%2Fbicikelj-sh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otobrglez%2Fbicikelj-sh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otobrglez%2Fbicikelj-sh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otobrglez%2Fbicikelj-sh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otobrglez","download_url":"https://codeload.github.com/otobrglez/bicikelj-sh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248681495,"owners_count":21144700,"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":["bash","cli","slovenia"],"created_at":"2025-01-06T18:50:04.255Z","updated_at":"2025-04-13T08:13:04.742Z","avatar_url":"https://github.com/otobrglez.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bicikelj.sh\n\nThis is [BicikeLJ][BicikeLJ] client implemented in [Bash].\n\nUsage:\n\n```bash\n./bicikelj.sh\n./bicikelj.sh \"Dunajska 5, 1000 Ljubljana\"\n```\n\nThe output will show 3 nearest stations that have bikes available. I.e.\n\n```json\n[\n  {\n    \"name\": \"PREŠERNOV TRG-PETKOVŠKOVO NABREŽJE\",\n    \"free\": 13,\n    \"latitude\": 46.051380037071965,\n    \"longitude\": 14.506524332086412,\n    \"distance\": 42.969\n  },\n  {\n    \"name\": \"POGAČARJEV TRG-TRŽNICA\",\n    \"free\": 13,\n    \"latitude\": 46.05110603801571,\n    \"longitude\": 14.507168331524257,\n    \"distance\": 99.135\n  },\n  {\n    \"name\": \"KONGRESNI TRG-ŠUBIČEVA ULICA\",\n    \"free\": 14,\n    \"latitude\": 46.05040103728995,\n    \"longitude\": 14.504605334359988,\n    \"distance\": 155.301\n  }\n]\n```\n\n### Capabilities\n\n- Gets the nearest BicikeLJ bicycle stations that has free bicycles. Location is extracted from your IP address.\n- Gets the nearest stations for particular location - expressed in text. \n\n### Web Services and APIs\n\n- Location is extracted from your IP address with the help of [ipstack] API\n- Forward geocoding service is done with [positionstack] API.\n- BicikeLJ information is provided by [Ljubljana PromInfo](https://prominfo.projekti.si/web/)\n\n### Dependencies\n\nThis script depends on the following tools: [jq], [curl]\nand standard toolset with `bc`, `echo`, `cat` and `sed`.\n\n## Development\n\n```bash\nls *.sh | entr ./bicikelj.sh \"Ljubljana Dunajska 5\"\n```\n\n## Author\n\n- [Oto Brglez](https://github.com/otobrglez)\n\n\n[BicikeLJ]: https://www.bicikelj.si\n[Bash]: https://www.gnu.org/software/bash/\n[jq]: https://stedolan.github.io/jq/\n[curl]: https://curl.se/\n[ipstack]: https://ipstack.com\n[positionstack]:https://positionstack.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotobrglez%2Fbicikelj-sh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotobrglez%2Fbicikelj-sh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotobrglez%2Fbicikelj-sh/lists"}