abhishekamralkar / htw

How's The Weather! A CLI to give you current weather detail for the city

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How’s The Weather!

A weather CLI written in GoLang to give you current weather in the given city. Consumes API from OpenWeather.

OpenWeather API Key

export OWM_API_KEY=097jhgjhgkjhgkjhgkjhgkhjgk

HWT Usage

go run main.go -h                         
Usage of /tmp/go-build1726196164/b001/exe/main:
  -city string
    	Enter the city name. (default "Pune")
  -units string
    	Supports Kelvin(standard), Celcius(metric), Fahrenheit(imperial) (default "kelvin")

HWT Default Return

go run main.go                            
Current weather in Pune, IN:
    Now:         293.53 
    High:        294.15
    Low:         294.15
    Pressure:    1016
    Humidity:    47

HWT with flags

go run main.go -city chicago -units metric
Current weather in Chicago, US:
    Now:         16.82 
    High:        19.61
    Low:         15.58
    Pressure:    1013
    Humidity:    82

About

How's The Weather! A CLI to give you current weather detail for the city

License:Apache License 2.0


Languages

Language:Go 100.0%