{"id":16081825,"url":"https://github.com/jai0401/hackai_hack-230679","last_synced_at":"2026-01-03T18:31:09.462Z","repository":{"id":199537481,"uuid":"703136856","full_name":"Jai0401/HackAI_Hack-230679","owner":"Jai0401","description":"The Temperature Alert Agent is a Python script that utilizes the uAgents library to monitor real-time temperatures from the OpenWeatherMap API. Users can set a preferred temperature range for a specific location, and the script will alert them if the temperature goes beyond this range.","archived":false,"fork":false,"pushed_at":"2024-05-23T14:54:03.000Z","size":45810,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T21:43:34.768Z","etag":null,"topics":["fetch-ai","fetchai","python","temperature-monitoring","uagents","weather-api"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jai0401.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-10-10T17:01:03.000Z","updated_at":"2024-05-23T14:54:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"6df305d3-5aec-49e0-8165-703877e0b0b3","html_url":"https://github.com/Jai0401/HackAI_Hack-230679","commit_stats":null,"previous_names":["jai0401/hackai_hack-230679"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jai0401%2FHackAI_Hack-230679","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jai0401%2FHackAI_Hack-230679/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jai0401%2FHackAI_Hack-230679/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jai0401%2FHackAI_Hack-230679/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jai0401","download_url":"https://codeload.github.com/Jai0401/HackAI_Hack-230679/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244284554,"owners_count":20428400,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fetch-ai","fetchai","python","temperature-monitoring","uagents","weather-api"],"created_at":"2024-10-09T11:10:33.187Z","updated_at":"2026-01-03T18:31:09.432Z","avatar_url":"https://github.com/Jai0401.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Temperature Alert Agent\n\n## Description\nThe Temperature Alert Agent is a Python script that uses the uAgents library to fetch real-time temperatures from a free weather API for a specified location. It allows users to set their preferred temperature range (minimum and maximum temperature) and sends an alert/notification when the current temperature in the chosen location goes below the minimum or above the maximum threshold.\n\n## Instructions to Run\nTo run the Temperature Alert Agent, follow these steps:\n\n1. Clone the repository to your local machine:\n\n   ```bash\n   git clone https://github.com/yourusername/temperature-alert-agent.git\n\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd HackAI_Hack-23067\n   cd src\n   cd uagents\n   ```\n\n3. Install the required dependencies using Poetry:\n\n   ```bash\n   poetry install\n   ```\n\n4. Set your OpenWeatherMap API key and preferred location in the `hackathon.py` script:\n\n   ```python\n   api_key = \"Your_OpenWeatherMap_API_Key\"\n   location = \"Your_Location\"  # e.g., \"London, UK\"\n   min_temperature = 20  # Minimum preferred temperature in °C\n   max_temperature = 30  # Maximum preferred temperature in °C\n   ```\n\n5. Run the Temperature Alert Agent:\n\n   ```bash\n   python hackathon.py\n   ```\n\nThe agent will start fetching the current temperature for the specified location and send alerts if the temperature goes outside the preferred range.\n\n## Special Considerations\n- Make sure you have a valid OpenWeatherMap API key. You can obtain one by signing up on the [OpenWeatherMap website](https://openweathermap.org/).\n- The agent fetches temperature data every 30 minutes by default. You can adjust the update interval by changing the `period` parameter in the `check_temperature` method in the `hackathon.py` script.\n- Ensure that your environment allows outbound internet connections for API requests.\n\nFeel free to reach out for any questions or assistance with running the Temperature Alert Agent.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjai0401%2Fhackai_hack-230679","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjai0401%2Fhackai_hack-230679","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjai0401%2Fhackai_hack-230679/lists"}