-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.template
More file actions
22 lines (17 loc) · 1.21 KB
/
.env.template
File metadata and controls
22 lines (17 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
OPENWEATHER_API_KEY= # Your OpenWeather API key here (no spaces)
# Step 1: Visit the OpenWeatherMap website
# Go to https://openweathermap.org/ and click "Sign Up" to create a new account.
# Provide a username, email address, and password, then agree to the Terms of Service and complete the CAPTCHA.
# Step 2: Verify your email
# Check your inbox for a confirmation email from OpenWeatherMap. Click the verification link to activate your account.
# If you don’t receive it within an hour, resend the confirmation from your account settings on the website.
# Step 3: Find your API key
# After verification, log in to your OpenWeatherMap account.
# Click on your username in the top-right corner and select "My API Keys" from the dropdown menu.
# Your API key (APPID) will be listed there. Copy it to your clipboard.
# Step 4: (Optional) Generate a new key
# If you need a new key or the default one isn’t visible, click "Create key" and assign it to a project (e.g., your Astro site).
# Step 5: Secure your API key
# Store the key in a .env file for security. Create a file named .env in your project root and add:
# OPENWEATHER_API_KEY=your_copied_api_key
# Add .env to .gitignore to keep it out of version control.