Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Denver Weather Data Fetcher

Weather Data Fetcher is a simple Python script that fetches and displays the current weather data for Denver, Colorado using the OpenWeatherMap API.

Description

This application fetches current weather data for Denver, Colorado. It displays information such as the weather description, temperature, humidity, and atmospheric pressure.

Libraries Used

  • os: For accessing environment variables.
  • requests: To make HTTP requests to the OpenWeatherMap API.
  • dotenv: To load environment variables from an .env file.

Features

  • Fetches real-time weather data using OpenWeatherMap API.
  • Displays weather description, temperature, humidity, and pressure.
  • Uses environment variables for sensitive data (like API key) ensuring security.

Installation & Setup

  1. Install the required libraries:
    pip install requests python-dotenv
    
  2. Create a .env file in the root directory and add your OpenWeatherMap API key:
    OPENWEATHER_API_KEY=your_api_key_here

Usage

After setup, simply run the script using: python denverweather.py