23 Commits

Author SHA1 Message Date
5f32eb8e80
Update Telegram bot message formatting for improved clarity
- Renamed timestamp label from "台北時間" to "請求時間".
- Adjusted column widths in message layout for better alignment.
- Special handling for "00" hour to display as "24".
2026-03-01 00:27:07 +09:00
f107cd00c3
Simplify time formatting logic in Telegram bot messages 2026-03-01 00:13:51 +09:00
04738b0542
Add logic to download and store daily updates as JSON
- Introduce filename and URL generation based on the current date.
- Update example usage to include download and storage functionality.
2026-03-01 00:13:06 +09:00
7abeb4c456
Add /start command to Telegram bot
- Registered `/start` command to display help message.
- Updated command list registration in `post_init`.
- Added request handler for `/start` command.
2026-02-28 23:44:28 +09:00
305c6e9364
Fix Docker container name in run_tg_bot.sh script 2026-02-28 23:27:11 +09:00
b3a3de5593
Add user rate limiting and file caching logic to Telegram bot
- Introduced `_is_rate_limited` method to enforce per-user cooldown periods.
- Added caching mechanism in `_get_file_for_date` to reduce redundant downloads.
2026-02-28 23:07:20 +09:00
9019b9f286
Rename start_tg_bot.sh to run_tg_bot.sh for clarity. 2026-02-28 22:49:55 +09:00
5e94d91126
Prefix docker command with sudo in build script 2026-02-28 22:48:17 +09:00
cd1aaddda8
Add build script for Telegram bot Docker image 2026-02-28 22:47:34 +09:00
0f650faec4
Add script to run Telegram bot in Docker container 2026-02-28 22:45:53 +09:00
37aaf17aa2
Update column header from '轉機' to '過境' in Telegram bot message formatting 2026-02-28 22:42:21 +09:00
cc84648664
Update Dockerfile to use Python 3.14 base images 2026-02-28 22:26:39 +09:00
b3436707ad
Add Docker support with multi-stage build
- Added `Dockerfile` to streamline application containerization.
- Introduced `.dockerignore` file for better build context management.
2026-02-28 22:24:39 +09:00
b622883144
Remove unused line.py file 2026-02-28 22:14:42 +09:00
6a97733578
Update command descriptions and remove redundant text
- Simplified `/metar` command description by removing "RCTP".
- Adjusted help message formatting by removing unnecessary details.
- Updated bot start message to remove timezone-specific text.
2026-02-28 21:53:48 +09:00
ae472b5b82
Add METAR/TAF support and /metar command to Telegram bot
- Introduced `MetarDownloader` class for fetching METAR and TAF data.
- Added `/metar` command to retrieve Taoyuan Airport (RCTP) weather information.
- Updated help messages and command descriptions.
- Enhanced `.gitignore` to exclude `Downloads` folder.
2026-02-28 21:46:39 +09:00
d4df11cad3
Add support for extended forecast commands and message handling in Telegram bot
- Introduced `/t1all` and `/t2all` commands to retrieve extended forecasts.
- Updated help messages and command descriptions to reflect changes.
- Refactored terminal data fetching logic to handle extended data display.
2026-02-28 21:15:11 +09:00
e128e6a873
Adjust column spacing in Telegram bot message formatting 2026-02-28 21:02:24 +09:00
1686b40a42
Add support for timezone handling and improve terminal data fetching
- Added `pytz` dependency to `pyproject.toml` and `uv.lock`.
- Introduced Taipei timezone handling in `tg_bot.py`.
- Enhanced terminal data fetching to include fallback mechanisms and display for the next 12 hours.
2026-02-28 20:53:51 +09:00
7d90cf0564
Add uv.lock file for dependency resolution and version locking. 2026-02-28 20:38:10 +09:00
71c947d481
Add Telegram bot implementation with T2 data fetching
- Created `tg_bot.py` for Telegram bot functionality, including T2 data retrieval and display.
- Updated `pyproject.toml` to include `python-dotenv` and `python-telegram-bot` dependencies.
- Added `.env` to `.gitignore` for environment variable management.
2026-02-28 20:24:47 +09:00
c7caf16fc4
Add Apache 2.0 license file to the project 2026-02-28 19:18:03 +09:00
2e99ff6295
Initialize project with essential files:
- Added `pyproject.toml` for project metadata and dependencies.
- Implemented `FileDownloader` class in `downloader.py` for downloading and processing data.
- Added `.gitignore` for common exclusions.
2026-02-28 19:17:14 +09:00