Skip to content

This project involves the creation of two agents, a Temperature Alert Agent, and a Message Printer Agent. The Temperature Alert Agent monitors temperature conditions and sends alerts to the Message Printer Agent when the temperature exceeds defined thresholds. Additionally, the project includes a Weather Forecast feature for a specified location.

Notifications You must be signed in to change notification settings

Erwinwire/Weather_predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Temperature Alert and Weather Forecast Agent

This project involves the creation of two agents, a Temperature Alert Agent, and a Message Printer Agent. The Temperature Alert Agent monitors temperature conditions and sends alerts to the Message Printer Agent when the temperature exceeds defined thresholds. Additionally, the project includes a Weather Forecast feature for a specified location.

Table of Contents

Introduction

This project consists of two main components:

  1. Temperature Alert Agent: Monitors the temperature at a specified location using OpenWeatherMap API. It sends alerts to the Message Printer Agent when the temperature exceeds predefined minimum or maximum thresholds.

  2. Message Printer Agent: Receives and prints messages/alerts sent by the Temperature Alert Agent.

  3. Weather Predictor: Predict and tells about the weather through intensive Deep learning Algorithms

Agents

Temperature Alert Agent

Message Printer Agent

Usage

To use this project, you only need to follow one simple step:

  1. Run the main script main.py:
python main.py


### Prerequisites

- Python (>=3.6)
- uagents package
- requests package

You can install the required Python packages using pip:

```bash
pip install uagents 
pip install requests
pip install numpy
pip install pandas
pip install matplotlib
pip install tensorflow


Installation
Clone the repository to your local machine:

git clone <repository_url>
cd temperature-alert-forecast-agent
Configure the agents and set up your environment as mentioned in the Configuration section.

Run the agents using Python:

python main.py
Weather Forecast
The project also provides the option to retrieve weather forecasts for a specified location. To use this feature:

Run the project as mentioned in the Usage section.

When prompted, enter the location for which you want to get the weather forecast.

The weather forecast will be fetched from OpenWeatherMap API and saved to a file named prediction.txt.

Configuration
Make sure to configure the agents and API keys:

Temperature Alert Agent: Configure the agent with your desired settings such as location, minimum and maximum temperature thresholds, API key, and endpoint.

Message Printer Agent: No configuration is needed for the Message Printer Agent.

OpenWeatherMap API Key: Obtain an API key from OpenWeatherMap and set it in the api_key variable.



Contact
If you have any questions or need assistance with this project, please contact:
Krishna:kriishukla@gmail.com
Anish:Shuklaneesh@gmaail.com

Feel free to reach out with any feedback or suggestions.

About

This project involves the creation of two agents, a Temperature Alert Agent, and a Message Printer Agent. The Temperature Alert Agent monitors temperature conditions and sends alerts to the Message Printer Agent when the temperature exceeds defined thresholds. Additionally, the project includes a Weather Forecast feature for a specified location.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages