Skip to content

This is a simple command-line tool ( CLI ) built with Golang that provides weather forecasts using the WeatherAPI from RapidAPI. The Weather CLI allows users to check the current weather and a three-day forecast for a specific location.

Notifications You must be signed in to change notification settings

zoelabbb/Gweather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌦 GWeather - A Golang Weather CLI

GWeather is a command-line interface (CLI) written in Golang that provides weather forecasts using the WeatherAPI from RapidAPI.

cloud

Sponsors Go GitHub: zoelabbb

Installation

  1. Clone the repository:

    git clone https://github.com/zoelabbb/Gweather.git
  2. Navigate to the project directory:

    cd Gweather
  3. Create a .env file with your RapidAPI key and host:

    RAPID_API_KEY=your-rapidapi-key
    RAPID_API_HOST=weatherapi-com.p.rapidapi.com

    Get your key and host from RapidAPI Here

  4. Build the application:

    go build -o Gweather
  5. Move the executable to your path:

    mv Gweather /usr/local/bin
  6. Run the application:

    Gweather {city}

Usage

Run the application with an optional city parameter to get the weather forecast. If no city is provided, it defaults to "Denpasar".

Gweather Denpasar

Gweather Forecast The percentage chance of rain can vary depending on the data source and specific geographic area. However, in general :

  • Less than 40%: Low chance of rain. ( Green )
  • Between 40% - 70%: Chance of rain. ( Yellow )
  • Over 70%: High chance of rain. ( Red )

Dependencies

Configuration

Configure the application by setting your RapidAPI key and host in the .env file.

Contributing

  1. Fork the repository (https://github.com/zoelabbb/Gweather/fork)
  2. Create a new branch (git checkout -b feature-new)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature-new)
  5. Create a new Pull Request

Contact

For questions or suggestions, feel free to contact me:

About

This is a simple command-line tool ( CLI ) built with Golang that provides weather forecasts using the WeatherAPI from RapidAPI. The Weather CLI allows users to check the current weather and a three-day forecast for a specific location.

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Languages