[sudo-discuss] Automated last BART announcements in sudo

Marc Juul juul at labitat.dk
Wed Apr 29 05:42:35 PDT 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sudoroom.org/pipermail/sudo-discuss/attachments/20150429/c4bd305f/attachment.html>


More information about the sudo-discuss mailing list