Weather CLI


wcli is a samll program for fetching and printing weather information.

Requirements

To compile wcli and wcli-gen you will need the json-c header files.

To fetch the data you will need wget.

Running wcli

Using wcli effectively involves two separate processes.

  1. Fetching the weather data
  2. Printing it in a sensible format

The fetched data is stored locally, so there is no need to fetch the weather data right before printing. All the data is fetched from wttr.in. To fetch the data run:

$ wcli-query

Printing the weather information is done by running:

$ wcli [FORMAT]

You can find the format in the man page.

Configuartion

The settings for compiling and installing wcli are in config.mk

By default wcli will keep the weather data in ~/.local/share/wcli. To change the directory edit the config.h file and the wcli-query script. If you don’t see the config.h file, try building wcli.

Download

To clone the git repo run:

$ git clone git://git.savcik.xyz/wcli