Skip to content

Add OpenWeatherMap API connector (oweather3)#140

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/add-open-weather-connector-one-more-time
Draft

Add OpenWeatherMap API connector (oweather3)#140
Copilot wants to merge 3 commits intomainfrom
copilot/add-open-weather-connector-one-more-time

Conversation

Copy link
Contributor

Copilot AI commented Nov 6, 2025

Closes: Connector request for OpenWeatherMap API

Implementation

Scaffolded and implemented TypeScript connector for OpenWeatherMap API with full coverage of primary endpoints:

Resources

  • Weather: Current conditions by city name, coordinates, city ID, or zip code
  • Forecast: 5-day/3-hour forecasts with configurable timestamp count
  • Air Pollution: Current, forecast, and historical AQI data with pollutant concentrations
  • Geocoding: Direct (name→coords), reverse (coords→name), and zip code lookup

Configuration

  • API key authentication via query parameter (appid)
  • Unit system selection (metric/imperial/standard)
  • Multi-language support (40+ languages)
  • Built-in observability hooks (logging/metrics)

Structure

const connector = createConnector()
connector.init({ 
  apiKey: 'xxx',
  units: 'metric',
  language: 'en'
})

const weather = await connector.weather.get({ q: 'London,UK' })
const forecast = await connector.forecast.get({ lat: 51.5, lon: -0.1 })
const airQuality = await connector.airPollution.getCurrent({ lat, lon })
const locations = await connector.geocoding.getByLocationName({ q: 'Paris' })

Deliverables

  • 4 resource implementations with TypeScript types
  • JSON schemas + markdown docs for all endpoints
  • 7 passing tests covering all resources
  • Complete documentation (README, config guide, getting started)
  • Metadata files per registry conventions

Tradeoffs

  • Geocoding uses /geo/1.0/* path while other endpoints use /data/2.5/* - handled via path routing in sendLite wrapper
  • No pagination needed (all endpoints return single responses or bounded lists)

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:

  • api.openweathermap.org
    • Triggering command: curl -s REDACTED (dns block)

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 (oweather3)</issue_title>
<issue_description>Identifier: oweather3
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": "oweather3",
  "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.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@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:52pm

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 Open Weather API Add OpenWeatherMap API connector (oweather3) Nov 6, 2025
Copilot AI requested a review from georgevanderson November 6, 2025 16:53
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 (oweather3)

2 participants