Updates for web server
This commit is contained in:
1 parent
37b7001099
commit
bc488d444f
4 files changed
+251
-318
No files matched your search
@@ -31,7 +31,7 @@ The CTA API can be fairly trivially queried to get a JSON response with the requ
|
||||
- `output->ctatt->eta` gives us a list of folders for all the next upcoming trains.
|
||||
- `output->ctatt->eta->0` gives us the next train.
|
||||
- `output->ctatt->eta->1` gives us the second to next train.
|
||||
- `output->ctatt->eta->0-arrT` gives us the time the next train will arrive in an ISO date format, i.e. "2026-07-12T00:50:16"
|
||||
- `output->ctatt->eta->0->arrT` gives us the time the next train will arrive in an ISO date format, i.e. "2026-07-12T00:50:16"
|
||||
- The problem with the Arrivals API, is you then need to query every station one by one, save the next arrival time of a train and then do something with the result (say, turn on an LED if it's less than 2 minutes away).
|
||||
- That's a lot of queries to check for the entire network. Especially for a little ESP32.
|
||||
- Very wasteful and abusive of the API for just your usage.
|
||||
|
||||
Reference in new issue
Block a user