Commit Graph

53 Commits

Author SHA1 Message Date
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
Nahuel Lofeudo b04648b1e2 Add initial code to migrate from the SOAP API client to GTFS-R 2023-03-07 19:38:03 +00:00
Nahuel Lofeudo ca57d1c5ec Updated enclosure FreeCad file. 2023-03-04 16:23:09 +00:00
Nahuel Lofeudo c3db2b5fd8 Updated gitignore 2023-03-04 16:21:30 +00:00
Nahuel Lofeudo 1b4b7d9a19 Rename FreeCad file fort the enclosure 2023-03-04 16:20:00 +00:00
Nahuel Lofeudo 60fb612678 Hide mouse pointer 2022-12-18 19:04:44 +00:00
Nahuel Lofeudo ab079ff3a1 Added service file. Improvements to the readme. 2022-12-18 18:53:22 +00:00
Nahuel Lofeudo 2f5001e70f Fix display initialization 2022-12-18 10:16:56 +00:00
Nahuel Lofeudo eec2311014 Improvements to the documentation 2022-12-07 18:50:26 +00:00
Nahuel Lofeudo d9e46637c6 Reduced verbosity 2022-12-07 18:50:10 +00:00
Nahuel Lofeudo 3206380431 Initial design of the enclosure 2022-10-09 16:52:10 +01:00
Nahuel Lofeudo 2d791cb08b The ETA is shown in green, yellow or red depending on how much time is left to walk to the stop. 2022-10-09 16:51:21 +01:00
Nahuel Lofeudo 0ff9dcbd56 Another couple of comments 2022-10-08 16:38:29 +01:00
Nahuel Lofeudo 34b80fd248 Add some comments and reformat code 2022-10-08 16:11:17 +01:00
Nahuel Lofeudo e914a0630e Fix event loop. 2022-10-08 10:59:19 +01:00
Nahuel Lofeudo 558fc39eb4 Support both X11 (dev) and DirectFB (runtime) screen types. 2022-10-08 10:58:01 +01:00