Skip to content

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

Draft
Copilot wants to merge 7 commits intomainfrom
copilot/create-openweather-connector
Draft

Add OpenWeather connector with current weather, forecast, air pollution, and geocoding#127
Copilot wants to merge 7 commits intomainfrom
copilot/create-openweather-connector

Conversation

Copy link
Contributor

Copilot AI commented Nov 5, 2025

Implements connector for OpenWeather API covering current weather data, 5-day forecasts, air quality monitoring, and geocoding services.

Implementation

Authentication: API key injected as query parameter via beforeRequest hook

  • Supports default units (standard/metric/imperial) and language configuration
  • No separate auth header required

Resources:

  • current-weather - Query by city name, coordinates, city ID, or ZIP code
  • forecast - 5-day predictions with 3-hour intervals (up to 40 data points)
  • air-pollution - Current, forecast, and historical AQI with pollutant concentrations
  • geocoding - Forward/reverse geocoding and ZIP lookup

Schemas: JSON schemas with markdown docs for all four resources

Usage

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

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

// Current weather
const weather = await connector.currentWeather.getByCity('London,UK')

// 5-day forecast
const forecast = await connector.forecast.getByCoordinates(40.7128, -74.0060)

// Air quality
const pollution = await connector.airPollution.getCurrent(48.8566, 2.3522)

// Geocoding
const locations = await connector.geocoding.forward('Tokyo,JP')

Tests: 11 unit tests covering all resources and configuration options
Rate Limits: Free tier supports 60 calls/min, 1M calls/month

Original prompt

This section details on the original issue you should resolve

<issue_title>Connector: OpenWeather</issue_title>
<issue_description>Create a connector for these sources

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</issue_description>

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

Note

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

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

Project Deployment Preview Comments Updated (UTC)
registry Error Error Nov 5, 2025 10:52pm

Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Co-authored-by: georgevanderson <4805522+georgevanderson@users.noreply.github.com>
Copilot AI and others added 2 commits November 5, 2025 00:34
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 connector for OpenWeather API sources Add OpenWeather connector with current weather, forecast, air pollution, and geocoding Nov 5, 2025
Copilot AI requested a review from georgevanderson November 5, 2025 00:39
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: OpenWeather

2 participants