Live data from Hacker News

Show HN: When is the next Caltrain? (minimal webapp)

erikschluntz.com

11–20 of 31 posts

Re: Show HN: When is the next Caltrain? (minimal webapp)

#12
post #4

The public transport service in Hannover/Germany once had a screensaver that you could configure to show the next departure from your nearest station. I thought that was clever marketing. Today you probably could implement this as a web service.

Screensavers can / could ping an API?

That train schedule seems like a cool idea in and of itself though.

Re: Show HN: When is the next Caltrain? (minimal webapp)

#13
post #4

The public transport service in Hannover/Germany once had a screensaver that you could configure to show the next departure from your nearest station. I thought that was clever marketing. Today you probably could implement this as a web service.

Screensavers can / could ping an API? That train schedule seems like a cool idea in and of itself though.

In the Windows 95 days (and probably in the Windows 2000 days, and maybe also today) "all" a screensaver was was an .exe renamed to -if memory serves- .scr.

There may have been some special interface that the program being run was expected to conform to so the screensaver subsystem would invoke it, but (IIRC) a screensaver could do anything an ordinary program could do. (That was the big reason for being cautious about where/who you got your screensavers from.)

Re: Show HN: When is the next Caltrain? (minimal webapp)

#16
While cool, this does not incorporate real-time data, just the static schedule.

I've explored this--you need 511 API access to obtain real-time data, and to conceal your API key you need to stand up a web application.

Cool proof-of-concept, need to take it to the next level!

Re: Show HN: When is the next Caltrain? (minimal webapp)

#17
I have a command line app for this somewhere I wrote a few years back when I was commuting on Caltrain a lot, I should dig it up and publish it. It had some extra pathfinding/fuzzy search stuff. I almost always have my bike with me and I wanted to cover the edge cases where it's faster to bike to a nearby station to catch a bullet or where you can take a train the wrong direction a stop or two for the same purpose.

I wish there a maps app that would build entire itineraries taking into account that you have a bike with you, and ideally your average expected biking speed. It's so annoying to plan any sort of multi-transit itinerary in the bay, you always have to piece things together yourself or get stuck with some nonsense that takes 30% longer than it needs to.

Of course all of this could also be resolved if we had a sane transit system with short intervals.

Re: Show HN: When is the next Caltrain? (minimal webapp)

#18
post #16

While cool, this does not incorporate real-time data, just the static schedule. I've explored this--you need 511 API access to obtain real-time data, and to conceal your API key you need to stand up a web application. Cool proof-of-concept, need to take it to the next level!

I thought about this, but I've seen several times where the signs say that the train is running late, but it's actually there and leaves perfectly on time!

The schedule has been much more reliable since the electrification

Post reply on HN