Skip to content

A bash script to check weather condition through https://wttr.in via terminal

License

Notifications You must be signed in to change notification settings

cblte/bash-script-wttr

 
 

Repository files navigation

wttr

A Bash script to check weather condition via terminal created by Carsten Brueggenolte.

Current Version: v1.55

wttr

Thanks Amirreza Firoozi

for trusting me in maintaing this repo as best as I can! (https://github.com/AmirrezaFiroozi/wttr)

Installation

The installer will install the script into the directory $HOME/.local/bin/ of the current user. Please check the installer.sh before you execute it!

$ cd /tmp
$ git clone https://github.com/cblte/bash-script-wttr
$ cd bash-script-wttr
$ bash installer.sh

Usage

The wttr script comes with some parameters explained below

The following arguments are available:

    # get weather report for a city
    wttr cologne
    wttr "Den Haag, Netherlands"

    # get another, different weather report display
    wttr -v2 cologne
    wttr -v2 "Den Haag, Netherlands"

    # get another, different weather report display
    wttr -v3 cologne
    wttr -v3 "Den Haag, Netherlands"

    # install curl which is necessary for script to run correctly
    # currently it only works on systems with 'apt' installed 
    wttr -i 
    
    # set a city as your default city.
    # without a second argument, wttr will ask you for input
    wttr -sdef
    
    # set Den Haag as default city
    wttr -sdef "Den Haag, Netherlands"
    
    # get todays forecast or the current weather only
    wttr -t
    wttr -n
    
    # see a photo of the Moon
    wttr -m

    # uninstall and remove the wttr script
    wttr -rm
    
    # show the script version
    wttr -v
    
    # show the help screen
    wttr -h

License

This program is licensed under the MIT license

Credit

goes to Amirreza Firoozi for the initial script and some other people he also mentioned in his code: Jadi , Alireza Amirsamimi & Mostafa Asadi, doc-ock.

Thanks you guys!

Screenshots

wttr -v2

wttr -v3

About

A bash script to check weather condition through https://wttr.in via terminal

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%