Skip to content

Open Weather Map

Node: openWeatherMap · Full type: n8n-nodes-base.openWeatherMap · Version: 1

Credentials

openWeatherMapApi (alias: @open)

CREDENTIAL @open = openWeatherMapApi "My Open Weather Map"

Operations

Operations: currentWeather, 5DayForecast

Parameters

Parameter Type Default Details
operation options "currentWeather" currentWeather, 5DayForecast
format options "metric" imperial, metric, standard
locationSelection options "cityName" cityName, cityId, coordinates, zipCode
cityName string "" required
cityId number 160001123 required
latitude string "" required
longitude string "" required
zipCode string "" required
language string ""

Example

NODE "openWeatherMap" @open AS "Open Weather Map" {
  operation: "currentWeather",
  cityName: {{ $json.cityName }},
  cityId: 160001123,
  latitude: {{ $json.latitude }},
  longitude: {{ $json.longitude }}
}