← 返回 Skills 市场
vijays365

TomTom Traffic Commute

作者 vijays365 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
37
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install tomtom-traffic-commute
功能描述
Get real-time commute traffic using TomTom Routing API. Live travel times, delays, and ETAs.
使用说明 (SKILL.md)

TomTom Traffic Commute

Get real-time commute traffic data using the TomTom Routing API. Returns distance, travel time with live traffic, delay minutes, and ETAs.

Setup

  1. Get a TomTom API key — free tier at developer.tomtom.com (2,500 free transactions/day)
  2. Set the environment variable: TOMTOM_API_KEY

Quick Start

export TOMTOM_API_KEY=yourkey
bash scripts/tomtom-traffic.sh "51.5081,-0.0753" "50.8213,-0.1325"

Usage

Basic query

export TOMTOM_API_KEY=yourkey
bash scripts/tomtom-traffic.sh \x3Corigin-lat,origin-lon> \x3Cdest-lat,dest-lon>

Query with departure time

export TOMTOM_API_KEY=yourkey
bash scripts/tomtom-traffic.sh "51.5081,-0.0753" "50.8213,-0.1325" "2026-06-09T06:45:00+01:00"

Output format

{
  "distance_km": 84.2,
  "travel_time_min": 63,
  "traffic_delay_min": 1,
  "traffic_affected_km": 1.1,
  "departure_time": "2026-06-05T10:43:27+01:00",
  "arrival_time": "2026-06-05T11:46:50+01:00",
  "summary": "84.2 km, 63 min (delay: 1 min)"
}

Automate with Cron

Optionally combine with AgentMail for daily commute email notifications. See examples/commute-email.sh for a complete workflow.

Scripts

Script Purpose
scripts/tomtom-traffic.sh CLI tool — queries TomTom Routing API. No dependencies.
examples/commute-email.sh Optional: TomTom + AgentMail email workflow

API Reference

Uses TomTom Routing API v1 /calculateRoute endpoint:

  • Endpoint: https://api.tomtom.com/routing/1/calculateRoute/{origin}:{dest}/json
  • Parameters: traffic=true, routeType=fastest
  • Auth: API key in query string (key=)
  • Free tier: 2,500 transactions/day
  • Coordinates: lat,lon format (decimal degrees)
  • Departure time: optional — defaults to "now"
安全使用建议
Install only if you are comfortable sending precise commute locations and optional departure timing to TomTom, and only use the AgentMail example with trusted input values until the shell scripts are fixed to pass data safely into Python instead of interpolating it into source code.
能力标签
cryptorequires-sensitive-credentials
能力评估
Purpose & Capability
The core behavior matches the stated purpose: it takes user-provided commute coordinates, calls TomTom Routing API, and formats traffic timing output.
Instruction Scope
The documentation shows TomTom API use and the optional AgentMail workflow, but it could more plainly warn that exact commute coordinates, timing, and emailed summaries may be sent to third-party services.
Install Mechanism
There are no install-time hooks, package installs, or hidden startup steps; metadata declares bash and curl, though the scripts also require python3.
Credentials
TOMTOM_API_KEY is proportionate for the advertised API integration, and AgentMail credentials are only used by the optional example when explicitly configured.
Persistence & Privilege
The artifacts do not create persistence or background workers, but inline Python snippets interpolate shell arguments and environment values directly into source code, creating a local code-execution risk if those values are untrusted.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install tomtom-traffic-commute
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /tomtom-traffic-commute 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of TomTom Traffic Commute. - Get real-time commute traffic with TomTom Routing API. - Returns distance, travel time (with live traffic), delay minutes, and ETAs. - Simple Bash script interface; requires only curl and a free TomTom API key. - Supports scheduling (e.g., via cron) and integrates with AgentMail for daily email notifications.
元数据
Slug tomtom-traffic-commute
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

TomTom Traffic Commute 是什么?

Get real-time commute traffic using TomTom Routing API. Live travel times, delays, and ETAs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 37 次。

如何安装 TomTom Traffic Commute?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install tomtom-traffic-commute」即可一键安装,无需额外配置。

TomTom Traffic Commute 是免费的吗?

是的,TomTom Traffic Commute 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

TomTom Traffic Commute 支持哪些平台?

TomTom Traffic Commute 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 TomTom Traffic Commute?

由 vijays365(@vijays365)开发并维护,当前版本 v1.0.0。

💬 留言讨论