Skip to content

Add OpenWeather connector with current weather, forecast, air pollution, and geocoding#138

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-open-weather-connector-yet-again
Draft

Add OpenWeather connector with current weather, forecast, air pollution, and geocoding#138
Copilot wants to merge 5 commits intomainfrom
copilot/add-open-weather-connector-yet-again

Conversation

Copy link
Contributor

Copilot AI commented Nov 6, 2025

Description

Implements OpenWeather API connector supporting current weather, 5-day forecasts, air pollution data, and geocoding services.

Authentication: API key injected via custom hook as appid query parameter

Resources:

  • weather.getCurrent() - Current weather by city/coordinates/ZIP
  • forecast.get5Day() - 5-day/3-hour forecast
  • airPollution.getCurrent/getForecast/getHistory() - AQI and pollutant concentrations
  • geocoding.direct/reverse/zip() - Location name ↔ coordinates conversion

Example usage:

const conn = createConnector()
conn.init({ apiKey: process.env.OPENWEATHER_API_KEY })

const weather = await conn.weather.getCurrent({ 
  q: 'London', 
  units: 'metric' 
})

const forecast = await conn.forecast.get5Day({ 
  lat: 51.5074, 
  lon: -0.1278 
})

Testing Checklist

  • Unit tests for all public methods
  • Integration tests with mock servers
  • Retry logic (backoff, jitter, circuit breaker)
  • Rate limiting behavior
  • Auth flows and expiry/refresh
  • Error classification and propagation
  • Pagination strategies and edge cases

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • us.i.posthog.com

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Connector request: Open Weather (openweather-2)</issue_title>
<issue_description>Identifier: openweather-2
Name: Open Weather
Category: api
Tags: openweather
Homepage: https://openweathermap.org

Description:
https://openweathermap.org/current\
https://openweathermap.org/forecast5\
https://openweathermap.org/api/weathermaps\
https://openweathermap.org/api/air-pollution\
https://openweathermap.org/api/geocoding-api

{
  "kind": "connector-request",
  "identifier": "openweather-2",
  "name": "Open Weather",
  "category": "api",
  "tags": [
    "openweather"
  ],
  "homepage": "https://openweathermap.org",
  "description": "https://openweathermap.org/current\\
https://openweathermap.org/forecast5\\
https://openweathermap.org/api/weathermaps\\
https://openweathermap.org/api/air-pollution\\
https://openweathermap.org/api/geocoding-api"
}

Comments on the Issue (you are @copilot in this section)

Custom agent used: connector-implementer
Use this agent when the user is creating a new connector for the 514 Labs Registry, needs guidance on implementing connector resources, or is working on connector scaffolding, testing, or schema definition.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

@vercel
Copy link

vercel bot commented Nov 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
registry Error Error Nov 6, 2025 4:15pm

Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Copilot AI and others added 3 commits November 6, 2025 16:09
Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Copilot AI changed the title [WIP] Add Open Weather connector request Add OpenWeather connector with current weather, forecast, air pollution, and geocoding Nov 6, 2025
Copilot AI requested a review from georgevanderson November 6, 2025 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Connector request: Open Weather (openweather-2)

2 participants