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.0.tar.gz
(101.6 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.0.tar.gz.
File metadata
- Download URL: weather_tui-1.3.0.tar.gz
- Upload date:
- Size: 101.6 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 |
47f7d5175a7dbe0e345865df82a7c85b10cee91619ceb1ffa8a81c62b87e5616
|
|
| MD5 |
1cc5422ed6a7c6f90b832aeff396eb1e
|
|
| BLAKE2b-256 |
424781f2c94f73d2ba8806ff01a764444ba993f1445a424b9a6e27cd219e074d
|
File details
Details for the file weather_tui-1.3.0-py3-none-any.whl.
File metadata
- Download URL: weather_tui-1.3.0-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 |
d6604d500de04cf2dc65049204fc9a65f056fb406425d2392664397e8b0cf72d
|
|
| MD5 |
ae7550e97b127b4626e8c11a70f76e1a
|
|
| BLAKE2b-256 |
0215ac4897c9ba551202533b7adf9572d67458e89daa85309f3d5a8b3508ce6a
|