weather-automation
基于天气数据的智能自动化工具。集成气象 API,支持根据温度、降水、风力等条件触发工作流。适用于农业灌溉提醒、户外活动通知、能源优化调度和物流路线调整。提供自定义规则引擎和多渠道通知(邮件、短信、Webhook)。
npx skills add claude-office-skills/skills --skill weather-automationBefore / After 效果对比
2 组每天早上,我都需要手动打开手机上的天气应用,或者浏览新闻网站,才能获取当天的天气预报。这通常需要花费几分钟的时间,包括解锁手机、打开应用、查找地点、阅读各项数据,然后才能在脑中形成一个对当天天气的概念。如果需要告知家人或同事,还得额外口头转述或手动发送消息。这个过程不仅耗时,而且容易在忙碌的早晨被遗忘,导致出门时对天气状况准备不足,比如忘记带伞或穿错衣服。
借助 `weather-automation` 技能,我设置了一个每日清晨(例如 6:30 AM)自动触发的工作流。该技能会自动获取我指定地点的当天天气预报,包括最高温、最低温和天气状况。然后,它会将这些信息整理成一条简洁的消息,并自动发送到我的 Slack 私信。如果预报有雨,消息中还会智能地提醒我带伞。这彻底消除了我手动查询天气的麻烦,确保我每天都能准时收到准确的天气简报,大大节省了时间并提升了生活便利性。
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–Repositoryclaude-office-s…s/skillsGitHub Stars26First Seen–Security AuditsGen Agent Trust HubPassSocketPassSnykPass
用户评价 (0)
发表评价
暂无评价
统计数据
用户评分
为此 Skill 评分