Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@thiagosqr/weathernow-activepieces) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
WeatherNow Activepieces Piece
A powerful Activepieces piece that provides current weather information for any location using the Weatherstack API.
Features
- 🌤️ Get current weather data for any location worldwide
- 📊 Two output formats: detailed and simple
- 🔧 Easy integration with Activepieces workflows
- 🌍 Supports locations by city name, coordinates, or postal code
- ⚡ Fast and reliable weather data
Installation
npm install @thiagosqr/weathernow-activepiecesUsage
Prerequisites
- Get a free API key from Weatherstack
- Add the WeatherNow piece to your Activepieces instance
Actions
Get Current Weather
Retrieves current weather information for a specified location.
Input Properties:
location(required): The location to get weather for (e.g., "New York", "London", "Tokyo", "Paris, France")format(optional): Output format - "detailed" for full weather info, "simple" for basic info only (default: "detailed")apiKey(required): Your Weatherstack API key
Output:
success: Boolean indicating if the request was successfuldata: Formatted weather information stringrawData: Complete raw weather data from the API
Example Usage
- Add the WeatherNow piece to your workflow
- Configure the "Get Current Weather" action
- Enter your Weatherstack API key
- Specify the location (e.g., "San Francisco, CA")
- Choose your preferred output format
- Run the workflow
Sample Output
Detailed Format:
🌤️ Weather for San Francisco, United States of America
📍 Location: San Francisco, California, United States of America
🕐 Local Time: 2024-01-15 14:30
🌡️ Temperature: 18°C (feels like 16°C)
☁️ Weather: Partly cloudy
💨 Wind: 15 km/h NW
💧 Humidity: 65%
🌧️ Precipitation: 0 mm
☁️ Cloud Cover: 25%
👁️ Visibility: 10 km
🌡️ Pressure: 1013 mb
☀️ UV Index: 4
☀️ Day timeSimple Format:
San Francisco, United States of America: 18°C, Partly cloudyAPI Key Setup
- Visit Weatherstack
- Sign up for a free account
- Get your API key from the dashboard
- Use the API key in the action configuration
Error Handling
The piece includes comprehensive error handling for:
- Invalid API keys
- Network connectivity issues
- Invalid location names
- API rate limiting
- Service unavailability
Development
Building
npm run buildDevelopment Mode
npm run devLicense
MIT License - see LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Support
For issues and questions:
- GitHub Issues: Create an issue
- Email: thiago.sqr@gmail.com
Changelog
2.0.0
- Version upgrade to 2.0.0
- Enhanced error handling and validation
- Improved documentation and examples
- Better TypeScript type safety
1.0.0
- Initial release
- Get current weather action
- Support for detailed and simple output formats
- Weatherstack API integration