weather-fetcher

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Weather Fetcher Skill

天气获取Skill

This skill provides instructions for fetching current weather data.
本Skill提供获取当前天气数据的操作指南。

Task

任务

Fetch the current temperature for Karachi, Pakistan in degrees Celsius (Centigrade).
获取巴基斯坦卡拉奇的当前气温,单位为摄氏度(Centigrade)。

Instructions

操作步骤

  1. Fetch Weather Data: Use the WebFetch tool to get current weather data for Karachi from wttr.in API:
    • URL:
      https://wttr.in/Karachi?format=j1
    • This returns JSON format weather data
  2. Extract Temperature: From the JSON response, extract the current temperature in Celsius from the
    current_condition
    section.
  3. Store Result: Keep the temperature value for the next step (transformation).
  1. 获取天气数据:使用WebFetch工具从wttr.in API获取卡拉奇的当前天气数据:
    • URL:
      https://wttr.in/Karachi?format=j1
    • 该接口返回JSON格式的天气数据
  2. 提取气温:从JSON响应中,从
    current_condition
    字段提取当前的摄氏气温。
  3. 存储结果:保存气温值,用于下一步(转换操作)。

Expected Output

预期输出

After completing this skill's instructions:
Current Karachi Temperature: [X]°C
Status: Successfully fetched weather data
完成本Skill的操作步骤后:
Current Karachi Temperature: [X]°C
Status: Successfully fetched weather data

Notes

注意事项

  • Only fetch the temperature, do not perform any transformations yet
  • Use wttr.in as it provides reliable, free weather data
  • Return just the numeric temperature value clearly
  • 仅需获取气温,暂不执行任何转换操作
  • 使用wttr.in,因为它提供可靠的免费天气数据
  • 清晰返回纯数字的气温值