Skip to content

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

Draft
Copilot wants to merge 5 commits intomainfrom
copilot/add-open-weather-connector-please-work
Draft

Add OpenWeather API connector with current weather, forecast, air pollution, and geocoding#144
Copilot wants to merge 5 commits intomainfrom
copilot/add-open-weather-connector-please-work

Conversation

Copy link
Contributor

Copilot AI commented Nov 7, 2025

Description

Implements TypeScript connector for OpenWeather API (issue openweather-4) with four resource modules:

  • Current Weather: Query by city name, coordinates, city ID, or zip code
  • Forecast: 5-day/3-hour interval forecasts with configurable data point limits
  • Air Pollution: Current, forecast (4 days), and historical (from Nov 2020) AQI and pollutant data
  • Geocoding: Direct (name→coords), reverse (coords→name), and zip code lookup

Authentication: API key via query parameter
Configuration: Units (standard/metric/imperial), language, optional logging/metrics

import { createConnector } from '@workspace/connector-openweather'

const connector = createConnector()
connector.init({ apiKey: 'your-key', units: 'metric' })

const weather = await connector.currentWeather.getByCity('London', 'uk')
const forecast = await connector.forecast.getByCoordinates(48.8566, 2.3522)
const pollution = await connector.airPollution.getCurrent(51.5074, -0.1278)
const locations = await connector.geocoding.direct('Tokyo,JP')

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 (N/A - API returns single responses or fixed collections)
Original prompt

This section details on the original issue you should resolve

<issue_title>Connector request: Open Weather (openweather-4)</issue_title>
<issue_description>Identifier: openweather-4
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": "openweather-4",
  "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.


💡 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 7, 2025

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

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

Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Copilot AI and others added 3 commits November 7, 2025 18:38
Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
…ents

Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Copilot AI changed the title [WIP] Add connector request for Open Weather API Add OpenWeather API connector with current weather, forecast, air pollution, and geocoding Nov 7, 2025
Copilot AI requested a review from georgevanderson November 7, 2025 18:46
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-4)

2 participants