Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/vbb-anybar
Let the status bar show you when to catch the train.
https://github.com/derhuerst/vbb-anybar
berlin bvg transit transport vbb
Last synced: 3 days ago
JSON representation
Let the status bar show you when to catch the train.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-anybar
- Owner: derhuerst
- License: isc
- Created: 2016-12-29T01:41:24.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T00:47:15.000Z (almost 6 years ago)
- Last Synced: 2024-12-20T13:05:03.090Z (14 days ago)
- Topics: berlin, bvg, transit, transport, vbb
- Language: JavaScript
- Size: 25.4 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# *vbb-anybar* ⏱
**Let the status bar show you when to catch the train.**
[![npm version](https://img.shields.io/npm/v/vbb-anybar.svg)](https://www.npmjs.com/package/vbb-anybar)
[![dependency status](https://img.shields.io/david/derhuerst/vbb-anybar.svg)](https://david-dm.org/derhuerst/vbb-anybar)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-anybar.svg)
[![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)## Installing
```shell
npm install -g vbb-anybar
```## Usage
*This guide assumes you have the [AnyBar app](https://github.com/tonsky/AnyBar#anybar-os-x-menubar-status-indicator) 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`](https://github.com/derhuerst/vbb-stations-cli#vbb-stations-cli). To set them, run the following:
```shell
vbb-anybar init []
```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 []
```## Contributing
If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/vbb-anybar/issues).