Commit Graph

26 Commits

Author SHA1 Message Date
Nahuel Lofeudo b8ad5b76de Fix the return types of __poll_gtfsr_deltas when API calls fail 2023-05-07 06:20:02 +01:00
Nahuel Lofeudo 864bf52d64 Deal correctly with empty GTFS-R updates 2023-05-07 05:38:19 +01:00
Nahuel Lofeudo 1fc69e1cc9 Add support for GTFS-R added routes 2023-05-06 18:48:40 +01:00
Nahuel Lofeudo e5019b137d Create a separate config file, move settings there 2023-04-30 07:33:02 +01:00
Nahuel Lofeudo 0def241318 Make matching of ADDED and CANCELED actions explicit. 2023-04-24 06:41:33 +01:00
Nahuel Lofeudo a71862be64 Why on Earth was I loading shapes.txt??? 2023-04-23 15:53:53 +01:00
Nahuel Lofeudo cbad15a6fd Force garbage collection in multiple places during data load to avoid OOMs in the Pi Zero 2023-04-23 07:43:45 +01:00
Nahuel Lofeudo 4a7a09fce7 Correct arrival and departure dates (h:mm:ss -> hh:mm:ss) 2023-04-23 07:14:47 +01:00
Nahuel Lofeudo a95e2a29a0 Use trip's headsign instead of the route's long name for display 2023-04-23 07:13:51 +01:00
Nahuel Lofeudo 2d00e744d6 Support trip updates with no stop time updates. Add more logging. 2023-04-23 06:05:06 +01:00
Nahuel Lofeudo 2570ab0cef Fix name of method call 2023-04-22 13:14:16 +01:00
Nahuel Lofeudo 4f056714b2 Remove empty space around the key 2023-04-22 13:10:39 +01:00
Nahuel Lofeudo b8ec772c51 Read feed files straight from the zip file to avoid wearing out the Pi's SD card. 2023-04-22 12:23:39 +01:00
Nahuel Lofeudo d0eb731c23 Moved the NTA API Key to a separate file so I don't need to worry about accidentally committing it. 2023-04-22 11:28:04 +01:00
Nahuel Lofeudo 22dec4adfd Lots of fixes for the way GTFS-R handles things 2023-04-16 22:42:52 +01:00
Nahuel Lofeudo 93275fc37c Switch to GTFS-R v2 2023-04-16 20:44:38 +01:00
Nahuel Lofeudo 1bdac7b5c2 Poll GTFS-R endpoint on every refresh 2023-04-16 19:58:22 +01:00
Nahuel Lofeudo 56c0417705 Merge deltas from the GTFS-R feed into the estimations 2023-04-16 19:43:54 +01:00
Nahuel Lofeudo dd4733b1cf Calculate and display ETA of bus stops correctly 2023-04-16 14:44:24 +01:00
Nahuel Lofeudo df3e9aa992 Fix miscellaneous bugs 2023-04-16 14:00:38 +01:00
Nahuel Lofeudo 6b45e27539 Separate the loading of stop_times.txt and only load the stop times for the stops we are interested in. 2023-04-16 13:49:46 +01:00
Nahuel Lofeudo 855bfc3efc Copy the code to read the GTFS feed from gtfs_kit to gtfs_client.py to allow for selective loading of stop times. 2023-04-16 10:49:17 +01:00
Nahuel Lofeudo e4f4e30b27 Added some code to automatically refresh the feed file if it changed 2023-04-16 10:13:52 +01:00
Nahuel Lofeudo 54a7e7da06 Moved from ad-hoc parsing of GTFS data to gtfs-kit 2023-03-25 16:41:19 -03:00
Nahuel Lofeudo e961c7bc42 Removed the API key left accidentally in the code. The key is now invalidated. 2023-03-07 19:41:37 +00:00
Nahuel Lofeudo b04648b1e2 Add initial code to migrate from the SOAP API client to GTFS-R 2023-03-07 19:38:03 +00:00