← 返回
未分类 中文

Vitamin Tracker Channel

Manage vitamin/supplement reminders across configurable daily time slots via cron jobs. Use when adjusting supplement schedules, adding/removing supplements,...
通过 Cron 作业在可配置的每日时间段管理维生素/补品提醒。用于调整补品计划、添加/删除补品等。
cdmichaelb cdmichaelb 来源
未分类 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 370
下载
💾 0
安装
1
版本
#latest

概述

Vitamin Tracker Channel

Manage supplement reminders across configurable daily time slots using OpenClaw cron jobs.

Configuration

Set the following environment variables:

  • VITAMIN_CHANNEL_ID — the channel to post reminders in
  • VITAMIN_TIMEZONE — IANA timezone for scheduling (e.g. America/New_York, Europe/Berlin)
  • WORKSPACE — root workspace directory (defaults to ~/.openclaw/workspace)

Supplement names and schedules are configured in VITAMINS.md in the workspace root. Edit the schedule section to match your regimen.

Schedule Format

VITAMINS.md should have a ## Schedule section with time labels and HH:MM times, followed by ### Label subsections listing supplements:

## Schedule

- Breakfast: 09:00
- Lunch: 13:00
- Dinner: 18:00

### Breakfast

- Multivitamin
- Vitamin C
- Vitamin D₃

### Lunch

- Fiber (keep 2h away from minerals)

### Dinner

- Magnesium

Update Script

After editing VITAMINS.md, run the update script to sync all cron jobs:

python3 scripts/update_vitamin_crons.py

This reads VITAMINS.md, removes existing vitamin cron jobs, and recreates them with the updated schedule.

What the Script Handles

  • Parses the ## Schedule section for times
  • Parses each ### Label section for supplement lists
  • Creates one cron job per time slot (up to 5 configurable slots)
  • Formats reminder messages: "Vitamin reminder: Breakfast time. Take Multivitamin, Vitamin C, and Vitamin D₃."
  • Removes old jobs before recreating to avoid duplicates

Cron Job Naming

Jobs are named vitamins-{label}-reminder (e.g. vitamins-breakfast-reminder, vitamins-lunch-reminder).

Runtime Requirements

  • python3 — the update script is Python
  • openclaw CLI — the script calls openclaw cron to manage jobs

Data Access

This skill:

  • Reads $WORKSPACE/VITAMINS.md — your supplement schedule (user-created)
  • Manages cron jobs via the openclaw cron CLI — removes existing vitamin jobs, then recreates them
  • Posts messages to the configured channel via cron delivery (requires network when cron fires)
  • No data files written — schedule lives in VITAMINS.md, state is in the cron system

Note: The update script removes all existing vitamins-*-reminder cron jobs before recreating them. Back up existing jobs if needed.

Required Files

  • scripts/update_vitamin_crons.py — cron job sync script (included in bundle)
  • $WORKSPACE/VITAMINS.md — supplement schedule (user-created, not included)

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-05-07 10:12 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

life-service

Sonoscli

steipete
控制Sonos音箱(发现/状态/播放/音量/分组)
★ 57 📥 85,321
life-service

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 459 📥 229,730
life-service

Caldav Calendar

asleep123
使用 vdirsyncer + khal 同步并查询 CalDAV 日历(iCloud、Google、Fastmail、Nextcloud 等)。适用于 Linux。
★ 244 📥 30,785