Giter Site home page Giter Site logo

kriishukla / temperature-alert-and-weather-forecast-agent Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 71 KB

Welcome to the Weather Predictor repository! This Python-based project provides a simple yet effective way to predict and monitor weather conditions for a given location. Whether you're a weather enthusiast or need weather data for specific applications, this project can be a valuable resource.

Home Page: https://techfest.org/hack-aI

Python 100.00%

temperature-alert-and-weather-forecast-agent's Introduction

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:

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 https://github.com/kriishukla/HackAI_Hack-230580/edit/master/README.md 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.

Feel free to reach out with any feedback or suggestions.

temperature-alert-and-weather-forecast-agent's People

Contributors

kriishukla avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.