Weather

Get current weather and forecasts using free services (no API key required)

foxl-ai c4b7579 1.1 KB Updated

File contents

Weather Skill

Get weather information using free services.

When to use

  • User asks about weather
  • User asks about forecast
  • Morning briefing needs weather info

How to execute

wttr.in (Primary - No API key needed)

Quick one-liner:

curl -s "wttr.in/Seoul?format=3"
# Output: Seoul: ⛅️ +8°C

Compact format:

curl -s "wttr.in/Seoul?format=%l:+%c+%t+%h+%w"
# Output: Seoul: ⛅️ +8°C 71% ↙5km/h

Full forecast:

curl -s "wttr.in/Seoul?T"

Format codes:

  • %c condition
  • %t temperature
  • %h humidity
  • %w wind
  • %l location
  • %m moon phase

Tips:

  • URL-encode spaces: wttr.in/New+York
  • Airport codes: wttr.in/ICN
  • Units: ?m (metric) ?u (USCS)
  • Today only: ?1
  • Current only: ?0

Open-Meteo (Fallback - JSON API)

curl -s "https://api.open-meteo.com/v1/forecast?latitude=37.5665&longitude=126.9780&current_weather=true"

Returns JSON with temp, windspeed, weathercode.

foxl-ai/skills/tree/main/skills/weather commit c4b7579d67

Frequently asked questions

npx skillmds@latest add foxl-ai/weather