返回顶部
i

icloud-caldaviCloud日历直连

Direct iCloud Calendar integration via CalDAV protocol. Create, read, update, and delete calendar events without third-party services. Use when the user wants to manage their iCloud Calendar, check schedule, create events, or find free time. Requires Apple ID and app-specific password.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
971
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

icloud-caldav

iCloud CalDAV — 直接日历访问

通过CalDAV协议直接管理iCloud日历。无需第三方服务,除Apple服务器外,您的数据不会离开本机。

使用场景

在用户希望以下操作时启用:

  • - 查看日历或即将到来的事件
  • 创建新的日历事件
  • 删除现有事件
  • 列出可用日历

请勿用于:

  • - 提醒事项(如有可用,请使用apple-reminders技能)
  • 联系人(CalDAV仅限日历)
  • 非iCloud日历(Google、Outlook等)

前提条件

所需凭证:

  • - APPLEID — 您的Apple ID邮箱地址
  • APPLEAPPPASSWORD — 一个应用专用密码不是您的常规Apple ID密码)

生成应用专用密码的步骤:

  1. 1. 访问 appleid.apple.com
  2. 登录 → 登录与安全 → 应用专用密码
  3. 生成新密码
  4. 使用此密码(而非您的常规密码)

快速开始

bash

设置凭证


export APPLE_ID=your.email@icloud.com
export APPLEAPPPASSWORD=xxxx-xxxx-xxxx-xxxx

列出日历

./scripts/caldav.py list-calendars

列出未来7天的事件

./scripts/caldav.py list-events --days 7

创建事件

./scripts/caldav.py create-event \ --title 团队会议 \ --start 2025-07-23T14:00:00 \ --duration 60 \ --calendar 工作

可用操作

操作命令描述
列出日历list-calendars显示所有iCloud日历
列出事件
list-events | 日期范围内的事件 | | 创建事件 | create-event | 添加新的日历事件 | | 删除事件 | delete-event | 按文件名或UID删除事件 |

工作流模式

创建事件

bash

基本事件


./scripts/caldav.py create-event \
--title 牙医预约 \
--start 2025-07-25T09:30:00 \
--duration 30

带地点和描述

./scripts/caldav.py create-event \ --title 项目评审 \ --start 2025-07-26T14:00:00 \ --duration 60 \ --location B会议室 \ --description Q3规划评审 \ --calendar 工作

全天事件

./scripts/caldav.py create-event \ --title 假期 \ --start 2025-08-01 \ --all-day

批量操作

注意: CalDAV不支持原生批量操作。如需创建多个事件,请多次运行脚本:

bash

通过多次运行命令创建多个事件


./scripts/caldav.py create-event --title 会议1 --start 2025-07-26T10:00:00 --duration 60
./scripts/caldav.py create-event --title 会议2 --start 2025-07-26T14:00:00 --duration 60
./scripts/caldav.py create-event --title 会议3 --start 2025-07-27T09:00:00 --duration 60

iCloud能很好地处理快速连续请求,但没有用于创建多个事件的单一API调用。

删除事件

bash

按文件名删除


./scripts/caldav.py delete-event \
--file event-name.ics \
--calendar 日历

按UID删除(在日历中搜索匹配事件)

./scripts/caldav.py delete-event \ --uid openclaw-xxx@openclaw.local \ --calendar 日历

警告: 删除操作不可逆。iCloud可能有自己的备份,但标准CalDAV DELETE会立即移除事件。

日期/时间格式

  • - ISO 8601:2025-07-23T14:00:00(若未指定时区,则假定为本地时区)
  • 带时区:2025-07-23T14:00:00+08:00
  • 全天:2025-07-23(仅日期)

安全说明

  • - 凭证仅从环境变量读取
  • 不会记录或存储任何凭证
  • 所有通信均通过HTTPS连接到caldav.icloud.com
  • 可随时在appleid.apple.com撤销应用专用密码

错误处理

错误原因解决方案
401 未授权凭证错误检查APPLEID和APPLEAPP_PASSWORD
404 未找到
日历/事件不存在 | 先列出日历/事件 | | 403 禁止访问 | 只读日历 | 尝试其他日历 | | 超时 | 网络问题 | 重试请求 |

参考

  • - 有关CalDAV实现细节,请参阅references/caldav-protocol.md
  • 有关iCloud特定端点,请参阅references/icloud-endpoints.md

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 icloud-caldav-1776420056 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 icloud-caldav-1776420056 技能

通过命令行安装

skillhub install icloud-caldav-1776420056

下载

⬇ 下载 icloud-caldav v1.0.0(免费)

文件大小: 9.11 KB | 发布时间: 2026-4-17 18:19

v1.0.0 最新 2026-4-17 18:19
Initial release: direct iCloud Calendar management via CalDAV.

- Create, read, update, and delete iCloud calendar events from your own machine—no third-party services.
- Interact with all calendars and events; list, create, delete with simple commands.
- Requires Apple ID and app-specific password for secure access.
- Handles scheduling, event lookup, and free-time search; batch operations not natively supported.
- Secure: credentials only via environment, communicates directly with Apple servers.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部