Aamir-Alam01 / weather-report

This project takes location and email from user and send weather report to their email.

Repository from Github https://github.comAamir-Alam01/weather-reportRepository from Github https://github.comAamir-Alam01/weather-report

Weather Report Project

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.

Screenshots

 Screenshot  Screenshot

Features

  • 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.

Technologies Used

  • PHP
  • Composer (for dependency management)
  • PHPMailer (for sending emails)
  • GROQ API (for weather data)
  • Dotenv (for loading environment variables)

Installation

  1. Clone the repository:

    git clone https://github.com/Aamir-Alam01/weather-report

2. Create and Configure Your Environment

cp .env.example .env
  • Edit the .env file to set your API keys and other details.

3. Email Configuration

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.

Acknowledgments

  • PHPMailer for email handling.
  • GROQ API for providing weather data.
  • vlucas/phpdotenv for managing environment variables.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This project takes location and email from user and send weather report to their email.

License:MIT License


Languages

Language:PHP 86.8%Language:CSS 13.2%