Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aamir-alam01/weather-report

This project takes location and email from user and send weather report to their email.
https://github.com/aamir-alam01/weather-report

groq-ai groq-api php php-mailer-smtp weather-forecast

Last synced: about 8 hours ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](screenshots/ss1.png)
![ Screenshot](screenshots/ss2.png)

## 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:

```bash
git clone https://github.com/Aamir-Alam01/weather-report
```
### 2. Create and Configure Your Environment
```bash
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](LICENSE) file for details.