> ## Documentation Index
> Fetch the complete documentation index at: https://www.anything.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Weather

> Access real-time weather data and forecasts

Get detailed weather information and forecasts for any location worldwide using OpenWeatherMap's API.

## Overview

<CardGroup cols={2}>
  <Card title="Create Account" icon="user">
    Sign up for an OpenWeatherMap account
  </Card>

  <Card title="Get API Key" icon="key">
    Generate your API key
  </Card>

  <Card title="Copy into Anything" icon="plug">
    Add your API key to Anything's secrets
  </Card>
</CardGroup>

## Account Creation

<Steps>
  <Step title="Visit OpenWeatherMap Website">
    Go to [openweathermap.org](https://openweathermap.org/) and click "Sign Up" in the top right corner

    <img src="https://mintcdn.com/create/gRjeYBLWcrADikTp/images/weather/homepage.png?fit=max&auto=format&n=gRjeYBLWcrADikTp&q=85&s=e0cc783703ef19c6b832e91cb2a88e2c" style={{ borderRadius: '0.5rem' }} width="2790" height="1338" data-path="images/weather/homepage.png" />
  </Step>

  <Step title="Choose Signup Method">
    * Sign up with email/password
    * Or continue with Google authentication
  </Step>
</Steps>

## Generate API Key

<Steps>
  <Step title="Access API Keys">
    1. Go to your OpenWeatherMap dashboard
    2. Navigate to the "API keys" tab

    <Warning>
      New API keys may take a few hours to activate
    </Warning>
  </Step>

  <Step title="Create New Key">
    1. Name your key (e.g., "Anything Integration")
    2. Click "Generate"
    3. Copy your API key
  </Step>
</Steps>

## Add to Anything project

<Steps>
  <Step title="Add the integration">
    1. In your Anything project, type `/` in the chat
    2. Select "Weather" from the menu
  </Step>

  <Step title="Add your API key">
    1. Paste your API key into the "OPENWEATHERMAP\_API\_KEY" field

    <Tip>
      Need a new key? Generate one in your OpenWeatherMap dashboard.
    </Tip>
  </Step>

  <Step title="Start using">
    You can now use prompts with the integration to access weather data.

    Example prompts:

    * `Show the weather forecast using /Weather`
    * `Build a travel planner with /Weather`
    * `Create a sports event scheduler using /Weather`

    <Warning>
      The API limits how often your app can fetch data. If your app loads the same data often, ask the agent to save it locally so it doesn't re-fetch every time.
    </Warning>

    Example prompt for optimization:

    ```
    When using /Weather, save the forecast data so my app doesn't have to fetch it again
    ```
  </Step>
</Steps>

<Tip>
  Your Weather integration is ready! Use `/Weather` in chat to access weather data.
</Tip>
