Chuyển đến nội dung
Skillpedia
Công việc và dự án30k · #9359

weather

Skill này làm gì

Skill này lấy thời tiết hiện tại và dự báo cho một thành phố mà không cần khóa API. Nó kiểm tra địa điểm cẩn thận để không nhầm các thành phố có tên giống nhau.

Khi nào nên dùng

  • ✓Khi bạn hỏi thời tiết ở một thành phố lúc này như thế nào.
  • ✓Khi bạn muốn dự báo cho một chuyến đi hoặc một ngày sắp tới.
  • ✓Khi bạn hỏi về thời tiết ở một thành phố có nhiều tên trùng khớp.

Liên kết skill

https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/sipeed/picoclaw/blob/main/workspace/skills/weather/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Thời tiết ở Thành Đô (Chengdu) hôm nay thế nào, và dự báo cho cuối tuần ra sao?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent tra cứu thành phố, kiểm tra quốc gia và khu vực để xác nhận đúng địa điểm, rồi lấy điều kiện hiện tại và dự báo. Nó nhắc lại địa điểm khớp và thời điểm quan sát trong câu trả lời.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Weather

Use the most reliable location match first. For Chinese city names or other non-Latin input, prefer wttr.in with the original query because it resolves native names directly. Use Open-Meteo for structured current conditions and forecasts only after you have confirmed the exact city.

Accuracy Rules

  • Always restate the matched location, region/country, and observation time in the final answer.
  • Do not trust the first geocoding hit blindly. Check country, admin1, admin2, and population.
  • For Chinese city queries, do not send Hanzi directly to Open-Meteo geocoding unless the top result is obviously correct. Prefer wttr.in with the original Chinese name, or geocode the English/pinyin city name instead.
  • If multiple plausible matches remain, ask a follow-up question or state the assumption clearly.
  • Use timezone=auto when calling Open-Meteo so the reported time matches the location.

wttr.in (best for direct city-name queries)

Quick current conditions:

curl -s "https://wttr.in/London?format=%l:+%c+%t+%h+%w"

Chinese city example:

curl -s "https://wttr.in/%E6%88%90%E9%83%BD?format=%l:+%c+%t+%h+%w"
curl -s "https://wttr.in/%E4%B8%8A%E6%B5%B7?format=%l:+%c+%t+%h+%w"

JSON output if you need more detail:

curl -s "https://wttr.in/Chengdu?format=j1"

Tips:

  • URL-encode spaces: New York -> New+York
  • URL-encode non-ASCII text before sending the request
  • Use ?m for metric units and ?u for US units

Open-Meteo (best for structured forecasts)

  1. Geocode the city and verify the returned location metadata:
curl -s "https://geocoding-api.open-meteo.com/v1/search?name=Chengdu&count=3&language=en&format=json"
  1. Query current weather and today's forecast with the verified coordinates:
curl -s "https://api.open-meteo.com/v1/forecast?latitude=30.66667&longitude=104.06667&current=temperature_2m,relative_humidity_2m,weather_code,wind_speed_10m&daily=weather_code,temperature_2m_max,temperature_2m_min&forecast_days=1&timezone=auto"

Important:

  • For Chinese inputs like 成都, geocoding name=%E6%88%90%E9%83%BD may return smaller homonym locations first. Prefer Chengdu after verifying it matches Sichuan, China.
  • If geocoding looks suspicious, fall back to wttr.in for the original city name instead of presenting a likely wrong result.

Docs: https://open-meteo.com/en/docs

Câu hỏi thường gặp

Tôi có cần khóa API không?

Không. Skill dùng các dịch vụ thời tiết công khai không cần khóa.

Nếu tên thành phố mơ hồ thì sao?

Agent hỏi lại bạn hoặc nêu rõ giả định nó đã dùng.

Nó có xử lý tên thành phố bằng ngôn ngữ khác không?

Có. Tên bản địa, như tên thành phố tiếng Trung, được xử lý bằng tra cứu trực tiếp.

Chi tiết

Mô tả gốc của tác giả

Get current weather and forecasts with verified location matching (no API key required).

repo: sipeed/picoclaw

Độ phổ biến

Sao GitHub
30k
Vị trí xếp hạng
#9359
Giấy phép
MIT
Cập nhật
30/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự