Current weather

From espressif/esp-claw-skills-lab · View interactive version

Current weather is an AI agent skill from the GitHub repository espressif/esp-claw-skills-lab. Use this skill when the user asks for current weather, temperature, wind,

How to use this skill

Skill file

Current Weather

Use this skill when the user asks for current weather, temperature, wind,

humidity, rain probability, or today's weather forecast.

Run the bundled Lua script once with lua_run_script. The script uses the Lua

capability module from lua_module_call_capability to call the registered

http_request capability against Open-Meteo's forecast API at

https://api.open-meteo.com.

By default it fetches weather for:

Singapore (1.3521, 103.8198)

The configured search_http_allowlist must allow api.open-meteo.com or use

*.

Script Args Schema

{
  "type": "object",
  "properties": {
    "latitude": {
      "type": "number",
      "description": "Optional latitude. Defaults to Singapore latitude 1.3521."
    },
    "longitude": {
      "type": "number",
      "description": "Optional longitude. Defaults to Singapore longitude 103.8198."
    },
    "location": {
      "type": "string",
      "description": "Optional display label for the requested coordinates. Defaults to Singapore."
    },
    "timezone": {
      "type": "string",
      "description": "Optional Open-Meteo timezone parameter. Defaults to auto."
    },
    "timeout_ms": {
      "type": "integer",
      "description": "Optional HTTP timeout in milliseconds. Defaults to 15000."
    },
    "session_id": {
      "type": "string",
      "description": "Optional session id passed to capability.call opts."
    },
    "source_cap": {
      "type": "string",
      "description": "Optional source capability name. Defaults to current_weather."
    }
  }
}

Tool Call Inputs

Default action:

{
  "path": "{CUR_SKILL_DIR}/scripts/current_weather.lua",
  "args": {}
}

Fetch weather for a specific coordinate:

{
  "path": "{CUR_SKILL_DIR}/scripts/current_weather.lua",
  "args": {
    "location": "Shanghai",
    "latitude": 31.2304,
    "longitude": 121.4737
  }
}

Behavior

The script prints a human-readable line and a compact JSON result:

[current_weather] Singapore temp=29.4C apparent=34.1C condition=Partly cloudy humidity=78% wind=8.5km/h rain_prob=35% time=2026-05-13T14:00
{"ok":true,"location":"Singapore","latitude":1.3521,"longitude":103.8198,"temperature_c":29.4,"apparent_temperature_c":34.1,"relative_humidity_pct":78,"wind_speed_kmh":8.5,"weather_code":2,"condition":"Partly cloudy","rain_probability_pct":35,"daily_high_c":31.2,"daily_low_c":26.7,"time":"2026-05-13T14:00"}

Report the weather values to the user. If the script errors, report the error

message directly.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.