Skip to content

compuficial/weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

weather

Terminal weather via Open-Meteo. Prints once by default (handy in update scripts); -i for a live TUI.

weather TUI showing Tokyo: partly cloudy, hourly and 7-day forecast

Install

make install   # → ~/.local/bin/weather

Usage

weather                          # resolve location, print, exit
weather -l "San Francisco"
weather San Francisco            # positional city works too
weather -u c -l Tokyo            # Celsius
weather -i                       # interactive fullscreen
weather -preview                 # static art gallery
weather -preview -i              # animated art gallery

Interactive keys

Key Action
/ Search / change city
u Toggle °F / °C
r Refresh
q Quit

Auto-refreshes every 15 minutes. Ambiguous cities show a numbered picker.

Location resolution

  1. -l / positional args
  2. $WEATHER_LOCATION
  3. Last-used city (~/.config/weather/config.json)
  4. IP geolocation
  5. New York, NY

Units

-u f|c, else $WEATHER_UNITS, else last config, else locale (_US → °F, otherwise °C).

Shell completion

# bash
eval "$(weather -completion bash)"

# zsh
weather -completion zsh > "${fpath[1]}/_weather"

# fish
weather -completion fish > ~/.config/fish/completions/weather.fish

License

MIT © compuficial

About

Weather CLI

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages