Let's start by getting some BART data.
Set up an account and get an API Key (or use the public key)
For reference: How to use the BART api
Here's an example URL that tracks trains running north from Balboa Park. Paste this in the JSON formatter so you can see what data is available to you. http://api.bart.gov/api/etd.aspx?cmd=etd&orig=balb&dir=n&key=MW9S-E7SL-26DU-VV8V&json=y
Here's an example that narrows the data and tells you when the next northbound train is leaving Balboa Park Station.
here's another example that prints the soonest departure for all northbound trains from balboa.
Challenge:
Can you get data for a train headed south from Embarcadero?
Can you figure out how to light an LED only when a BART train is within 5 minutes of leaving Balboa Park station.
Can you print BART data to a screen