There is probably an easier way to do it, but lacking a smart\\\\\spy phone and using Trimet from time to time, I download to my portable laptop the most recent bus schedules before I ride transit. I am equidistant between the 54 and 58 bus lines out here in Beaverton, and it helps to know which will arrive first. If I take my bicycle I ride to Beaverton transit center to take the Max, either Red or Blue lines.
So, I wrote the shell script below, to wget the pdf schedules for "my" transit lines, and save them as more easily recognized names, times, and directions. It is not difficult to text edit the script for other lines, and a better programmer than I could write a script that writes scripts like this for any arbitrary set of bus and Max lines. Keith ----------------------- cut here -------------------------- #!/bin/bash # Trimet schedule script mkdir ~/trimet pushd ~/trimet # 58 canyon road wget http://trimet.org/schedules/w/t1058_1.pdf -O wk58e.pdf wget http://trimet.org/schedules/w/t1058_0.pdf -O wk58w.pdf wget http://trimet.org/schedules/s/t1058_1.pdf -O sa58e.pdf wget http://trimet.org/schedules/s/t1058_0.pdf -O sa58w.pdf wget http://trimet.org/schedules/h/t1058_1.pdf -O su58e.pdf wget http://trimet.org/schedules/h/t1058_0.pdf -O su58w.pdf # 54 beaverton hillsboro highway wget http://trimet.org/schedules/w/t1054_1.pdf -O wk54e.pdf wget http://trimet.org/schedules/w/t1054_0.pdf -O wk54w.pdf wget http://trimet.org/schedules/s/t1054_1.pdf -O sa54e.pdf wget http://trimet.org/schedules/s/t1054_0.pdf -O sa54w.pdf wget http://trimet.org/schedules/h/t1054_1.pdf -O su54e.pdf wget http://trimet.org/schedules/h/t1054_0.pdf -O su54w.pdf # Max red line wget http://trimet.org/schedules/w/t1090_1.pdf -O wkRw.pdf wget http://trimet.org/schedules/w/t1090_0.pdf -O wkRe.pdf wget http://trimet.org/schedules/s/t1090_1.pdf -O saRw.pdf wget http://trimet.org/schedules/s/t1090_0.pdf -O saRe.pdf wget http://trimet.org/schedules/h/t1090_1.pdf -O suRw.pdf wget http://trimet.org/schedules/h/t1090_0.pdf -O suRe.pdf # Max blue line wget http://trimet.org/schedules/w/t1100_1.pdf -O wkBw.pdf wget http://trimet.org/schedules/w/t1100_0.pdf -O wkBe.pdf wget http://trimet.org/schedules/s/t1100_1.pdf -O saBw.pdf wget http://trimet.org/schedules/s/t1100_0.pdf -O saBe.pdf wget http://trimet.org/schedules/h/t1100_1.pdf -O suBw.pdf wget http://trimet.org/schedules/h/t1100_0.pdf -O suBe.pdf ------------------------ cut here -------------------------- -- Keith Lofstrom [email protected] _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
