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.
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.
- 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.
To use tempo-cli on your machine follow these steps:
- 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
- Clone the repository into your local machine and make sure you have Go installed
- Run the application with the commands you want to execute
- 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
- Getting current weather information of provided city, run:
go run main.go current -l <CITY>
- Getting weather forecast up to 14 days, run:
go run main.go forecast -l <CITY> -d <NUMBER OF DAY>