Weather

Gets current and future weather information

5 day Forecast

AI-generated

Overview

This node fetches weather information from the OpenWeatherMap API, supporting both current weather data and a 5-day weather forecast. It is useful for applications that need to display or process weather conditions for various locations, such as travel planning, event scheduling, or environmental monitoring. For example, it can provide the current temperature and conditions in a city or a detailed forecast for the next five days based on user-specified location parameters.

Use Case Examples

  1. A user wants to get the 5-day weather forecast for Berlin, Germany, in metric units.
  2. An application needs the current weather conditions for a specific city ID in imperial units.

Properties

Name Meaning
Format The unit system for the weather data (Imperial, Metric, or Scientific).
Location Selection Method to specify the location for the weather data (City Name, City ID, Coordinates, or Zip Code).
City The city name to get weather data for (required if Location Selection is City Name).
City ID The city ID to get weather data for (required if Location Selection is City ID).
Latitude Latitude coordinate for the location (required if Location Selection is Coordinates).
Longitude Longitude coordinate for the location (required if Location Selection is Coordinates).
Zip Code Zip code for the location (required if Location Selection is Zip Code).
Language Optional two-letter language code to localize the weather data output (e.g., en, de).

Output

JSON

  • ``
    • weather - Weather condition details for each forecast or current weather data entry.
    • main - Main weather parameters such as temperature, pressure, and humidity.
    • wind - Wind speed and direction data.
    • clouds - Cloudiness information.
    • dt_txt - Date and time of the forecasted data point (for 5-day forecast).

Dependencies

  • OpenWeatherMap API

Troubleshooting

  • Ensure valid OpenWeatherMap API credentials are provided; missing or invalid credentials will cause errors.
  • Verify that the location parameters match the selected Location Selection method; incorrect or missing parameters will cause the node to throw errors.
  • The node throws errors if an unknown operation or location selection is specified; ensure correct operation and location values are used.
  • Network or API request failures will result in errors; check network connectivity and API service status.

Links

Discussion