Instructions for fetching current weather temperature data for Karachi, Pakistan from wttr.in API
This skill provides instructions for fetching current weather data.
Fetch the current temperature for Dubai, UAE in the requested unit (Celsius or Fahrenheit).
Fetch Weather Data: Use the WebFetch tool to get current weather data for Dubai from the Open-Meteo API.
For Celsius:
https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708¤t=temperature_2m&temperature_unit=celsiusFor Fahrenheit:
https://api.open-meteo.com/v1/forecast?latitude=25.2048&longitude=55.2708¤t=temperature_2m&temperature_unit=fahrenheitExtract Temperature: From the JSON response, extract the current temperature:
current.temperature_2mcurrent_units.temperature_2mReturn Result: Return the temperature value and unit clearly.
After completing this skill's instructions:
Current Dubai Temperature: [X]°[C/F]
Unit: [Celsius/Fahrenheit]
下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Category:weather