Skip to content

Add OpenWeather connector with weather, forecast, geocoding, and air pollution APIs#132

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

Add OpenWeather connector with weather, forecast, geocoding, and air pollution APIs#132
Copilot wants to merge 4 commits intomainfrom
copilot/add-open-weather-connector-again

Conversation

Copy link
Contributor

Copilot AI commented Nov 5, 2025

Description

Implements TypeScript connector for OpenWeatherMap API supporting current weather, 5-day forecasts, geocoding (direct/reverse/zip), and air pollution data (current/forecast/historical).

Core Implementation:

  • API key authentication via query parameters
  • Four resource modules: weather, forecast, geocoding, air-pollution
  • Full TypeScript types for all requests and responses
  • Configurable units (standard/metric/imperial) and language support

Usage:

import { createConnector } from '@workspace/connector-open-weather'

const connector = createConnector()
connector.init({
  apiKey: process.env.OPENWEATHER_API_KEY,
  units: 'metric'
})

// Current conditions
const weather = await connector.weather.getCurrent({ q: 'London,UK' })

// 5-day forecast (3hr intervals)
const forecast = await connector.forecast.get5Day({ lat: 51.5074, lon: -0.1278 })

// Geocoding
const locations = await connector.geocoding.direct({ q: 'Paris,FR', limit: 5 })

// Air quality
const air = await connector.airPollution.getCurrent({ lat: 48.8566, lon: 2.3522 })

Documentation:

  • JSON schemas for all API responses
  • Complete API coverage documentation
  • Configuration and getting-started guides

Testing Checklist

  • Unit tests for all public methods
  • Integration tests with mock servers
  • Retry logic (backoff, jitter, circuit breaker) - inherited from core
  • Rate limiting behavior - inherited from core
  • Auth flows and expiry/refresh - API key passed per request
  • Error classification and propagation
  • Pagination strategies and edge cases - N/A (single request responses)
Original prompt

This section details on the original issue you should resolve

<issue_title>Connector request: Open Weather (open-weather)</issue_title>
<issue_description>Identifier: open-weather
Name: Open Weather
Category: api
Tags: Weather
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": "open-weather",
  "name": "Open Weather",
  "category": "api",
  "tags": [
    "Weather"
  ],
  "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.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link

vercel bot commented Nov 5, 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 0:15am

Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
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 API connector Add OpenWeather connector with weather, forecast, geocoding, and air pollution APIs Nov 6, 2025
Copilot AI requested a review from georgevanderson November 6, 2025 00:14
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 (open-weather)

2 participants