Skip to content

SrDouglax/weather-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Weather CLI

A simple command-line interface tool written in Go to check the current weather conditions for a specific location.

Description

This application uses the Open-Meteo Geocoding and Weather APIs to resolve a location name to coordinates and fetch weather data.

Prerequisites

  • Go 1.25 or higher

Usage

To run the application, use the following command:

go run main.go <place>

Example

go run main.go Recife

Output:

Getting Coordinates...
Getting weather...

Temperature: 25.3°

Structure

  • main.go: Entry point of the application. Handles CLI arguments and orchestration.
  • requests/localization.go: Handles geocoding requests to convert city names to latitude/longitude.
  • requests/weather.go: Handles weather requests to fetch weather data.

About

A simple program to get wheater data based in locale args

Topics

Resources

Stars

Watchers

Forks

Languages