← 返回
开发者工具

WastePickupReminder

Automates customized waste collection reminders with multiple container types, schedules, targets, and confirmation via direct API messaging.
通过直接API消息自动发送定制化垃圾收集提醒,支持多种容器类型、时间表、目标及确认。
apenklit apenklit 来源
开发者工具 clawhub v1.0.2 1 版本 99914.9 Key: 无需
★ 0
Stars
📥 1,174
下载
💾 10
安装
1
版本
#latest

概述

Waste Reminder Skill

A flexible, token-efficient skill for automated waste container collection reminders.

Overview

This skill helps automate waste collection reminders based on user-defined schedules. It uses simple JSON configuration for maximum flexibility and minimal token usage.

How it works:

The skill reads your config and schedule, determines which reminders need to be sent, and outputs them in a format that your AI assistant can process. The AI then sends the actual messages to the specified channels.

Output format:

SEND_TO:recipient_id
CHANNEL:whatsapp
Your message here
---

This approach keeps your configuration simple and token-efficient - the skill doesn't need API keys or direct network access.

Features

  • Multiple container types
  • Custom reminder schedules (up to 4 times per pickup)
  • Flexible targeting (group, personal, escalation)
  • Multi-channel support (WhatsApp, Telegram, Discord, Email) - messages sent by your AI
  • Confirmation system (stops further reminders)
  • Single schedule file
  • Token-efficient - generates reminders without using AI tokens

Installation

clawhub install waste-reminder

Setup for Users

When you install this skill, the AI assistant will send you a config template. Reply in any language - the AI will understand and convert it to the correct format!

Example Template (Complete example with all options)

I want to set up waste reminders!

My containers:
- blue: Paper (🔵)
- gray: Residual (⚫)
- orange: Plastic (🟠)
- green: Garden (🟢)

Reminder times:
- 18:00: to group_whatsapp (day before, group notification)
- 22:00: to group_whatsapp (evening reminder to group)
- 06:30: to partner_whatsapp (morning, specific person)
- 09:30: to me_telegram (escalation, different channel)

My contacts:
- group_whatsapp: 123456789@g.us
- partner_whatsapp: +31600000001
- me_telegram: 222222222

Upcoming pickups:
- 2026-02-24: orange
- 2026-02-25: gray
- 2026-03-02: blue

The AI will convert this to the correct JSON format and set everything up.

Configuration

The skill stores configuration in:

/data/.openclaw/workspace/data/waste-reminder/

Files

waste-reminder/
├── config.json      # Your containers, reminder times, targets
└── schedule.json   # Your pickup dates and status

Complete config.json Example (all options shown)

{
  "config_version": "1.0",
  "containers": {
    "blue": {"name": "Paper", "color": "blue", "emoji": "🔵"},
    "gray": {"name": "Residual", "color": "gray", "emoji": "⚫"},
    "orange": {"name": "Plastic", "color": "orange", "emoji": "🟠"},
    "green": {"name": "Garden", "color": "green", "emoji": "🟢"}
  },
  "reminder_times": {
    "18:00": {
      "type": "group",
      "template": "Tomorrow: {container_emoji} {container_name} will be collected!",
      "target": "group_whatsapp"
    },
    "22:00": {
      "type": "group",
      "template": "Not confirmed yet - {container_emoji} needs to go out by 7am!",
      "target": "group_whatsapp"
    },
    "06:30": {
      "type": "personal",
      "template": "⚠️ {container_emoji} put out NOW!",
      "target": "partner_whatsapp"
    },
    "09:30": {
      "type": "escalation",
      "template": "Container still not outside!",
      "target": "me_telegram"
    }
  },
  "targets": {
    "group_whatsapp": {"id": "123456789@g.us", "channel": "whatsapp"},
    "partner_whatsapp": {"id": "+31600000001", "channel": "whatsapp"},
    "partner_telegram": {"id": "111111111", "channel": "telegram"},
    "me_whatsapp": {"id": "+31600000002", "channel": "whatsapp"},
    "me_telegram": {"id": "222222222", "channel": "telegram"},
    "me_discord": {"id": "https://discord.com/api/webhooks/...", "channel": "discord"}
  }
}

Complete schedule.json Example

{
  "2026-02-24": {
    "orange": {
      "confirmed": false,
      "reminded_18:00": false,
      "reminded_22:00": false,
      "reminded_06:30": false,
      "reminded_09:30": false
    }
  },
  "2026-02-25": {
    "gray": {
      "confirmed": false,
      "reminded_18:00": false,
      "reminded_22:00": false,
      "reminded_06:30": false,
      "reminded_09:30": false
    }
  }
}

Cron Job

Add ONE cron job that runs every 15 minutes:

  • Name: "Waste Reminder Check"
  • Schedule: every 15 minutes
  • Script: /data/.openclaw/workspace/skills/waste-reminder/waste_cron.py

The cron script checks if any reminders need to be sent and outputs them. Your AI assistant (triggered by the cron job) reads this output and sends the actual messages to the appropriate channels.

User Commands

  • Confirm: "container is out"
  • View: "waste schedule" or "waste status"
  • Add: "waste add [date] [container]"
  • Remove: "waste remove [date] [container]"

Files

waste-reminder/
├── SKILL.md           # This file
├── waste_reminder.py # CLI tool (manual commands)
└── waste_cron.py      # Cron script (every 15 min)

Template Placeholders

  • {container_emoji} - The emoji
  • {container_name} - The name
  • {date} - The date

Channel Support

Supported channels:

  • whatsapp - Use phone number or group ID as ID
  • telegram - Use chat ID
  • discord - Use webhook URL
  • email - Use email address

Each target must specify both id and channel.

Target Naming Convention

Targets should be named with channel suffix:

  • group_whatsapp, group_telegram, group_discord
  • me_whatsapp, me_telegram, me_discord
  • partner_whatsapp, partner_telegram, partner_discord

The channel is extracted from the target name automatically.

License

MIT License

版本历史

共 1 个版本

  • v1.0.2 当前
    2026-03-29 06:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

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

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。适用于以下场景:创建/查询实体(人物、项目、任务、事件、文档)、关联相关对象、强制执行约束、将多步操作规划为图谱变换,或当技能需要共享状态时。触发关键词包括"记住""我知道关于什么""将X链
★ 724 📥 245,270
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,233 📥 268,567