Actions2
- Forecast Actions
- Time Machine Actions
Overview
The node fetches weather forecast data from the Pirate Weather API for a specified geographic location. It is useful for applications that require current and future weather conditions, such as travel planning, event scheduling, or environmental monitoring. For example, you can retrieve hourly or daily forecasts for a city by providing its latitude and longitude, customize the response by excluding certain data blocks, or get weather summaries in different languages.
Properties
| Name | Meaning |
|---|---|
| Latitude | The latitude coordinate of the location to get the forecast for. |
| Longitude | The longitude coordinate of the location to get the forecast for. |
| Additional Fields | Optional settings to customize the forecast request: |
| - Exclude | Data blocks to exclude from the response. Options: Alerts, Currently, Daily, Hourly, Minutely. |
| - Extend | Extend the hourly forecast duration. Options: None, Hourly (168 Hours). |
| - Icon Style | Style of weather condition icons. Options: Default, Pirate (Expanded Set). |
| - Language | Language code for text summaries. Multiple language options including English, Spanish, French, etc. |
| - Units | Units system for weather data. Options: Auto (based on location), CA (SI, Km/h), SI, UK (Mph), US (Imperial). |
| - Version | API version to use. Options: Version 1, Version 2 (includes additional fields like smoke and fireIndex). |
Output
The node outputs JSON data containing detailed weather forecast information for the specified location. The structure includes various weather data blocks such as current conditions, minutely, hourly, daily forecasts, and alerts unless excluded via properties. The data format follows the Pirate Weather API response schema, which typically includes temperature, humidity, wind speed, precipitation, and other meteorological parameters.
If icon style is set, weather condition icons are included accordingly. No binary data output is produced by this node.
Dependencies
- Requires an API key credential for the Pirate Weather API.
- Network access to
https://api.pirateweather.netendpoint. - Proper configuration of the API key credential within n8n.
Troubleshooting
- Invalid API Key or Authentication Errors: Ensure the API key credential is correctly configured and active.
- Invalid Coordinates: Latitude must be between -90 and 90; longitude between -180 and 180.
- Missing Required Parameters: Latitude and longitude are mandatory; missing these will cause errors.
- API Rate Limits: Excessive requests may lead to rate limiting; consider adding delays or upgrading the API plan.
- Unsupported Language or Units: Using unsupported values for language or units may result in default fallbacks or errors.
- Network Issues: Verify network connectivity to the Pirate Weather API endpoints.