a-shygun/Terrascope

Braille-rendered terminal world map with live weather, aircraft, earthquakes, and day/night layers.

Python

4

13 commits

updated Oct 7, 2026

See the code

See what people are saying

SourceMessageScoreDate

[OC] Terrascope: an interactive world map for your terminal (r/unixporn)

Hi! I built **[Terrascope](https://github.com/a-shygun/Terrascope)**, an open-source terminal map with live weather, aircraft, radar, earthquakes, and day/night views. It uses Unicode Braille characters to render the map right in your terminal. I’d love to hear what you think, especially about the…

51

Oct 7, 2026

README

Terrascope

CI PyPI Python License

Terrascope animated UI demo

terrascope is an interactive world map for the terminal. It renders countries, place names, live aircraft, city weather, a radar overlay, earthquakes, and day/night bands with curses, Unicode Braille cells, and terminal colors.

The app is intentionally lightweight at install time. Large map data is downloaded into a user cache the first time it is needed, then reused on later runs.

Country names and abbreviations, plus airport names and locations, are bundled from Natural Earth so they are available offline without a first-run download.

Status

This project is early-stage software. The core map, tabs, keyboard/mouse navigation, live layers, and cache handling are implemented, but APIs and visual details may still change.

Requirements

  • Python 3.10 or newer on macOS or Linux/Unix
  • A UTF-8 terminal
  • A terminal with 256-color or true-color support for the best appearance
  • Network access for first-run map downloads and live data layers (optional)

Python dependencies are declared in pyproject.toml:

  • numpy
  • Pillow
  • PyYAML

Installation

For normal use:

pipx install terrascope
terrascope

Package managers

Terrascope also includes recipes for Nix and Homebrew:

# Nix, from a Terrascope checkout
nix run ./packaging/nix

# Homebrew
brew tap a-shygun/terrascope https://github.com/a-shygun/Terrascope.git
brew install a-shygun/terrascope/terrascope

PyPI publishing is automated for version tags. The Nix and Arch recipes, Homebrew formula, and distribution-check helper live under packaging/; update their version references when preparing a release.

For local development:

git clone https://github.com/a-shygun/terrascope.git
cd terrascope
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
terrascope

You can also run it from a checkout without installing the console script:

PYTHONPATH=src python3 -m terrascope

First Run and Cache

On first launch, terrascope downloads Natural Earth GeoJSON files into:

$XDG_CACHE_HOME/terrascope

If XDG_CACHE_HOME is not set, the default is:

~/.cache/terrascope

Useful cache commands:

terrascope --show-paths
terrascope --clear-cache
terrascope --offline

Common Options

terrascope --help                         # all options and defaults
terrascope --tab weather --offline        # open a tab using cached data only
terrascope --panel-orientation vertical   # put the panel in a left sidebar
terrascope --no-radar --no-airports       # disable optional overlays
terrascope --disable-layer night          # start with a layer disabled
terrascope --config ~/terrascope.yaml     # load additional settings
terrascope --set 'map.zoom.max=128'       # override one setting for this run
terrascope --show-paths                   # show cache and config locations
terrascope --clear-cache                  # remove cached downloads and API data
terrascope --dump-config                  # print effective settings
terrascope --list-keys                    # show active keyboard shortcuts

CLI flags override configuration for the current run. --set overrides flags; see terrascope --help for the full precedence order and every available option.

During first-run downloads the terminal UI shows a loading message before the map appears. Errors and background warnings are written to the log file shown by terrascope --show-paths, so stray output does not corrupt the curses screen.

Controls

InputAction
1-9Switch tabs
WASD or arrow keysPan
+ / -Zoom in / out
0Reset view
Mouse dragPan
Mouse wheelZoom
Mouse clickSelect a marker or map label
< / >Step through overlapping selections
/Search
OOpen filter prompt
HShow or hide the panel
?Open the welcome/help modal
EscClose prompts or clear selection/filter state
QQuit

Click [+] beside the clock to expand the top controls, then click the panel placement label (BOTTOM or LEFT) to switch the panel between the horizontal bottom row and vertical left sidebar. The default is vertical; --panel-orientation vertical or --panel-orientation horizontal selects the starting layout for one run. --set ui.panel_orientation=vertical also works. In the vertical weather panel, scroll over the forecast to move through each day's full detail, including its temperature graph, conditions, precipitation, wind, and sunrise/sunset.

Layer-specific keys:

KeyLayer
PFlights
KAirports on the planes tab
CCity weather labels
EEarthquakes
NDay/night layer
LDay/night tint/fill mode
[ / ]Time slider where available

Run this for the effective key list:

terrascope --list-keys

Tabs And Layers

  • MAP: base world map with country, province/state, and city detail as zoom allows.
  • TIME: day/night bands, sun information, moon information, and timezone selection.
  • WEATHER: city weather, forecast panel, radar overlay, and USGS earthquakes.
  • PLANES: OpenSky aircraft positions, trails, categories, and Natural Earth airport markers.

Screenshots

Map

Global map view

Global map view.

Europe map close-up without province boundaries

Europe close-up without province boundaries.

Europe map close-up with province boundaries

Europe close-up with province boundaries.

Time

Global time view with day and night fill

Global view with day and night fill.

Global time view with day and night tint

Global view with day and night tint.

Global time view with fill and no panel

Global view with fill and the panel hidden.

Time tab with horizontal panel layout

Time tab with the horizontal panel layout.

Weather

Global weather view with vertical panel

Global weather view with the vertical panel.

Global weather view without panel

Global weather view with the panel hidden.

Europe weather view with radar close-up

Europe close-up with the radar overlay.

Weather tab with horizontal panel layout

Weather tab with the horizontal panel layout.

Planes

Global planes view

Global aircraft view.

Planes view close-up over the United Kingdom

Aircraft close-up over the United Kingdom.

Configuration

Defaults live in:

~/.config/terrascope/default.yaml

On first launch, Terrascope copies the bundled defaults to this location and loads that user-owned copy. Existing files are kept across upgrades. If XDG_CONFIG_HOME is set, Terrascope uses $XDG_CONFIG_HOME/terrascope/default.yaml.

You can override settings without editing the package:

terrascope --config ~/terrascope.yaml
terrascope --set 'map.zoom.max=128'
terrascope --set 'map.land_color="#101018"'

Inspect the final merged config:

terrascope --dump-config

Important environment variables:

VariableMeaning
terrascope_OFFLINE=1Disable live network requests
terrascope_CONFIG=/path/file.yamlLoad a config file before CLI flags
terrascope_RAINVIEWER_URL=https://...Override the RainViewer catalog API
XDG_CACHE_HOME=/pathChange the default cache root

Project Layout

src/terrascope/
  __main__.py              python -m terrascope entry point
  assets/                  default configuration and bundled reference data
  core/
    app/                   app lifecycle, input, mouse, and rendering mixins
    ui/                    colors, layout, dialogs, and map drawing
    cli.py config.py       command-line and settings validation
    mapdata.py world.py    geographic data and map state
  layers/
    basemap/               country outlines, labels, and map detail
    daynight/              day/night rendering and astronomy calculations
    flights/               OpenSky API, cache, formatting, and aircraft layer
    weather/               weather, radar, forecast, and earthquake modules

The public console entry point is:

terrascope = "terrascope.__main__:run"

Data Sources

  • Natural Earth: country and province/state outlines, populated places
  • OpenSky Network: aircraft positions
  • Open-Meteo: city weather and forecasts
  • RainViewer Weather Maps API: past radar tiles (personal/educational use; attribution required)
  • USGS GeoJSON feeds: earthquakes
  • NOAA/Meeus-style calculations in code: day/night and moon information

Bundled reference data is from Natural Earth 50m Cultural Vectors, which is public domain.

Each source has its own availability and rate-limit behavior. Use --offline when you want to run only from cached data.

Terrascope has no telemetry or analytics. When live layers are enabled, network requests go to the configured data providers. Weather requests include the coordinates of displayed cities; providers also receive your IP address and the Terrascope User-Agent. --offline disables live requests.

Development Checks

Basic syntax check:

python3 -m compileall -q src/terrascope

If dependencies are installed, a quick import smoke test is:

PYTHONPATH=src python3 -c "from terrascope.core.registry import build_layers; print([l.name for l in build_layers()])"

Releasing

Versioned tags build and publish the wheel and source distribution to PyPI. Update the separate Homebrew tap after PyPI confirms the release. See docs/RELEASING.md for the release and Git steps.

License

MIT. See LICENSE.

aircraft-tracking
braille
cli
curses
earthquakes
maps
python
terminal
tui
weather

a-shygun/Terrascope

Braille-rendered terminal world map with live weather, aircraft, earthquakes, and day/night layers.

Python

4

13 commits

updated Oct 7, 2026

See the code

See what people are saying

SourceMessageScoreDate

[OC] Terrascope: an interactive world map for your terminal (r/unixporn)

Hi! I built **[Terrascope](https://github.com/a-shygun/Terrascope)**, an open-source terminal map with live weather, aircraft, radar, earthquakes, and day/night views. It uses Unicode Braille characters to render the map right in your terminal. I’d love to hear what you think, especially about the…

51

Oct 7, 2026

README

Terrascope

CI PyPI Python License

Terrascope animated UI demo

terrascope is an interactive world map for the terminal. It renders countries, place names, live aircraft, city weather, a radar overlay, earthquakes, and day/night bands with curses, Unicode Braille cells, and terminal colors.

The app is intentionally lightweight at install time. Large map data is downloaded into a user cache the first time it is needed, then reused on later runs.

Country names and abbreviations, plus airport names and locations, are bundled from Natural Earth so they are available offline without a first-run download.

Status

This project is early-stage software. The core map, tabs, keyboard/mouse navigation, live layers, and cache handling are implemented, but APIs and visual details may still change.

Requirements

  • Python 3.10 or newer on macOS or Linux/Unix
  • A UTF-8 terminal
  • A terminal with 256-color or true-color support for the best appearance
  • Network access for first-run map downloads and live data layers (optional)

Python dependencies are declared in pyproject.toml:

  • numpy
  • Pillow
  • PyYAML

Installation

For normal use:

pipx install terrascope
terrascope

Package managers

Terrascope also includes recipes for Nix and Homebrew:

# Nix, from a Terrascope checkout
nix run ./packaging/nix

# Homebrew
brew tap a-shygun/terrascope https://github.com/a-shygun/Terrascope.git
brew install a-shygun/terrascope/terrascope

PyPI publishing is automated for version tags. The Nix and Arch recipes, Homebrew formula, and distribution-check helper live under packaging/; update their version references when preparing a release.

For local development:

git clone https://github.com/a-shygun/terrascope.git
cd terrascope
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
terrascope

You can also run it from a checkout without installing the console script:

PYTHONPATH=src python3 -m terrascope

First Run and Cache

On first launch, terrascope downloads Natural Earth GeoJSON files into:

$XDG_CACHE_HOME/terrascope

If XDG_CACHE_HOME is not set, the default is:

~/.cache/terrascope

Useful cache commands:

terrascope --show-paths
terrascope --clear-cache
terrascope --offline

Common Options

terrascope --help                         # all options and defaults
terrascope --tab weather --offline        # open a tab using cached data only
terrascope --panel-orientation vertical   # put the panel in a left sidebar
terrascope --no-radar --no-airports       # disable optional overlays
terrascope --disable-layer night          # start with a layer disabled
terrascope --config ~/terrascope.yaml     # load additional settings
terrascope --set 'map.zoom.max=128'       # override one setting for this run
terrascope --show-paths                   # show cache and config locations
terrascope --clear-cache                  # remove cached downloads and API data
terrascope --dump-config                  # print effective settings
terrascope --list-keys                    # show active keyboard shortcuts

CLI flags override configuration for the current run. --set overrides flags; see terrascope --help for the full precedence order and every available option.

During first-run downloads the terminal UI shows a loading message before the map appears. Errors and background warnings are written to the log file shown by terrascope --show-paths, so stray output does not corrupt the curses screen.

Controls

InputAction
1-9Switch tabs
WASD or arrow keysPan
+ / -Zoom in / out
0Reset view
Mouse dragPan
Mouse wheelZoom
Mouse clickSelect a marker or map label
< / >Step through overlapping selections
/Search
OOpen filter prompt
HShow or hide the panel
?Open the welcome/help modal
EscClose prompts or clear selection/filter state
QQuit

Click [+] beside the clock to expand the top controls, then click the panel placement label (BOTTOM or LEFT) to switch the panel between the horizontal bottom row and vertical left sidebar. The default is vertical; --panel-orientation vertical or --panel-orientation horizontal selects the starting layout for one run. --set ui.panel_orientation=vertical also works. In the vertical weather panel, scroll over the forecast to move through each day's full detail, including its temperature graph, conditions, precipitation, wind, and sunrise/sunset.

Layer-specific keys:

KeyLayer
PFlights
KAirports on the planes tab
CCity weather labels
EEarthquakes
NDay/night layer
LDay/night tint/fill mode
[ / ]Time slider where available

Run this for the effective key list:

terrascope --list-keys

Tabs And Layers

  • MAP: base world map with country, province/state, and city detail as zoom allows.
  • TIME: day/night bands, sun information, moon information, and timezone selection.
  • WEATHER: city weather, forecast panel, radar overlay, and USGS earthquakes.
  • PLANES: OpenSky aircraft positions, trails, categories, and Natural Earth airport markers.

Screenshots

Map

Global map view

Global map view.

Europe map close-up without province boundaries

Europe close-up without province boundaries.

Europe map close-up with province boundaries

Europe close-up with province boundaries.

Time

Global time view with day and night fill

Global view with day and night fill.

Global time view with day and night tint

Global view with day and night tint.

Global time view with fill and no panel

Global view with fill and the panel hidden.

Time tab with horizontal panel layout

Time tab with the horizontal panel layout.

Weather

Global weather view with vertical panel

Global weather view with the vertical panel.

Global weather view without panel

Global weather view with the panel hidden.

Europe weather view with radar close-up

Europe close-up with the radar overlay.

Weather tab with horizontal panel layout

Weather tab with the horizontal panel layout.

Planes

Global planes view

Global aircraft view.

Planes view close-up over the United Kingdom

Aircraft close-up over the United Kingdom.

Configuration

Defaults live in:

~/.config/terrascope/default.yaml

On first launch, Terrascope copies the bundled defaults to this location and loads that user-owned copy. Existing files are kept across upgrades. If XDG_CONFIG_HOME is set, Terrascope uses $XDG_CONFIG_HOME/terrascope/default.yaml.

You can override settings without editing the package:

terrascope --config ~/terrascope.yaml
terrascope --set 'map.zoom.max=128'
terrascope --set 'map.land_color="#101018"'

Inspect the final merged config:

terrascope --dump-config

Important environment variables:

VariableMeaning
terrascope_OFFLINE=1Disable live network requests
terrascope_CONFIG=/path/file.yamlLoad a config file before CLI flags
terrascope_RAINVIEWER_URL=https://...Override the RainViewer catalog API
XDG_CACHE_HOME=/pathChange the default cache root

Project Layout

src/terrascope/
  __main__.py              python -m terrascope entry point
  assets/                  default configuration and bundled reference data
  core/
    app/                   app lifecycle, input, mouse, and rendering mixins
    ui/                    colors, layout, dialogs, and map drawing
    cli.py config.py       command-line and settings validation
    mapdata.py world.py    geographic data and map state
  layers/
    basemap/               country outlines, labels, and map detail
    daynight/              day/night rendering and astronomy calculations
    flights/               OpenSky API, cache, formatting, and aircraft layer
    weather/               weather, radar, forecast, and earthquake modules

The public console entry point is:

terrascope = "terrascope.__main__:run"

Data Sources

  • Natural Earth: country and province/state outlines, populated places
  • OpenSky Network: aircraft positions
  • Open-Meteo: city weather and forecasts
  • RainViewer Weather Maps API: past radar tiles (personal/educational use; attribution required)
  • USGS GeoJSON feeds: earthquakes
  • NOAA/Meeus-style calculations in code: day/night and moon information

Bundled reference data is from Natural Earth 50m Cultural Vectors, which is public domain.

Each source has its own availability and rate-limit behavior. Use --offline when you want to run only from cached data.

Terrascope has no telemetry or analytics. When live layers are enabled, network requests go to the configured data providers. Weather requests include the coordinates of displayed cities; providers also receive your IP address and the Terrascope User-Agent. --offline disables live requests.

Development Checks

Basic syntax check:

python3 -m compileall -q src/terrascope

If dependencies are installed, a quick import smoke test is:

PYTHONPATH=src python3 -c "from terrascope.core.registry import build_layers; print([l.name for l in build_layers()])"

Releasing

Versioned tags build and publish the wheel and source distribution to PyPI. Update the separate Homebrew tap after PyPI confirms the release. See docs/RELEASING.md for the release and Git steps.

License

MIT. See LICENSE.

aircraft-tracking
braille
cli
curses
earthquakes
maps
python
terminal
tui
weather