360 Secure SkillHub
360 安全技能中心

Opencron Skill Repo

OpenCron 读取本地 OpenClaw 定时任务定义与运行记录,将数据直接嵌入页面后提供仪表盘,展示倒计时、运行历史与日历视图,并可通过后台循环定期刷新数据;另提供生成独立 HTML 文件的脚本与安装脚本。

firstfloris
firstfloris
热度 55.60
最近更新 2026-05-18 12:27:05
分类:数据依赖:代码执行 / 读写文件 / 第三方 API应用场景:DevOps / 报告撰写 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add opencron
Metadata
name
opencron
description
Visual cron job dashboard for OpenClaw — live countdown timers, run history, calendar view
version
1.2.0
metadata
{"openclaw":{"emoji":"⚡","requires":{"bins":["python3"]}}}

OpenCron

A visual dashboard for your OpenClaw cron jobs.

Setup

1. Start the dashboard server

nohup python3 skills/opencron/serve.py --port 18790 &

Fetches the dashboard HTML from GitHub, reads live job data and run history from disk, and serves a complete page with data embedded — no client-side fetch, no auth.

Port 18790 (bridge port) is already exposed by every OpenClaw container.

2. Dashboard URL

http://localhost:18790/cron.html

The server re-reads job data on every page load, so the dashboard is always up to date.

After Every Cron Job Run

Always show the user the dashboard link after a cron job finishes:

See cron status on OpenCron: http://localhost:18790/cron.html

Rules:

  • If the server isn't running, start it: nohup python3 skills/opencron/serve.py --port 18790 &
  • This should be the last line of output after every cron job execution

Scripts

Script What it does
serve.py Dashboard server — embeds fresh data on every request
update_canvas.py Fetch HTML from GitHub, embed data, deploy to gateway static dir
update_canvas.py --sync Re-embed fresh data (used by watch_sync.sh)
watch_sync.sh Background loop: re-embeds data every 30s
generate.py Generate standalone HTML file with embedded data

Data Sources

  • Jobs: ~/.openclaw/cron/jobs.json
  • Runs: ~/.openclaw/cron/runs/<job-id>.jsonl