dmuth / isseptafcked Goto Github PK
View Code? Open in Web Editor NEWReal-time status for Philadelphia Regional Rail
Home Page: http://www.IsSeptaFucked.com/
License: Other
Real-time status for Philadelphia Regional Rail
Home Page: http://www.IsSeptaFucked.com/
License: Other
The API returns headers Content-Type: text/json
, should return Content-Type: application/json
.
Hey!
I'm trying to build an Ionic application that consumes your API, and I keep running into CORS problems when making a GET request to get some data.
Would you mind enabling cross-origin requests on whatever server hosts your API?
Thanks!
In general, the status for RR depends on cumulative lateness of trains, and the status for city transit/buses depends on line cancellations. There are sometimes edge cases for the SEPTA system where an RR line is entirely suspended, but therefore has no late trains and does not count towards the level of fucked-ness. I'd like to propose somehow factoring that into the RR status, possibly from the other SEPTA alert API. This could also go the other way, factoring in cumulative lateness of buses on a route towards the bus network status, but I'm less sure of how to go about doing that. Could perhaps be done w/ the Transitview API but seems a bit harder to determine if any given route is meaningfully delayed, since we effectively get perfect service if (for example) all buses on a route with a 15 minute headway are exactly 15 minutes late.
I think the first part of my suggestion (factoring in some modifier to the fucked-ness if any RR lines are totally suspended) is pretty simple, and I plan to have a stab at it in a PR in the near future. Thanks!
This code is many years old, and I should consider replacing seq()
with promises.
For development and testing, I should create this code in a separate branch and deploy it to Heroku and let it run for awhile before merging to master
.
Related reading:
The heroku
CLI app has a nice logs
command.
I should consider running heroku logs --tail
or similar and dump the logs into a file which I can then feed into Splunk Lab to analyze and look for anything interesting.
Dockerfile
to use version 12master
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.