sudo room now automatically announces last BART departures.

It should announce last departures from MacArthur station for each of the BART directions, SF, Richmond, Pittsburg and Fremont. It will announce each last departure twice in the window 30 minutes to 10 minutes before departure.

Here's how it works: I hooked up a usb audio adapter and some speakers to the sudo server, wrote a little script that talks to the BART API and set it up to run as a cronjob that speaks the results using espeak.

The code is here:

  https://github.com/Juul/lastbart

It's all new and fragile so you probably shouldn't rely on it just yet.

--
marc/juul