Skip to content
View maobuzheng's full-sized avatar

Block or report maobuzheng

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
maobuzheng/README.md

Weather Monitor Tool

This is a simple Python command-line tool that fetches and displays the current weather for a user-specified location using the OpenWeatherMap API.

Features

  • Get current temperature (in Celsius and Fahrenheit)
  • Get current weather conditions (e.g., Clear, Clouds, Rain)
  • Get current humidity

Setup

  1. Clone the repository (or download the files).
  2. Install dependencies: Make sure you have Python 3 installed. Navigate to the project directory and install the required requests library:
    pip install -r requirements.txt
  3. Get an OpenWeatherMap API Key:
  4. Configure the API Key:
    • Open the weather_monitor.py file.
    • Find the line API_KEY = "YOUR_API_KEY_HERE".
    • Replace "YOUR_API_KEY_HERE" with the actual API key you obtained from OpenWeatherMap.

Usage

Run the script from your terminal:

python weather_monitor.py

The script will prompt you to enter a city name or zip code.

Example

Enter your city name or zip code: London
Weather in London:
  Temperature: 15.0°C / 59.0°F
  Conditions: scattered clouds
  Humidity: 72%

Note

  • Weather data is provided by OpenWeatherMap.
  • Temperature is displayed in both Celsius and Fahrenheit.

Popular repositories Loading

  1. maobuzheng maobuzheng Public

    Config files for my GitHub profile.

    Python

  2. dify-schedule dify-schedule Public

    Forked from leochen-g/dify-schedule

    Dify Schedule. 免费的Dify工作流定时助手,支持多渠道发送通知. A free automated scheduling solution for Dify, powered by GitHub Actions.

    JavaScript