Skip to main content

A TUI application for displaying weather forecasts with hour-by-hour graphs

Project description

Weather TUI

A terminal user interface for displaying weather forecasts with hour-by-hour graphs and multi-day forecasts.

Python 3.12+ License: MIT CI

Features

  • Current weather conditions with temperature
  • Hourly temperature and precipitation graphs
  • 7-day weather forecast with clickable day selection
  • Location search powered by OpenWeatherMap Geocoding
  • Keyboard-friendly navigation

Installation

From PyPI (recommended)

pip install weather-tui

From source

# Clone the repository
git clone https://github.com/benedikt-mayer/weather-tui.git
cd weather-tui

# Install with uv (recommended)
uv sync

# Or with pip
pip install -e .

Usage

# Run the TUI (defaults to Munich)
weather-tui

# Or with a specific location
weather-tui "Berlin"

# Or run as module
python -m weather_tui "Paris"

Environment Variables

Variable Required Description
OPENWEATHERMAP_API_KEY Yes API key for geocoding. Get a free key at OpenWeatherMap

Create a .env file in your working directory:

OPENWEATHERMAP_API_KEY=your_api_key_here

Keyboard Shortcuts

Key Action
s Search for a new location
r Refresh weather data
q Quit
Escape Cancel search
Click Select a day to view its hourly forecast

Development

# Install dev dependencies
uv sync --extra dev

# Run tests
uv run pytest

# Run linting
uv run ruff check .
uv run ruff format --check .

# Fix linting issues
uv run ruff check --fix .
uv run ruff format .

Tech Stack

License

MIT License - see LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weather_tui-0.1.0.tar.gz (99.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

weather_tui-0.1.0-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file weather_tui-0.1.0.tar.gz.

File metadata

  • Download URL: weather_tui-0.1.0.tar.gz
  • Upload date:
  • Size: 99.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for weather_tui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 646e4926e05d7860d13e6218f0b55bd75b3d74fe89abbcaf431e54359d9ff4fe
MD5 69db09324dcc8200a61a824c058aa5c5
BLAKE2b-256 e35f85e8c4e5476706d30b8443e42fb1f63628ca5bdeea8d0d81d88c42930c5c

See more details on using hashes here.

File details

Details for the file weather_tui-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: weather_tui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 16.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for weather_tui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 682881ac09fb12b041bfa4e3ac43b193aaef1d6c18ba419d1c8ce65ab97d6405
MD5 9f4164c144ba21885f74a18d6d557da9
BLAKE2b-256 6f064983ecf610a5124033b06e87f7d8293f25ea563f525c0405336f83e71d01

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page