Skip to content

kotajacob/metweather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

metweather builds.sr.ht status

Display weather information from Metservice. Uses the metservice-go library.

Usage

metweather [command] [flags]

GLOBAL flags
      --config string     config file (default is $XDG_CONFIG_HOME/.metweather.yaml)
  -h, --help              help for metweather
  -v, --version           version for metweather
  -l, --location string   location used for the weather observation/forecast

COMMANDS
  observation: display current or past weather observations
  forecast: display weather predictions for the current day or next serveral days

Config Example

location: Dunedin

alternatively you can set an environment variable METWEATHER_LOCATION="Dunedin"

Installation

Install the dependencies:

  • go (>=1.13)
  • scdoc

Edit config.mk to your desired install path.

Then compile and install:

# sudo make install

Resources

Discussion and patches can be found here.