Code Monkey home page Code Monkey logo

bussterminal's Introduction

bussterminal

An application that lets you access live info from Skånetrafiken, without leaving the terminal.

buss|terminal

  • substantiv: ~en ~er
    • buss: ett större passagerarfordon
    • terminal: avgångs- och ankomsthall; utrustning för in- och ut­matning av data

Setup

git clone [email protected]:johan-andersson01/bussterminal.git
cd bussterminal
npm install -g

Usage

Usage: bussterminal [options]

Terminal app to check departing buses/trains in Skåne

Options:

  -V, --version      output the version number
  -f, --from <FROM>  required: shows departures from FROM unless -t flag is supplied
  -t, --to   <TO>    used with -f: Shows journeys from FROM to TO
  -l, --line <LINE>  used with -f: Filters output to only include departures matching LINE
  -h, --help         output usage information

  Examples:
    $ bussterminal --help                   # show help
    $ bussterminal --version                # show version
    $ bussterminal -f "lund c" -t triangeln # show journeys from Lund C to Malmö Triangeln
    $ bussterminal -f lth                   # show departures from Lund LTH
    $ bussterminal -f lth -l 20             # show line 20's departures from Lund LTH

Usage demonstration

Annotated example

Journeys from Lund C to Lund LTH
19:24 → 19:31                                   # original schedule
	19:32 - 19:37:	Lund C → Lund LTH (6)   # bus is 8 minutes late
19:44 → 19:51                                   # original schedule
	19:49 - 19:56:	Lund C → Lund LTH (6)   # bus is 5 minutes late
20:04 → 20:11                                   # original schedule
	20:04 - 20:11:	Lund C → Lund LTH (6)   # bus is on time
20:24 → 20:31                                   # original schedule
	20:24 - 20:31:	Lund C → Lund LTH (6)   # bus is on time
20:44 → 20:51                                   # original schedule
	20:44 - 20:51:	Lund C → Lund LTH (6)   # bus is on time

bussterminal's People

Contributors

skogsbrus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.