Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
{}、方括号 []、还有键值对。把它想成一个高度有序的文件柜,每样东西都有自己固定的位置。Adventure 1
{}{} ,装着相关的数据{
"weather": {
"temperature": "22°C",
"condition": "sunny",
"wind": {
"speed": "10 km/h"
}
}
}Adventure 1
curl https://wttr.in/Beijing?format=j1Adventure 1
{} ,把所有东西都包在里面的那一对: 就是你要的。Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
which openclaw
cd ~/.openclaw/workspace
mkdir weather
vim weather/SKILL.mdAdventure 1
# Weather Query Skill
## Trigger Words
User mentions "weather", "temperature", "rain", "forecast"
## Steps
1. Get the city name from the user's question
2. Call: curl https://wttr.in/{city}?format=j1
3. Parse the JSON response
4. Tell the user in a friendly way
## Example
User: "What's the weather in Tokyo?"
Response: "It's currently 18°C in Tokyo with partly cloudy skies!"Adventure 1
openclaw gateway restart
openclaw agents
openclaw agent --agent main --message "tell me a joke in english"
openclaw agent --agent main --message "y=x^2+3x+6, x=3,y=?"
openclaw agent --agent main --message "weather in las vegas"
openclaw configure --section web
Brave API Key: BSAdZ3Xo8AjGyuUqIlUmrCd3GU_eA6tAdventure 1
~/clawd/skills/ 目录里。可以用 pwd 查看你现在的位置。openclaw restart.Adventure 1
{} 和方括号 [] 都成对闭合。JSON 在这一点上很挑剔。Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1
Adventure 1