train-cron-tracking

Creates one-shot cron jobs that report train station arrivals at scheduled times.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/CHENHUI-X/toolbox --skill train-cron-tracking-chenhui-x
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: train-cron-tracking
Source: https://github.com/CHENHUI-X/toolbox/tree/main/custom-skills/productivity/train-cron-tracking
Command: npx skills add https://github.com/CHENHUI-X/toolbox --skill train-cron-tracking-chenhui-x

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? When a family member or friend is traveling by high-speed train, users want proactive arrival notifications at every station without manually checking schedules. This Skill automates that by creating one-shot cron jobs that fire at each station's scheduled arrival time and deliver a message back to the chat. ## Core Features & Use Cases - Schedule Lookup: Searches the web for the train's full timetable, extracting every station with arrival and departure times. - Per-Station Cron Jobs: Creates one-shot cron jobs with ISO-format schedules in CST, self-contained prompt messages, and no tool dependencies for pure text delivery. - Passed-Station Handling: Checks the current system time first, immediately reports stations already passed, and only schedules future stops. - Use Case: A user's mother says "每到一个站给我报个信" for her daughter on train G3541. The Skill looks up the schedule, reports the current position, and sets a cron job for each remaining station plus a celebratory final arrival message. ## Quick Start Set up cron notifications to message me every time train G3541 arrives at a station today.

Frequently Asked Questions about train-cron-tracking

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get notified when a train arrives at each station?

Look up the train's timetable via web search, check the current system time, then create a one-shot cron job per upcoming station with the arrival time as the schedule. Each cron delivers a self-contained message back to the chat when it fires.

How do I schedule a one-shot cron job at an exact time?

Set the cron schedule parameter to an ISO-format timestamp such as 2026-07-20T14:11:00 and omit the repeat parameter. The job fires once at that time and does not recur.

Does cron-based train tracking show real-time train positions?

No, it is schedule-based only. Cron jobs fire at the planned timetable times from public websites, not GPS-tracked actual arrivals, so delays are not reflected in the notifications.

What timezone do cron job schedules use?

Schedules are interpreted in the system timezone, which is Asia/Shanghai (CST, UTC+8). Always run the date command to verify the current time before creating jobs so already-passed stations are not scheduled.

Why should each station get its own cron job instead of one combined job?

Each cron fires independently at its station's scheduled time, so batching multiple stations into one job would break per-station delivery. Separate jobs also keep each notification message self-contained and correctly timed.