Skip to main content

Terminal weather, solar arc, and tide visualizations

Project description

linecast

Terminal weather, solar arc, and tide visualizations. Pure Python, zero dependencies.

All data comes from free public APIs with no keys required.

linecast

Commands

weather — Current conditions, hourly braille temperature curve, 7-day forecast with color range bars, precipitation sparkline, natural language comparisons, and NWS/Environment Canada weather alerts.

weather

sunshine — Solar arc inspired by the Apple Watch Solar Graph face. Shows the sun's position on its daily arc with sky color gradients, day length with daily delta, and moon phase.

sunshine — midday sunshine — dusk

tides — NOAA tide predictions rendered as an ocean-themed half-block chart with gradient fill, current water level, and high/low extremes.

tides

All three support --live for a full-screen auto-refreshing display. sunshine and tides also support arrow-key time scrubbing.

Install

pip install linecast

Or with a Homebrew tap:

brew tap ashuttl/linecast
brew install linecast

Usage

weather                          # current location via IP geolocation
weather --location 44.54,-68.42  # specific coordinates
weather --search québec          # find coordinates by city name
weather --metric                 # metric units (°C, km/h, mm)
weather --live                   # full-screen, auto-refresh
weather --lang fr                # descriptions et interface en français

sunshine                         # solar arc for today
sunshine --live                  # full-screen, scrubbable, auto-updating

tides                            # nearest NOAA station
tides --station 8413320          # specific station ID
tides --search "Bar Harbor"      # find stations by name
tides --live                     # full-screen, scrubbable, auto-updating

weather --lang fr — Descriptions météorologiques, dates et interface en français. Utilise également la version française des alertes d'Environnement Canada, si disponible.

All commands are also available under the linecast namespace if the short names conflict with other tools on your system:

linecast weather --live
linecast sunshine
linecast tides --station 8413320

Weather alerts

Alerts are sourced automatically based on location:

  • US — National Weather Service (api.weather.gov)
  • Canada — Environment and Climate Change Canada (api.weather.gc.ca)

Other regions get forecasts but no alerts yet.

Environment variables

Variable Description
WEATHER_LOCATION Default lat,lng for weather (e.g., 44.54,-68.42)
TIDE_STATION Default NOAA station ID for tides (e.g., 8413320)
WEATHER_UNITS Set to metric for Celsius, km/h, and mm (same as --celsius)
LINECAST_ICONS Set to emoji to use standard emoji instead of Nerd Font icons
LINECAST_COLOR Color mode: auto (default), truecolor, 256, 16, or none
NO_COLOR Any non-empty value disables ANSI colors (standard convention)

Requirements

  • Python 3.10+
  • A terminal with ANSI color support (truecolor looks best; weather remains usable in low/no color)
  • A Nerd Font for best icon rendering (optional — use --emoji for standard emoji fallback)
  • macOS or Linux (uses termios for live mode)

License

MIT

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

linecast-1.1.6.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

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

linecast-1.1.6-py3-none-any.whl (52.3 kB view details)

Uploaded Python 3

File details

Details for the file linecast-1.1.6.tar.gz.

File metadata

  • Download URL: linecast-1.1.6.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for linecast-1.1.6.tar.gz
Algorithm Hash digest
SHA256 3f7122cd4b4d7ca4512f082635eb5a6241b6df77e13d1f7b6a0a237c623ec5d3
MD5 4857a5f9b0d91669055c452d5cd33f8d
BLAKE2b-256 5cc318abcf8bf52f3b2edb97458e2fec0317c2a5bb4da0acb06ec4d62af27660

See more details on using hashes here.

Provenance

The following attestation bundles were made for linecast-1.1.6.tar.gz:

Publisher: publish.yml on ashuttl/linecast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file linecast-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: linecast-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 52.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for linecast-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c9ddd4598c13a4f236b2a00a007155ceeb691a2d145049293fb98da363a63268
MD5 228ebb681395085dbb5ea5a203a4f185
BLAKE2b-256 768f39dc3aec989df715bdcef7de4b720b2a7b64062d13723bb99017eed8c66e

See more details on using hashes here.

Provenance

The following attestation bundles were made for linecast-1.1.6-py3-none-any.whl:

Publisher: publish.yml on ashuttl/linecast

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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