/go-weather-forecast

GoLang Weather Forecast recreated from - https://github.com/gonzaloplaza/python-weather-forecast

Primary LanguageGoMIT LicenseMIT

Go Weather Forecast

Go Weather Forecast was inspired from Python Weather Forecast. However this application does not leverage the same API's or have the exact capability.

The Go Weather Forecast leverages the OpenWeather API using any City as a parameter.

Requirements

Installation (Linux) and Usage

Declare the environment variable for your API key to Open Weather as so.

$ export OW_API_KEY=<your_api_key_from_openweathermap>

Clone this project:

$ git clone https://github.com/spensireli/go-weather-forecast

Run main.go passing a city.

$ go run main.go -city 
$ go run main.go -city=Pittsburgh
The city is: Pittsburgh 
The temperature is: 72.59 
The humidity is: 76 

Licensing

The code in this project is licensed under MIT LICENSE. Read file for more information.