Skip to content

A BitBar menubar app for seeing when the next bus arrives at my apartment.

License

Notifications You must be signed in to change notification settings

robertbenjamin/bit-bus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bit-bus

Bitbus, in all it's glory.

A BitBar menubar app for seeing when the next 🚌 arrives at my apartment.

The latest bus is displayed on the menubar, with subsequent arrivals available on click. If the time is red, it means it's based on the bus schedule rather than the API's real-time prediction.

Installation

This applet relies on the OneBusAway API and thus only works in cities where the API is supported. That being said, it's a very simple app and it would be fairly easy to swap out the API for whatever real-time transit API you'd like!

To install:

  • Clone this repo to a directory of your choice.
  • Use this map to find the #ID of the bus stop you'd like to track.
  • In index.js, change the value of the busStop variable to the #ID.
  • In the root directory, run:
npm i
  • Install BitBar, following these directions.
  • In your terminal, navigate to the plugin directory you created when you installed Bitbar and run:
ln -s /path/to/cloned_bitbus/index.js bitbus.10s.js
chmod +x bitbus.10s.js

The 10s above is the refresh interval and can be customized to your liking (e.g. 30s, 2m, 1h).

Enjoy! 👊 ⚡

About

A BitBar menubar app for seeing when the next bus arrives at my apartment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published