← 返回
沟通协作 中文

Table Mountain Status

Fetch and report the Table Mountain Aerial Cableway status via the official weather API. Use when Master asks for “Tafelberg” updates, needs alerts about openings/closures, or wants automated Telegram reports about status, weather, and waiting times.
获取并报告桌山空中缆车状态(通过官方天气API)。适用于主人询问桌山更新、需要开放/关闭提醒或希望自动在Telegram上推送状态、天气和等候时间。
zopyx
沟通协作 clawhub v1.0.0 1 版本 99842.3 Key: 无需
★ 0
Stars
📥 1,266
下载
💾 15
安装
1
版本
#latest

概述

Table Mountain Status

Überblick

Dieses Skill ruft die offizielle Cableway-API (https://cms.tablemountain.net/.../weather-api) ab, parsed Status/Weather-Felder und liefert eine saubere Zusammenfassung (Text oder JSON). Ideal für Sofortabfragen („Status Tafelberg?“) sowie automatisierte Polling-Jobs mit Telegram-Alerts.

Quick Start

  1. Manuell abrufen

```bash

python3 skills/table-mountain-status/scripts/fetch_status.py \

--output data/table-mountain/$(date +%F_%H%M).txt

```

Ausgabe erscheint sowohl in der Datei als auch im Terminal.

  1. JSON für Weiterverarbeitung

```bash

python3 skills/table-mountain-status/scripts/fetch_status.py \

--format json --output data/table-mountain/$(date +%F).json

```

  1. Felder (bereits im Script enthalten): statusType, status, temperature, visibility, wind, firstUp, lastUp, lastDown, waitingTimeBottom, waitingTimeTop, lastUpdated.

Automatisierte Telegram-Alerts

  1. Cronjob alle 10 Minuten (Beispiel):

```bash

openclaw cron add <<'JSON'

{

"name": "table-mountain-10min",

"schedule": { "kind": "every", "everyMs": 600000 },

"sessionTarget": "isolated",

"payload": {

"kind": "agentTurn",

"model": "default",

"message": "Run python3 skills/table-mountain-status/scripts/fetch_status.py --output data/table-mountain/latest.txt. Post the summary to Master on Telegram, highlight status (open/closed), weather, queues, and timestamp. If the fetch fails, report the error."

}

}

JSON

```

  1. Temporäre Jobs (z. B. nur bis 16:00 lokal) → schedule.kind = "cron", expr = "/10 6-15 ", tz = "Europe/Berlin", und nach Ende wieder cron update --enabled=false oder cron remove.
  2. Job-Stop: Immer sowohl Interval- als auch Tagesjob deaktivieren, falls mehrere Instanzen laufen.

Troubleshooting

  • API down / Consent-Block: Script liefert Exit-Code 1 + Fehlermeldung → Cron meldet den Fehler weiter.
  • Zeitzonen: lastUpdated wird auf UTC+2 konvertiert (Cape Town). Bei Bedarf format_summary im Script anpassen.
  • Standard-Wartezeiten (0:05:00) stammen oft vom API-Default; wenn echte Queue benötigt wird, Hinweis im Bericht ergänzen.
  • Netzwerk-Limits: Falls curl-Proxy nötig, urllib ggf. um Environment-Proxy erweitern.

Ressourcen

  • scripts/fetch_status.py – Einfache CLI zum Abrufen, Formatieren und Speichern (Text/JSON) des Table-Mountain-Status.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 05:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Tageblatt Headlines

zopyx
从 https://www.tageblatt.de/ 下载并归档每日新闻标题(Schlagzeilen)。在 Master 请求 TAGEBLATT 标题、希望本地保存或需每日 07:00 自动获取并转发最新标题时使用。
★ 0 📥 1,223
communication-collaboration

imap-smtp-email

gzlicanyi
使用IMAP/SMTP读取和发送邮件;检查新/未读邮件、获取内容、搜索邮箱、标记已读/未读、发送带附件的邮件。支持...
★ 114 📥 52,432
communication-collaboration

Himalaya

lamelas
{"answer":"通过IMAP/SMTP管理邮件的CLI。可在终端使用 `himalaya` 收发、回复、转发、搜索及整理邮件。支持多账户与MML(MIME元语言)编写邮件。"}
★ 68 📥 45,592