Skip to content
/ tempo Public

tempo is a command-line tool built in Go using the Cobra framework for checking weather forecasts. Stay informed about the current weather conditions and upcoming forecasts right from your terminal.

License

Notifications You must be signed in to change notification settings

Ezzy77/tempo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tempo

tempo is a command-line tool built in Go using the Cobra framework for checking weather forecasts. Stay informed about the current weather conditions and upcoming forecasts right from your terminal.

Go Report Card License

Note

This cli has been developed on macOS and it works smothly on macOS and linux, however it has not been tested on a Windows machine, since the CLI create a file on your local machine to stores your weather API key I am not sure if it will create file on windows without an error due to windows filesystem being different.

Features

  • Current Weather: Get real-time information about the current weather conditions in your city or worldwide.
  • Forecast: Retrieve a detailed weather forecast for up to 14 days.
  • Location-Based: Search for weather information based on location given as an argument.

Table of Contents

Usage

To use tempo-cli on your machine follow these steps:

  1. Make sure you get your weather API Keys from https://www.weatherapi.com/ you will be prompt to provide your API key when using the CLI
  2. Clone the repository into your local machine and make sure you have Go installed
  3. Run the application with the commands you want to execute

Commands

  1. To set your Weather API Key run this command if the project is opened in VSCode:
     go run main.go setapikey -k <YOUR_API_KEY>

After setting your API key, the key will be saved in a file in your local machine

  1. Getting current weather information of provided city, run:
     go run main.go current -l <CITY>
  1. Getting weather forecast up to 14 days, run:
     go run main.go forecast -l <CITY> -d <NUMBER OF DAY>

Examples

Setting your weather API key:

Alt Text

Getting current weather information of provided city:

Alt Text

Getting weather forecast up to 14 days:

Alt Text

About

tempo is a command-line tool built in Go using the Cobra framework for checking weather forecasts. Stay informed about the current weather conditions and upcoming forecasts right from your terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages