Commit Graph

68 Commits

Author SHA1 Message Date
Nahuel Lofeudo 8bf7503a39 Do not initialize Pygame modules that we don't use (avoid sound underruns) 2023-07-09 22:01:49 +01:00
Nahuel Lofeudo c244a4bc21 Update gitignore 2023-06-24 22:45:30 +01:00
Nahuel Lofeudo e39e18d243 Fix lookup of walk time to the stop 2023-06-24 22:44:03 +01:00
Nahuel Lofeudo ccf7c62727 Remove VS Code directories from repo 2023-06-24 06:21:00 +01:00
Nahuel Lofeudo b16830020d Add more debug info 2023-06-24 06:06:17 +01:00
Nahuel Lofeudo 12cb88ed20 Move the feed .zip file to /tmp. Add debug info on refresh. 2023-06-24 05:55:23 +01:00
Nahuel Lofeudo f8857b3015 Add debug info for when a bus's headsign isnt found. 2023-06-24 05:26:52 +01:00
Nahuel Lofeudo 053e1191e0 Update enclosure model. Ignore exported STLs 2023-06-24 05:22:51 +01:00
Nahuel Lofeudo 4517bf0dbb Add code to debug an issue with destinations 2023-06-20 16:28:40 +01:00
Nahuel Lofeudo a89d28129f Update GTFS-R URL for nationaltransport.ie 2023-06-20 06:26:29 +01:00
Nahuel Lofeudo ef27551ee4 Fix typo in function signature 2023-05-20 17:29:10 +01:00
Nahuel Lofeudo 9b43a973ee Create allow-list for routes at stops 2023-05-20 17:28:39 +01:00
Nahuel Lofeudo 29cdb35f2e Forgot to initialize the added stops collection 2023-05-19 05:28:44 +01:00
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 4ff5c959b0 Add yaml to the list of dependencies 2023-05-06 10:30:49 +01:00
Nahuel Lofeudo 766e9ae780 Run a full GC cycle after refreshing the display. 2023-05-06 10:26:09 +01:00
Nahuel Lofeudo 4c38a8dc1e Update gitignore 2023-04-30 07:46:17 +01:00
Nahuel Lofeudo e5019b137d Create a separate config file, move settings there 2023-04-30 07:33:02 +01:00
Nahuel Lofeudo eb41b52b52 Show the time of the arrival if ETA >=60 minutes, like Google Maps. 2023-04-25 19:50:03 +01:00
Nahuel Lofeudo 0def241318 Make matching of ADDED and CANCELED actions explicit. 2023-04-24 06:41:33 +01:00
Nahuel Lofeudo 963b1e5e47 Adjust inter-line spacing 2023-04-24 06:16:50 +01:00
Nahuel Lofeudo 471794c461 In the status line, don't show the current time's seconds. 2023-04-23 15:58:09 +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 32b0fa3392 If the arrival is due in > 99min, show the arrival time instead 2023-04-23 06:32:26 +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 cb13407418 Display date and time in the last line of the display. 2023-04-22 12:41:00 +01:00
Nahuel Lofeudo 1c50e6ae3b Remove the original Dublin Bus SOAP API client. 2023-04-22 12:26:28 +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 9ca4a19672 Added api-key.txt to gitignore 2023-04-22 11:29:15 +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 e28fe74447 Update dependencies in the Readme 2023-04-22 08:04:28 +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 9877da7bc4 We aren't using the Dublin Bus API anymore 2023-04-16 14:53:20 +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