- When's The Next Bus
- WNB (when's the next bus?) is a simple command-line utility that will give you the next Trimet arrival times if you give it the stop id. It is written in the tradition of UNIX utilities that aim to do one thing and do it well. To run it type something like this
wnb 1099 (replacing 1099 with your stop id). It is intended to be a quick and easy way to find the next bus time if you are sitting at a computer and don't want to fire up a web browser just for that. You can also specify a default stop id if you want to speed things up any further, useful if you are in the habit of leaving at the last minute.
It is written in Perl and requires the LWP::Simple XML::Simple Time::Local File::HomeDir Perl Modules to be installed on your system. These can be installed using CPAN. wnb should run on any system that has Perl installed. Alternatively there is a version distributed that has the relevant modules bundled in. This is a larger download but might be more convenient for some. (Perl is available for many operation systems and comes preinstalled with most Linux/UNIX systems including Mac OS X).
Usage: wnb [stop id] You can specify a default stop by creating a .stopid file in your home directory that contains the stop id by itself on a single line (don't use # before it).
Download latest version:
- wnb: Basic version. You will need to install dependencies yourself.
- wnb: This version has the necessary modules (except core modules you should already have) bundled in so you don't need to install them.
Distributed under the GPL.