Actions2
Current Weather
AI-generatedOverview
This node retrieves current weather information based on various location inputs. It supports fetching weather data by city name, city ID, geographic coordinates, or zip code, and allows users to specify the unit format (Imperial, Metric, Scientific) and language for the response. It is useful for applications needing real-time weather updates, such as travel apps, event planning tools, or environmental monitoring systems.
Use Case Examples
- Get current weather in Berlin by city name in Metric units.
- Fetch weather data for a specific city ID in Imperial units.
- Retrieve weather using latitude and longitude coordinates in Scientific units.
Properties
| Name | Meaning |
|---|---|
| Format | The unit system for the weather data (Imperial, Metric, Scientific). |
| Location Selection | Method to specify the location for weather data retrieval (City Name, City ID, Coordinates, Zip Code). |
| City | The city name to get the weather for (required if Location Selection is City Name). |
| City ID | The city ID to get the weather 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 | Two-letter language code to localize the weather data output (optional). |
Output
JSON
weather- Current weather data object returned from the API, including temperature, conditions, wind, etc.
Dependencies
- Requires an API key credential for OpenWeatherMap API to authenticate requests.
Troubleshooting
- Common issues include missing or invalid API credentials, resulting in authentication errors.
- Incorrect or unsupported location parameters may cause errors or empty responses.
- Network or API service issues can cause request failures; check connectivity and API status.
- Error messages from the API are wrapped and returned as node errors; ensure parameters are valid and API limits are not exceeded.
Links
- OpenWeatherMap Current Weather API - Official documentation for the current weather data API used by this node.
- OpenWeatherMap City List - Downloadable list of city IDs for use with the City ID location selection.