A simple Dashing widget to show upcoming departures for a specific BART station. You can filter the destinations by platform, direction and specific destination trains.
To install, use the Dashing gist install command with the GIST_ID, like so
dashing install 589d7d4dcbefc3af024e
You will also need to install the Bart API gem from Jish. Note: this widget makes use of a feature I have added to a fork of the bart gem. Once my pull request is merged I will update this gist. Until then, use my branch by placing the following in your GEMFILE:
gem 'bart', github: 'cannuk/bart', branch: 's-update-destination-query'
The Dashing BART widget can be added to your dashing dashboard easily like this:
<li data-row="1" data-col="2" data-sizex="1" data-sizey="1">
<div data-id="bart" data-view="Bart" data-title="Bart"></div>
</li>
In the bart.rb file you need to specify the departure station:
DEPART_STATION = {abbr: "embr"}
You can add train direction and or train platform to filter the results:
DEPART_STATION = {abbr: "embr", dir: "s", plat: 1}
You can also filter to specific destination trains:
DESTINATION_STATIONS = ["mlbr", "sfia"]
Further station abbreviations can be found at the BART API
Dashing BART is released under the MIT license.
Thanks to the Dashing MTA and the RSS Feed widgets for providing insparation and examples.