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.
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
Using uvx (recommended, no install needed)
# Run directly without installing
uvx --with weather-tui python -m weather_tui
From PyPI
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
# If installed via pip
python -m weather_tui
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
- Textual - TUI framework
- textual-plotext - Terminal plotting
- Open-Meteo - Weather data API (no key required)
- OpenWeatherMap Geocoding - Location search
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-1.3.1.tar.gz
(101.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file weather_tui-1.3.1.tar.gz.
File metadata
- Download URL: weather_tui-1.3.1.tar.gz
- Upload date:
- Size: 101.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d960cffb066aeda18c3fba64fb6bef656a4636b53af6ebb304d216f71204c58
|
|
| MD5 |
5c69f184c7bb9f42542200abec738508
|
|
| BLAKE2b-256 |
cee31383b6ee10e6f0523b27d3ac2bea36f58218591aeee60a009aeb371222bc
|
File details
Details for the file weather_tui-1.3.1-py3-none-any.whl.
File metadata
- Download URL: weather_tui-1.3.1-py3-none-any.whl
- Upload date:
- Size: 18.7 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79fe07a888e33ddfcad9f82096ebd0d4a12488ea8dcd31ce099373bac1d7852b
|
|
| MD5 |
4b0efaaf667d66a8ceb65511715ea883
|
|
| BLAKE2b-256 |
40c06627bc025a240c2febff1419170965acbe1167aded55a8dc3bcab1528b37
|