← 返回
未分类 中文

Calendar Generator

Generates Google Calendar‑compatible .ics files from structured event data.
从结构化事件数据生成Google日历兼容的.ics文件
zhengqunkoo zhengqunkoo 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 1
Stars
📥 228
下载
💾 0
安装
1
版本
#latest

概述

ics‑generator

When to use

When you need to convert a schedule, study plan, or task list into an iCalendar (.ics) file that can be imported into Google Calendar or any other iCalendar‑compatible client.

Workflow Overview

  1. Collect structured events – each event must contain:

   - summary (string) 

   - description (string, optional) 

   - start (ISO‑8601 date/time or JS Date

   - end   (ISO‑8601 date/time or JS Date

   - colorId (Google Calendar colour ID, optional) 

  1. Chunking / sequential dates 

   - First chunk – supply the intended start date (e.g., 2026‑05‑31T09:00:00Z). 

   - Subsequent chunks – pass the last date of the previous chunk (via the lastDate field). The skill will automatically shift the next chunk’s start date forward by one day, guaranteeing a clean “one‑day‑gap” between chunks.

  1. Run the skill – invoke the run function exported by index.js with the event array and optional lastDate.

Implementation Notes

FeatureDetails
------------------
Google‑Calendar compatibilityAutomatically injects the required headers:
PRODID:-//Google Inc//Google Calendar 70.6//EN
CALSCALE:GREGORIAN
UTC enforcementAll start/end times are normalized to UTC and formatted as YYYYMMDDTHHMMSSZ. Google Calendar accepts this exact format without further conversion.
Unique identifiersEach event receives a UUID‑v4‑derived UID (event-) so calendar clients can correctly sync updates.
Color handlingIf a colorId is supplied, it’s added as X‑GOOGLE‑CALENDAR‑COLOR: inside the VEVENT block.
OutputReturns a complete .ics string wrapped in BEGIN:VCALENDAR … END:VCALENDAR. Every VEVENT ends with END:VEVENT and the final block ends with END:VCALENDAR.
DependenciesNode ≥ 20 (for crypto.randomUUID()). No external npm packages—pure JavaScript plus Node’s built‑in crypto module.
LicenseMIT – free to copy, modify, and share.

Why the specific PRODID / CALSCALE?

From community feedback, Google Calendar only imported the generated file when those exact values were present. A generic PRODID caused the “Unable to launch event” error; CALSCALE:GREGORIAN tells Google Calendar which calendar system to assume (Gregorian), which is required for proper time‑zone handling.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-23 23:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 281 📥 117,128
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 934 📥 187,496
office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 392 📥 148,422