LINUXOPOLIS # 26-FEBRUARY-2020 ~ WEATHER FORECASTsteemCreated with Sketch.

in #linux6 years ago

WEATHER

Building a Linux Habitat
willi glenz @ telegram
Published with SteemPeak
home ~ previous

screenshot by willi glenz

vim ~/.config/fish/functions/gweather.fish

function gweather --description 'weather forecast'
    clear; echo
    echo '=========================================================================='
    echo '                                 WEATHER                                  '
    echo '=========================================================================='
    echo '                                                                          ' 
    echo ' LOCATION                                                                 '
    echo '  $ curl wttr.in/london                                                   '
    echo '  $ curl wttr.in/fulda                                                    '
    echo '  $ curl wttr.in/bad+kissingen                                            '
    echo '  $ curl wttr.in/moon                                                     '
    echo '                                                                          ' 
    echo ' IATA CODES                                                               '
    echo '  $ w3m iatocodes.de   # IATA: codes                                      '
    echo '  $ curl wttr.in/muc   # IATA: muc, Munich International Airport, Germany '
    echo '  $ curl wttr.in/ham   # IATA: ham, Hamburg Airport, Germany              '
    echo '                                                                          ' 
    echo ' GEOGRAPHICAL LOCATION                                                    '
    echo '  $ curl wttr.in/~Vostok+Station                                          '
    echo '  $ curl wttr.in/~Eiffel+Tower                                            '
    echo '  $ curl wttr.in/~Kilimanjaro                                             '
    echo '                                                                          ' 
    echo ' IP-ADDRESS OR DOMAIN                                                     '
    echo '  $ curl wttr.in/a.b.c.d                                                  '
    echo '  $ curl wttr.in/google.com                                               '
    echo '                                                                          ' 
    echo '--------------------------------------------------------------------------' 
    echo ' $ curl wttr.in/:help | less                                              '
    echo '=========================================================================='
    echo
    read
    clear
    curl wttr.in
end
SOURCES
 github ................................................... github.com/chubin/wttr.in
 fish ......................................... fishshell.com/docs/current/index.html
 picture ....................................... screenshoot by me ~ my gnome-desktop

Coin Marketplace

STEEM 0.04
TRX 0.33
JST 0.102
BTC 64092.15
ETH 1863.95
USDT 1.00
SBD 0.36