Weather

Query weather forecasts for any city. Uses wttr.in service, no API key required.

qualcomm 51702b3 3 files · 5.0 KB Updated

File contents

Weather

Use the exec tool to run the following command to get weather forecast:

CRITICAL:

Required Action: Call exec tool to run command immediately. Replace "shanghai" with the city name from the user's request (supports both English and Chinese city names).

Tool call: {"name":"exec","arguments":{"command":"python ${SKILL_DIR}/scripts/get_weather.py shanghai","timeout":30}}

DO NOT make up weather data. Call exec tool immediately with timeout set to 30, replacing "shanghai" with the city name from user's request.

Final Step: When you receive the output from the exec command, verify it contains weather data, and then present it to the user.

Output Example

Shanghai Weather Forecast
==================================================
2026-03-30: 18~24C, Partly cloudy
2026-03-31: 17~23C, Sunny
2026-04-01: 19~25C, Cloudy

Notes

  • Supports both English and Chinese city names: e.g. "nanjing" or "南京"
  • Script returns a concise 3-day weather forecast
  • You MUST call the exec tool to get real data

qualcomm/qai-appbuilder/tree/main/tools/qaiappbuilder/skills/weather commit 51702b3f23

Frequently asked questions

npx skillmds@latest add qualcomm/weather