← 返回
未分类 Key 中文

Workday Music & Greet

Auto-switch music scenes by workday schedule and send matching GIF greeting emails. Combines home-music scene control with IMAP/SMTP email for a full morning...
Auto-switch music scenes by workday schedule and send matching GIF greeting emails. Combines home-music scene control with IMAP/SMTP email for a full morning...
terrycarter1985 terrycarter1985 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 286
下载
💾 0
安装
1
版本
#latest

概述

Workday Music & Greet

Automate your workday with timed music scene switches and GIF-enhanced greeting emails.

What It Does

TimeSceneEmail Greeting
----------------------------
07:30🌅 Morning"Good morning! Start fresh ☀️" + sunrise GIF
09:00💼 Focus"Deep work time 🎯" + focus GIF
12:00🍱 Break"Lunch break! Recharge 🔋" + food GIF
14:00💼 Focus"Back at it! 💪" + coffee GIF
17:30😌 Chill"Wind down time 🧘" + sunset GIF
22:00🔇 Off"Good night! 🌙" + moon GIF

Setup

1. Install Dependencies

cd skills/workday-music-greet
npm install

2. Configure Email (.env)

Create a .env file in the skill directory:

SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_SECURE=false
SMTP_USER=you@gmail.com
SMTP_PASS=your-app-password
SMTP_FROM=you@gmail.com
GREET_TO=you@gmail.com

3. Configure Music Scenes

Edit scripts/config.json to set your preferred scenes and home-music command path.

4. Register Cron Jobs

Run the setup script to register all timed triggers:

node scripts/setup-cron.js

Or set up manually — each scene triggers node scripts/scene-trigger.js .

One-Shot Usage

Trigger a scene + email manually:

node scripts/scene-trigger.js morning
node scripts/scene-trigger.js focus
node scripts/scene-trigger.js break
node scripts/scene-trigger.js chill
node scripts/scene-trigger.js off

GIF Sources

Default GIFs are pulled from Giphy. To use custom GIFs, replace URLs in scripts/config.json.

Architecture

workday-music-greet/
├── SKILL.md                 # This file
├── package.json             # Dependencies (nodemailer)
├── scripts/
│   ├── config.json          # Scene & email configuration
│   ├── scene-trigger.js     # Main: switch scene + send email
│   ├── send-greet.js        # Email sending logic
│   └── setup-cron.js        # Register OpenClaw cron jobs
└── assets/
    └── email-template.html  # HTML email template

Dependencies

  • home-music skill (for music scene control)
  • imap-smtp-email skill (for email sending; reuses SMTP config)
  • OpenClaw cron (for scheduled triggers)

License

MIT

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-08 13:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,119 📥 839,685
dev-programming

Code Formatter

terrycarter1985
代码格式化最佳实践及常用语言(Python、JavaScript、JSON、Markdown 等)的快速参考,使用 Prettier、Black、ESLint 等工具。
★ 0 📥 794
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,403 📥 323,953