workday-music-greeting

Auto-switch Spotify music scenes on workdays by time-of-day and send scene-matched greeting emails with inline GIFs. Combines home-music scene logic with SMTP email for a complete morning-to-evening automation.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "workday-music-greeting" with this command: npx skills add terrycarter1985/workday-music-greeting

📅🎵 Workday Music Greeting

Music that matches your moment. A greeting that matches your mood.

Auto-switch Spotify playlists throughout the workday and send yourself (or your team) a cheerful greeting email with a scene-matched GIF at every transition.


🎬 Scenes & Schedule

TimeSceneVibePlaylist
06:00–09:00🌅 MorningGentle startPeaceful Piano
09:00–12:00🎯 FocusDeep workDeep Focus
12:00–14:00☕ BreakLunch rechargePeaceful Piano (lighter)
14:00–18:00🎯 FocusDeep workDeep Focus
18:00–21:00🌇 Wind-downEvening relaxChill Lounge
21:00+🔇 OffSilence
Weekend🏖️ SkipNo auto-scene

📦 Dependencies

WhatWhy
🟢 Spotify CLI (spotify or spotify-applescript)Play/pause/volume control
📧 imap-smtp-email skillSend greeting emails via SMTP
🖼️ GIF files (optional)Inline images in greeting emails

🚀 Quick Start

1. Switch scene (auto-detect from time)

./scripts/workday-scene.sh

2. Switch to a specific scene

./scripts/workday-scene.sh morning
./scripts/workday-scene.sh focus
./scripts/workday-scene.sh break
./scripts/workday-scene.sh winddown
./scripts/workday-scene.sh off

3. Send a greeting email

./scripts/send-greeting.sh morning you@example.com

4. Full automation (scene + email)

./scripts/workday-automation.sh --email you@example.com --scene morning

Or let it auto-detect the scene:

./scripts/workday-automation.sh --email you@example.com

⏰ Cron Setup

Set up cron jobs for automatic workday switching. Example (Mon–Fri at 7:00 AM):

# Morning greeting
0 7 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --email you@example.com --scene morning

# Focus mode
0 9 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --scene focus

# Break
0 12 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --email you@example.com --scene break

# Afternoon focus
0 14 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --scene focus

# Wind down
0 18 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --email you@example.com --scene winddown

# Off
0 21 * * 1-5 /path/to/skills/workday-music-greeting/scripts/workday-automation.sh --scene off

Or use OpenClaw cron for cloud-managed scheduling:

# In your OpenClaw session:
"Remind me to switch to morning music every weekday at 7 AM"

🖼️ Adding GIFs

Place animated GIFs in the gifs/ directory:

gifs/
├── morning.gif    # Sunrise / coffee / stretching
├── focus.gif      # Typing / headphones / laser focus
├── break.gif      # Food / coffee break / walk
└── winddown.gif   # Sunset / couch / relaxation

Tips:

  • Keep GIFs under 2MB for reliable email delivery
  • Use gifs/README.md as reference for naming conventions
  • If a GIF is missing, the email sends without the image (graceful degradation)

⚙️ Configuration

Edit scripts/workday-scene.sh to customize:

# Playlists (Spotify URIs)
PLAYLIST_MORNING="spotify:playlist:37i9dQZF1DX4WYpdgoIcn6"
PLAYLIST_FOCUS="spotify:playlist:37i9dQZF1DWZeKCadgRdKQ"
PLAYLIST_BREAK="spotify:playlist:37i9dQZF1DX4sWSpwq3LiO"
PLAYLIST_WINDOWN="spotify:playlist:37i9dQZF1DWTwnEm1IYyoj"

# Speaker
SPEAKER="Sonos Move"

# Volumes (0-100)
VOL_MORNING=35
VOL_FOCUS=25
VOL_BREAK=40
VOL_WINDOWN=30

Edit scripts/send-greeting.sh to customize email subjects and body HTML.


📁 File Structure

workday-music-greeting/
├── SKILL.md                        # This documentation
├── scripts/
│   ├── workday-scene.sh            # Scene switching logic
│   ├── send-greeting.sh            # Email sending with GIF
│   └── workday-automation.sh       # Master orchestrator
└── gifs/
    ├── README.md                   # GIF naming guide
    ├── morning.gif                 # (user-provided)
    ├── focus.gif                   # (user-provided)
    ├── break.gif                   # (user-provided)
    └── winddown.gif                # (user-provided)

🔧 Advanced: Custom Scenes

Add new scenes in workday-scene.sh:

scene_workout() {
  echo "💪 Workout scene"
  "$SPOTIFY_CMD" play "spotify:playlist:YOUR_URI"
  "$SPOTIFY_CMD" volume 80
}

# Add to case block:
  workout) scene_workout ;;

Then add the matching email case in send-greeting.sh.


🐛 Troubleshooting

IssueFix
Spotify not playingEnsure Spotify app is running; check $SPOTIFY_CMD path
Email not sendingVerify SMTP env vars (SMTP_HOST, SMTP_USER, SMTP_PASS)
GIF not showingCheck file exists in gifs/ and name matches scene exactly
Weekend triggeringis_weekday() check should skip; verify system timezone

Author: OpenClaw Workspace
Version: 1.0.0
License: MIT

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

成交加速器 / Deal Closer

成交加速器 — 智能CRM助手,邮件信号提取、销售漏斗分析、AI跟进邮件起草、自学习销售智能、CRM知识图谱、IMAP/SMTP原生邮件

Registry SourceRecently Updated
2690Profile unavailable
Automation

SZZG007 Product Promotion

自动提取商品图片,生成高质量HTML推广邮件模版,支持素材库管理及邮件发送的一体化工具。

Registry SourceRecently Updated
3340Profile unavailable
Automation

Email Automation

Automate email triage, categorize, draft replies, and auto-archive in Gmail, Outlook, or IMAP to maintain an organized, efficient inbox.

Registry SourceRecently Updated
1.1K0Profile unavailable
Automation

Inbox Triage Bot

AI-powered email triage via IMAP (himalaya) or Google API. Fetches inbox, classifies messages by urgency, recommends actions, and generates daily markdown di...

Registry SourceRecently Updated
4280Profile unavailable