<div dir="ltr">That's awesome!<div><br></div><div>(Also awesome would be using the nextbus API to predict when the 1, 1R and 800 are coming at 49th/50th & Telegraph for those of us who use the bus. Also possibly the 12 which is at 51st, I think.)</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 29, 2015 at 5:42 AM, Marc Juul <span dir="ltr"><<a href="mailto:juul@labitat.dk" target="_blank">juul@labitat.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>sudo room now automatically announces last BART departures.<br><br>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.<br><br></div><div>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.<br><br></div><div>The code is here:<br></div><div><br>  <a href="https://github.com/Juul/lastbart" target="_blank">https://github.com/Juul/lastbart</a><br></div><div><br></div>It's all new and fragile so you probably shouldn't rely on it just yet.<span class="HOEnZb"><font color="#888888"><br><br>-- <br></font></span></div><span class="HOEnZb"><font color="#888888">marc/juul<br></font></span></div>
<br>_______________________________________________<br>
sudo-discuss mailing list<br>
<a href="mailto:sudo-discuss@lists.sudoroom.org">sudo-discuss@lists.sudoroom.org</a><br>
<a href="https://lists.sudoroom.org/listinfo/sudo-discuss" target="_blank">https://lists.sudoroom.org/listinfo/sudo-discuss</a><br>
<br></blockquote></div><br></div>