CLI city bike rack status checker for Oslo, Norway
Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
bysykkelstatus.sh

README

==Description==

Bash script for checking current status of Oslo Bysykkel racks via the command line. 
The script also features simple HTML output. 

Tip: Find the ID of your rack using the 'all' keyword, then grep for the rack in question.
  
==Usage==

Query Oslo Bysykkel racks for current status - any available bikes for me plz?
Defaults to printing rack id and available bikes.
Usage: ./bysykkelstatus.sh [-a|-c <config file>|-f <favourites>|-h|-l|-r <rack id>]
    -a      Print all info from rack
    -c      Define config file to read from (defaults to ~/.bysykkelrc)
    -f      Define favourites (ids) and write config file. Combine with -c to specify output path.
    -h      I'm helpful.
    -l      Query for and return available rack id's, then exit (not very useful).
    -r      Rack ID to query for - this can also be set in the favourites file. Use keyword "all" to list all racks.

Examples:
    ./bysykkelstatus.sh -a -r 75
    ./bysykkelstatus.sh -r "75 77 37"
    ./bysykkelstatus.sh -r all
    ./bysykkelstatus.sh -f 75
    ./bysykkelstatus.sh -f "75 24"