6 Commits

Author SHA1 Message Date
GW_MC
05a65988dd Enhance timestamp parsing and arrival data handling in MainUIHandler
- Introduced a new helper function to parse ISO 8601-like timestamps into epoch seconds.
- Improved the handling of timezones, allowing for better accuracy in arrival time calculations.
- Refactored arrival data fetching to ensure UI updates only when data changes.
- Enhanced error handling for arrival data retrieval, providing clearer messages for various error states.
- Updated formatting functions for arrival times to handle both relative and absolute formats more robustly.
2026-02-04 11:54:37 +08:00
GW_MC
a93b7fe029 feat(travel): Optimize arrival data updates and enhance UI responsiveness 2026-02-03 21:45:23 +08:00
GW_MC
1d32c7674e Replace font in Travel UI with Noto Sans TC 14
- Updated MainUI to use Noto Sans TC 14 font for labels including message, refresh time, and header.
- Modified SettingsUI to utilize Noto Sans TC 14 font for title, URL, status, and instruction labels.
2026-02-03 21:24:25 +08:00
GW_MC
6c4050e9d4 feat(travel): Enhance MTR arrival handling with retry logic and improve UI update efficiency 2026-02-03 20:49:42 +08:00
GW_MC
3617a206ff feat(travel): Refactor route handling to use direction instead of destination 2026-02-03 20:11:16 +08:00
GW_MC
c4635948e4 feat(travel): Implement settings UI and web server for MTR route configuration
- Added MainUIHandler class to manage the main UI and polling for arrival data.
- Introduced SettingsUI class for displaying QR code and configuration options.
- Created SettingsUIHandler to manage settings UI lifecycle and web server interactions.
- Developed WebHandler to handle HTTP requests for MTR route settings, including adding and removing routes.
- Implemented web endpoints for fetching MTR lines, routes, and saving settings.
- Enhanced UI with responsive design for e-ink displays and added error handling for web interactions.
2026-02-03 19:26:53 +08:00