Manus에서 모든 스킬 실행
원클릭으로
원클릭으로
원클릭으로 Manus에서 모든 스킬 실행
시작하기get-weather
스타3
포크0
업데이트2026년 3월 2일 03:39
获取指定城市的实时天气信息
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SKILL.md
readonly메뉴
获取指定城市的实时天气信息
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | get_weather |
| description | 获取指定城市的实时天气信息 |
此技能用于获取指定城市的实时天气信息。
fetch_url 工具访问天气APIimport json
# 使用fetch_url获取天气数据
url = f"https://api.openweathermap.org/data/2.5/weather?q={city}&appid=YOUR_API_KEY&units=metric&lang=zh_cn"
data = fetch_url(url)
# 解析JSON数据
weather_data = json.loads(data)
# 提取天气信息
city_name = weather_data.get("name")
temperature = weather_data.get("main", {}).get("temp")
humidity = weather_data.get("main", {}).get("humidity")
weather_description = weather_data.get("weather", [{}])[0].get("description")
# 格式化返回
result = f"{city_name}的当前天气:{weather_description},温度:{temperature}°C,湿度:{humidity}%"