An open API service indexing awesome lists of open source software.

https://github.com/yassinouk/go_wheater

This CLI app is fetching data from a weather API and displaying it in the terminal with colored output.
https://github.com/yassinouk/go_wheater

api-client cli cli-app golang rest-api terminal-app

Last synced: 6 months ago
JSON representation

This CLI app is fetching data from a weather API and displaying it in the terminal with colored output.

Awesome Lists containing this project

README

          

# Weather CLI App in Golang

## Project Information

- Project: weather-cli
- Created Date: 30/07/2023

## Introduction

This Golang CLI application fetches weather data from a weather API and presents it in the terminal with color-coded output based on the chance of rain. It uses the [Weather API](https://www.weatherapi.com/) to retrieve the current weather conditions and the hourly forecast for a specified city.

## Usage

To use the app, you need to have Golang installed on your machine. If you don't have Golang installed, you can download it from the [official Golang website](https://go.dev/).

1. Clone the repository to your local machine:

```bash
git clone https://github.com/yassinouk/go_wheater.git
```
2. Navigate to the project directory:

```bash
cd go_weather
```
3. In the main.go file change the variable city with your desired city:

4. Build the app:

```bash
go build -o go_weather
```
5. Run the app:

```bash
./go_weather
```