Bus info in Dashing dashboards

The "Next Bus" widget

The "Next Bus" widget

We have a Dashing dashboard here at work, and there was some extra room on the dashboard, so I added a new widget to let me know when I should be leaving for the bus. This only works if you're in the Seattle area (it uses the One Bus Away data, which I think is Seattle-specific), but can take an estimate of walk-time into account so the timer displays "when to leave the office", not "when the bus arrives", roughly.

Some changes would need to be made to make it work for other cities, but hopefully this'd get you a bit of a head start.

This is the oba.rb file that collects the widget data, living in our jobs/ folder.

The bus widget along with the rest of this section of the dashboard.

The bus widget along with the rest of this section of the dashboard.