Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 2 days ago
JSON representation
This project takes location and email from user and send weather report to their email.
- Host: GitHub
- URL: https://github.com/aamir-alam01/weather-report
- Owner: Aamir-Alam01
- License: mit
- Created: 2024-10-31T17:19:50.000Z (7 days ago)
- Default Branch: main
- Last Pushed: 2024-11-02T06:44:51.000Z (5 days ago)
- Last Synced: 2024-11-02T07:24:38.910Z (5 days ago)
- Topics: groq-ai, groq-api, php, php-mailer-smtp, weather-forecast
- Language: PHP
- Homepage:
- Size: 220 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.