This is an n8n community node that provides access to the Pirate Weather API, a free and open-source weather API that serves as an alternative to the Dark Sky API.
- Weather Forecast: Get current conditions and forecasts up to 7 days
- Time Machine: Access historical weather data
- Multiple Units: Support for US, UK, CA, and SI units
- 50+ Languages: Weather summaries in multiple languages
- Flexible Data: Choose which data blocks to include or exclude
- Extended Forecasts: Get hourly forecasts up to 168 hours
- Go to Settings > Community Nodes
- Search for
n8n-nodes-pirate-weather
- Click Install
- Navigate to your n8n installation directory
- Run:
npm install n8n-nodes-pirate-weather
- Restart n8n
This node requires a Pirate Weather API key:
- Sign up for a free API key at pirate-weather.apiable.io
- In n8n, create new Pirate Weather API credentials
- Enter your API key
Get current weather conditions and forecasts:
- Latitude & Longitude: Location coordinates
- Units: Choose between auto, CA, UK, US, or SI
- Exclude: Remove unwanted data blocks (currently, minutely, hourly, daily, alerts)
- Extend: Get hourly forecasts for 168 hours instead of 48
- Language: Get summaries in your preferred language
Query historical weather data:
- Time: Specify the date/time for historical data
- Supports UNIX timestamps and ISO 8601 formats
- Limited to available historical data
1. Pirate Weather node
2. Set coordinates (e.g., 37.8267, -122.4233)
3. Execute to get current weather
1. Schedule Trigger (daily at 7 AM)
2. Pirate Weather node (get forecast)
3. IF node (check for rain)
4. Send notification if rain expected
To test this node locally during development:
-
Clone and install dependencies
git clone https://github.com/ChadMoran/n8n-nodes-pirate-weather.git cd n8n-nodes-pirate-weather npm install
-
Link the node locally
npm run link:local
Then in your n8n installation directory:
npm link n8n-nodes-pirate-weather
-
Start development mode
npm run dev
This will watch for code changes and run n8n.
-
Remove the local link when done
npm run link:remove
npm run build
- Build the node for productionnpm run dev
- Run TypeScript compiler and n8n in watch modenpm run lint
- Check code stylenpm run lintfix
- Fix code style issuesnpm run link:local
- Create local npm link for testingnpm run link:remove
- Remove local npm link
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Commit changes:
git commit -m 'Add amazing feature'
- Push to branch:
git push origin feature/amazing-feature
- Open a Pull Request
MIT