Jeden Skill in Manus ausführen
mit einem Klick
mit einem Klick
Jeden Skill in Manus mit einem Klick ausführen
Loslegen$pwd:
$ git log --oneline --stat
stars:238
forks:13
updated:18. März 2026 um 01:36
SKILL.md
| name | weather |
| description | 查询中国城市天气(免费,无需API密钥)。支持城市名查天气。 |
| trigger | tool |
| executor | sandbox |
| metadata | {"openclaw":{"emoji":"🌤️","requires":{"bins":["curl"]}}} |
使用 t.weather.sojson.com 免费 API 查询天气。返回 JSON,包含温度、湿度、风向等。
常用城市代码(citykey):
--connect-timeout 5 to prevent hanging|| — if curl fails, echo an error messagecurl -s --connect-timeout 5 "http://t.weather.sojson.com/api/weather/city/101010100" | python3 -c "
import sys,json
d=json.load(sys.stdin)
if d.get('status')==200:
ci=d['cityInfo']
t=d['data']
f=t['forecast'][0]
print(f\"{ci['city']} {f['ymd']} {f['week']}\")
print(f\"天气: {f['type']} | {f['low']}~{f['high']}\")
print(f\"湿度: {t['shidu']} | 风: {f['fx']}{f['fl']}\")
print(f\"PM2.5: {t['pm25']} 空气: {t['quality']}\")
print(f\"提示: {t['ganmao']}\")
else:
print('天气查询失败')
" || echo "天气查询暂时不可用,请稍后再试"
curl -s --connect-timeout 5 "http://t.weather.sojson.com/api/weather/city/101020100" | python3 -c "
import sys,json
d=json.load(sys.stdin)
if d.get('status')==200:
ci=d['cityInfo']
t=d['data']
f=t['forecast'][0]
print(f\"{ci['city']} {f['ymd']} {f['week']}\")
print(f\"天气: {f['type']} | {f['low']}~{f['high']}\")
print(f\"湿度: {t['shidu']} | 风: {f['fx']}{f['fl']}\")
print(f\"PM2.5: {t['pm25']} 空气: {t['quality']}\")
print(f\"提示: {t['ganmao']}\")
else:
print('天气查询失败')
" || echo "天气查询暂时不可用,请稍后再试"
|| echo "..." 确保 stdout 不为空