---
id: daily-weather-automation
name: "weather-automation"
url: https://skills.yangsir.net/skill/daily-weather-automation
author: claude-office-skills
domain: automation
tags: ["weather", "automation", "iot", "alerts", "integration"]
install_count: 243
rating: 4.10 (20 reviews)
github: https://github.com/claude-office-skills/skills
---

# weather-automation

> 基于天气数据的智能自动化工具。集成气象 API，支持根据温度、降水、风力等条件触发工作流。适用于农业灌溉提醒、户外活动通知、能源优化调度和物流路线调整。提供自定义规则引擎和多渠道通知（邮件、短信、Webhook）。

**Stats**: 243 installs · 4.1/5 (20 reviews)

## Before / After 对比

### 每日天气速览自动化

**Before**:

每天早上，我都需要手动打开手机上的天气应用，或者浏览新闻网站，才能获取当天的天气预报。这通常需要花费几分钟的时间，包括解锁手机、打开应用、查找地点、阅读各项数据，然后才能在脑中形成一个对当天天气的概念。如果需要告知家人或同事，还得额外口头转述或手动发送消息。这个过程不仅耗时，而且容易在忙碌的早晨被遗忘，导致出门时对天气状况准备不足，比如忘记带伞或穿错衣服。

**After**:

借助 `weather-automation` 技能，我设置了一个每日清晨（例如 6:30 AM）自动触发的工作流。该技能会自动获取我指定地点的当天天气预报，包括最高温、最低温和天气状况。然后，它会将这些信息整理成一条简洁的消息，并自动发送到我的 Slack 私信。如果预报有雨，消息中还会智能地提醒我带伞。这彻底消除了我手动查询天气的麻烦，确保我每天都能准时收到准确的天气简报，大大节省了时间并提升了生活便利性。

| Metric | Before | After | Change |
|---|---|---|---|
| 每日手动查询时间 | 3分钟 | 0分钟 | -100% |
| 天气简报送达一致性 | 60% | 100% | +67% |

### 智能天气预警与事件规划

**Before**:

在没有 `weather-automation` 技能时，我需要持续关注天气预报，以应对特定天气状况。例如，如果计划户外活动，我必须在活动前几天和当天反复查看降雨概率；如果冬季气温骤降，我需要手动关注冰冻预警，并及时采取措施保护水管。这不仅耗费大量精力，容易因疏忽而错过关键预警，导致户外活动受阻或家庭设施受损。整个过程完全依赖人工监测和判断，效率低下且风险较高。

**After**:

通过 `weather-automation` 技能，我能够设置智能天气预警规则和自动化事件规划。例如，我可以设定当未来 6 小时降水概率超过 70% 时，自动通过 Slack 接收通知；或者当气温低于 0°C 时，自动发送短信并触发智能家居系统保护水管。对于户外活动，技能可以自动检查活动地点的天气预报，如果降雨概率高，则自动通知组织者考虑备用方案。这确保了对关键天气变化的及时响应，显著降低了人工监测的负担和潜在风险。

| Metric | Before | After | Change |
|---|---|---|---|
| 关键天气响应时间 | 30分钟 | 5分钟 | -83% |
| 错过关键预警的概率 | 20% | 0% | -100% |

## Readme

# weather-automation

# Weather Automation

Automate weather-based workflows and notifications.

## Core Capabilities

### Current Weather

```
current_weather:
  location: "San Francisco, CA"
  # or coordinates
  lat: 37.7749
  lon: -122.4194
  
  response:
    temperature: 65°F
    feels_like: 63°F
    humidity: 72%
    wind_speed: 12 mph
    conditions: "Partly Cloudy"
    uv_index: 5

```

### Forecast

```
forecast:
  location: "New York, NY"
  days: 7
  
  daily:
    - date: "2024-01-20"
      high: 45°F
      low: 32°F
      conditions: "Snow"
      precipitation_chance: 80%
      
  hourly:
    interval: 3  # hours
    periods: 24

```

### Weather Alerts

```
alert_rules:
  - name: "Rain Alert"
    condition:
      precipitation_chance: "> 70%"
      within_hours: 6
    action:
      notify: slack
      message: "☔ Rain expected in next 6 hours"
      
  - name: "Freeze Warning"
    condition:
      temperature: "< 32°F"
    action:
      - notify: sms
      - trigger: home_assistant
        action: protect_pipes

```

## Workflow Examples

### Morning Briefing

```
morning_weather:
  trigger: daily at 6:30 AM
  actions:
    - get_forecast:
        location: home
        days: 1
    - send_notification:
        channel: slack_dm
        message: |
          🌤️ Good morning! Today's weather:
          High: {{high}}°F | Low: {{low}}°F
          {{conditions}}
          {{#if rain}}☔ Bring an umbrella!{{/if}}

```

### Event Planning

```
event_weather:
  trigger: calendar_event_tomorrow
  condition:
    event_type: outdoor
  actions:
    - get_forecast:
        location: "{{event.location}}"
        date: "{{event.date}}"
    - if:
        precipitation_chance: "> 50%"
      then:
        - notify: organizer
          message: "Consider backup venue - rain likely"

```

## Best Practices

- **Caching**: Cache frequent requests

- **Units**: Support both metric/imperial

- **Accuracy**: Use reliable data sources

- **Alerts**: Set sensible thresholds

- **Location**: Support multiple formats

Weekly Installs–Repository[claude-office-s…s/skills](https://github.com/claude-office-skills/skills)GitHub Stars26First Seen–Security Audits[Gen Agent Trust HubPass](/claude-office-skills/skills/weather-automation/security/agent-trust-hub)[SocketPass](/claude-office-skills/skills/weather-automation/security/socket)[SnykPass](/claude-office-skills/skills/weather-automation/security/snyk)

---
*Source: https://skills.yangsir.net/skill/daily-weather-automation*
*Markdown mirror: https://skills.yangsir.net/api/skill/daily-weather-automation/markdown*