This project is a weather reporting application that provides current weather conditions based on user-provided locations. It utilizes the GROQ API for data retrieval and sends weather reports via email.
- Fetches current weather data including temperature, humidity, wind speed, and cloud coverage.
- Sends weather report emails in a formatted HTML layout.
- Supports configuration through environment variables for sensitive information.
- PHP
- Composer (for dependency management)
- PHPMailer (for sending emails)
- GROQ API (for weather data)
- Dotenv (for loading environment variables)
-
Clone the repository:
git clone https://github.com/Aamir-Alam01/weather-report
cp .env.example .env
- Edit the .env file to set your API keys and other details.
To send emails, this project uses PHPMailer. Ensure that:
You have enabled "Less secure app access" in your Google account settings if using Gmail. You are using an App Password if you have Two-Factor Authentication (2FA) enabled.
- PHPMailer for email handling.
- GROQ API for providing weather data.
- vlucas/phpdotenv for managing environment variables.
This project is licensed under the MIT License - see the LICENSE file for details.