Instructions for fetching current weather temperature data for Dubai, UAE from Open-Meteo API
正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
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]