Re: [PLUG] Trimet schedule script
On Mon, Jul 06, 2015 at 05:38:55PM -0700, Patrick J. Timlick wrote: > This article in Business week is about transportation and cars of the > future, and may well come to pass. It just the opposite of what Keith > would have. > > > Cars in the next few years will be able to find the fastest route for the > > morning commute as well as order coffee, pay for it and guide the driver to > > pick it up. > > > > This transformation of the auto into a full-service mobile device adds up > > to a potential goldmine. Revenue from the data streams and connectivity > > components could become a 180 billion-euro ($200 billion) market by 2020, > > McKinsey & Co. estimates. That’s a rich target for Apple Inc. and Google > > Inc., and automakers are fighting for a claim as well. > > > http://www.bloomberg.com/news/articles/2015-07-06/apple-and-google-tempted-by-cars-that-can-buy-morning-coffee?cmpid=BBD070615_BIZ Great. Just what I need. A car that auto routes me to the coffee vendor that is a favored partner of the car company bypassing the locally owned businesses I'd prefer. My bank account linked to my car. Fortunately with traffic volumes over the Willamette and into available parking I'll still be able to bicycle in about the same time if convenience is my concern. -- Michael Rasmussen, Portland Oregon Be Appropriate && Follow Your Curiosity If it wasn't your destiny, why do you dream of it? ~ http://someoneoncetoldme.com/gallery/10082010 ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Trimet schedule script
This article in Business week is about transportation and cars of the future, and may well come to pass. It just the opposite of what Keith would have. Cars in the next few years will be able to find the fastest route for the > morning commute as well as order coffee, pay for it and guide the driver to > pick it up. > > This transformation of the auto into a full-service mobile device adds up > to a potential goldmine. Revenue from the data streams and connectivity > components could become a 180 billion-euro ($200 billion) market by 2020, > McKinsey & Co. estimates. That’s a rich target for Apple Inc. and Google > Inc., and automakers are fighting for a claim as well. > http://www.bloomberg.com/news/articles/2015-07-06/apple-and-google-tempted-by-cars-that-can-buy-morning-coffee?cmpid=BBD070615_BIZ On Fri, Jul 3, 2015 at 12:55 AM, Keith Lofstrom wrote: > 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 kei...@keithl.com > ___ > PLUG mailing list > PLUG@lists.pdxlinux.org > http://lists.pdxlinux.org/mailman/listinfo/plug > -- p.j.timl...@ieee.org www.timlick.com 503-476-3119 P.O. Box 581 Dundee OR 97115 ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Trimet schedule script
> "Russell" == Russell Senior writes: > "Keith" == Keith Lofstrom writes: Keith> [...] Having the schedules on my laptop rather than on the other Keith> end of a web interface means I can access them more quickly. Keith> Trimet's general interface is less efficent for specific needs. Russell> The one suggestion I would make is to download something other Russell> than PDFs, which, in general, require a human to look at and Russell> interpret. Surely, there is a more easily parsable format, so Russell> that your script could compute (based on the current time, Russell> walking time to stop, etc) which stop you should go to. Have a look here: http://developer.trimet.org/ which I found by googling: trimet api Although there is a lot of focus on live transit tracking data, because it is sexy and cool, it looks like there are interfaces to the time tables as well and you can ignore the bits you don't want for your application. -- Russell Senior, President russ...@personaltelco.net ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Trimet schedule script
> "Keith" == Keith Lofstrom writes: Keith> [...] Having the schedules on my laptop rather than on the other end of Keith> a web interface means I can access them more quickly. Trimet's Keith> general interface is less efficent for specific needs. The one suggestion I would make is to download something other than PDFs, which, in general, require a human to look at and interpret. Surely, there is a more easily parsable format, so that your script could compute (based on the current time, walking time to stop, etc) which stop you should go to. -- Russell Senior, President russ...@personaltelco.net ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Trimet schedule script
On Fri, Jul 03, 2015 at 08:49:56AM -0700, John Jason Jordan wrote: > On Fri, 3 Jul 2015 00:55:37 -0700 > Keith Lofstrom dijo: > > >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. > > I wonder if it might be easier to adapt the Android app PDX Transit > Finder to run on your laptop. Schedules are fine, but PDX transit > finder uses the GPS device in the bus to find its location and then > reports estimated arrival times. This tells you when the bus is really > going to get there, not just when it is supposed to get there. I live in the burbs, where the only ubiquitous connectivity comes with surveillance. I would rather use downloaded schedules and accept some timing uncertainty in my travels, rather than eliminate that uncertainty for the spy agencies. Why make it easy for them? Out here in the burbs, Trimet bus drivers make a point of arriving on time. There is some extra slack in their schedules, and they will wait a few minutes at a stop to avoid being early. Trimet does have cameras on their vehicles; I presume the resolution is poor enough that they cannot identify facial features, even they shared the feed with the spy agencies. So, if I turn off my cell phone, I am briefly free to move about untracked. Having the schedules on my laptop rather than on the other end of a web interface means I can access them more quickly. Trimet's general interface is less efficent for specific needs. Keith -- Keith Lofstrom kei...@keithl.com ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
Re: [PLUG] Trimet schedule script
On Fri, 3 Jul 2015 00:55:37 -0700 Keith Lofstrom dijo: >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. I wonder if it might be easier to adapt the Android app PDX Transit Finder to run on your laptop. Schedules are fine, but PDX transit finder uses the GPS device in the bus to find its location and then reports estimated arrival times. This tells you when the bus is really going to get there, not just when it is supposed to get there. There are other Android apps that work much the same way for Trimet; I settled on PDX Transit Finder only because I find its interface easier to use. ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug
[PLUG] Trimet schedule script
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 kei...@keithl.com ___ PLUG mailing list PLUG@lists.pdxlinux.org http://lists.pdxlinux.org/mailman/listinfo/plug