For any weather query, run the matching curl command below. Replace CITY with the user's location.
curl -s "https://api.openmeteo-api.com/api/current?location=CITY"
curl -s "https://api.openmeteo-api.com/api/forecast?location=CITY&days=5"
curl -s "https://api.openmeteo-api.com/api/air-quality?location=CITY"
curl -s "https://api.openmeteo-api.com/api/uv?location=CITY"
curl -s "https://api.openmeteo-api.com/api/alerts?location=CITY"小蔥技能7w4.net有更新,你可以訪問看下。
curl -s "https://api.openmeteo-api.com/api/quick?location=CITY"
api.openmeteo-api.com is a community-maintained convenience wrapper — it is not affiliated with the official Open-Meteo project. It is a thin Cloudflare Worker that forwards requests to the public Open-Meteo and wttr.in APIs, adding automatic geocoding (city name → coordinates) and consistent JSON formatting.
curl -s "https://api.openmeteo-api.com/api/current?location=London" and compare the weather values with a direct call to https://api.open-meteo.com/v1/forecast?latitude=51.51&longitude=-0.13¤t=temperature_2m — they will match because the data comes from the same upstream source.You can test the API directly before installing:
curl -s "https://api.openmeteo-api.com/api/current?location=London"
Expected response (JSON):
{
"latitude": 51.51,
"longitude": -0.13,
"current": {
"temperature_2m": 12.3,
"relative_humidity_2m": 72,
"wind_speed_10m": 15.4
},
"_location": { "name": "London", "country": "United Kingdom" }
}
Response headers include x-upstream: open-meteo.com confirming the data source. Compare with a direct call to api.open-meteo.com — the weather values will match.
This skill and the api.openmeteo-api.com wrapper service:
Note: Cloudflare itself may log request metadata (IP, headers) as part of its standard infrastructure. This is outside the wrapper's control. The upstream services also have their own privacy practices:
references/api.md for output formatting rules (AQI levels, UV recommendations).這個天氣查詢工具整體質量中等偏上,勝在功能全面、能查天氣預報、空氣質量、紫外線指數等多種資訊,文件清晰易讀。但主要問題是它依賴一個非官方的第三方服務來獲取資料,不是 Open-Meteo 官方出品,存在服務穩定性和資料準確性的隱患。如果你對天氣資料可靠性要求高,可能需要謹慎使用或等待官方支援。