Skip to content

Clima is a command-line interface (CLI) tool written in Golang using the Cobra framework. It is designed to fetch weather information from weatherapi.com

License

Notifications You must be signed in to change notification settings

chuttmateo/clima

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clima

Clima is a command-line tool written in Golang, utilizing the Cobra framework. It provides weather forecasts for today or the next three days.

Installation

  1. Download the latest version of Clima from releases.
  2. Add the downloaded binary to your bin folder.

Usage

Before using Clima, you need to set up your WeatherAPI token and optionally specify your location.

Setting up WeatherAPI token

  1. Go to WeatherAPI and create your own token. (for free)
  2. Declare an environment variable CLIMA_TOKEN and set it to your WeatherAPI token.

Specifying location (optional)

You can specify your default location by declaring an environment variable CLIMA_LOCATION.

Example

# Get the current weather
clima current

# Get the forecast for the next 3 days
clima forecast

# Get the forecast for a specific location
clima -l "Las Vegas" current

About

Clima is a command-line interface (CLI) tool written in Golang using the Cobra framework. It is designed to fetch weather information from weatherapi.com

Topics

Resources

License

Stars

Watchers

Forks

Languages