Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/johnelliott/cabi-checker
CLI for finding a bike share bike
https://github.com/johnelliott/cabi-checker
bike capital-bikeshare citibike cli gbfs node
Last synced: about 2 months ago
JSON representation
CLI for finding a bike share bike
- Host: GitHub
- URL: https://github.com/johnelliott/cabi-checker
- Owner: johnelliott
- Created: 2016-05-17T16:53:51.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-08T04:11:38.000Z (over 6 years ago)
- Last Synced: 2024-04-14T20:21:13.292Z (8 months ago)
- Topics: bike, capital-bikeshare, citibike, cli, gbfs, node
- Language: JavaScript
- Homepage:
- Size: 11.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cabi cli
command line dock status for Capital Bikeshare or other GBFS bikeshare systems# about
Check to see if there are bikes and docks near your computer without leaving the command line.This app does one thing. Much of it is nested and specific to GBFS and even DC. This app is a test case for future GBFS cache/sdk service for node.
# installation
`$ npm install -g cabi-checker`
# configuring .cabirc
This app uses a `.cabirc` file in the user home directory. The file contains the location from which to search.Get your location however you'd like. I used the compass app on my phone and copied the text through the notes app. Edit `.cabirc` in your user home directory.
```
40° 45' 40" N 75° 0' 30" W
https://gbfs.citibikenyc.com/gbfs/en/station_information.json
https://gbfs.citibikenyc.com/gbfs/en/station_status.json
```
`$ cabi`# sample output (different now, lazy)
```
Read config 38° 55' 57" N 77° 1' 42" W
Getting station info...
Getting dock info...
11th & Kenyon St NW: 0/27 ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍
Park Rd & Holmead Pl NW: 8/10 🚴 🚴 🚴 🚴 🚴 🚴 🚴 🚴 ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍
```use with grep to get more specific
`$ cabi|grep Park````
Park Rd & Holmead Pl NW: 8/10 🚴 🚴 🚴 🚴 🚴 🚴 🚴 🚴 ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍ ⎍
```# compatability
Node v6 is required at the moment.