vbb-anybar

0.3.2 • Public • Published

vbb-anybar

Let the status bar show you when to catch the train.

npm version dependency status ISC-licensed gitter channel support me on Patreon

Installing

npm install -g vbb-anybar

Usage

This guide assumes you have the AnyBar app installed.

vbb-anybar needs the station where you want to catch the train and the direction, which is just the next station your train will pass. You can find them using vbb-stations-cli. To set them, run the following:

vbb-anybar init <station-id> <next-station-id> [<time-to-station>]

From now on, if you call vbb-anybar (without any arguments), it will talk to the AnyBar app and set a color that tells you when to leave. You would usually run this every few seconds.

time-to-station is an optional argument which allows you to configure a time (in minutes) for how long it takes you to get to the station. The color telling you when to leave will calculate with this time as well.

API

Usage:
    vbb-anybar
    vbb-anybar init <station-id> <next-station-id> [<time-to-station>]

Contributing

If you have a question, found a bug or want to propose a feature, have a look at the issues page.

Package Sidebar

Install

npm i vbb-anybar

Weekly Downloads

1

Version

0.3.2

License

ISC

Unpacked Size

5.84 kB

Total Files

5

Last publish

Collaborators

  • derhuerst