MacOS via homebrew:
brew tap msoap/tools
brew install yandex-weather-cli
# update:
brew upgrade yandex-weather-cli
Or download binaries from: releases (OS X/Linux/Windows/RaspberryPi)
Or build from source:
go install github.com/msoap/yandex-weather-cli@latest
ln -s $GOPATH/bin/yandex-weather-cli ~/bin/
Or use snap (Ubuntu or any Linux distribution with snap):
# install stable version:
sudo snap install yandex-weather-cli
# install the latest version:
sudo snap install --edge yandex-weather-cli
# update
sudo snap refresh yandex-weather-cli
# weather client by default use your current location
yandex-weather-cli [options] [city]
# options:
-days int
maximum days to show (default 10)
-json
get JSON
-no-color
disable colored output
-no-today
disable today forecast
-version
get version
# in another city
yandex-weather-cli kyiv
yandex-weather-cli london
# JSON out
yandex-weather-cli -json london
For setup own yandex.pogoda URL, you may set variables:
Y_WEATHER_URL
Y_WEATHER_MINI_URL
- pogoda.yandex.ru
- github.com/schachmat/wego - another weather command line client (Go)
- github.com/jfrazelle/weather - another weather command line client (Go)