JSPM

@thiagosqr/weathernow-activepieces

2.0.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q40556F
  • License MIT

Activepieces piece for getting current weather information using the Weatherstack API

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-activepieces

    Usage

    Prerequisites

    1. Get a free API key from Weatherstack
    2. 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 successful
    • data: Formatted weather information string
    • rawData: Complete raw weather data from the API

    Example Usage

    1. Add the WeatherNow piece to your workflow
    2. Configure the "Get Current Weather" action
    3. Enter your Weatherstack API key
    4. Specify the location (e.g., "San Francisco, CA")
    5. Choose your preferred output format
    6. 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 time

    Simple Format:

    San Francisco, United States of America: 18°C, Partly cloudy

    API Key Setup

    1. Visit Weatherstack
    2. Sign up for a free account
    3. Get your API key from the dashboard
    4. 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 build

    Development Mode

    npm run dev

    License

    MIT License - see LICENSE file for details.

    Contributing

    Contributions are welcome! Please feel free to submit a Pull Request.

    Support

    For issues and questions:

    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