Skip to content

Public-Works-Cooperative/go-weather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-weather

Simple command line weather client using OpenWeather API and Google Maps Geocoding.

Installation

  1. Define OpenWeatherApiKey in constants.go

  2. Define GoogleApiKey in constants.go

  3. Enable Google Maps Geocoding API in your Maps API console.

  4. go install go-weather

  5. Ensure your Go bin directory is in your PATH, example .bash_profile line:

    • export PATH=$PATH:$HOME/go/bin

Usage

Usage: go-weather [ -period=current|hourly|daily ] [ -units=C|F ] <location>...
  -period string
        current | hourly | daily (default "current")
  -units string
        C | F (default "C")

Example

$ go-weather -period=daily -units=f 80209 80919
Weather for 80209:
Current: 63.37F | Humidity: 36% | few clouds
Weather for 80919:
Current: 58.48F | Humidity: 33% | clear sky

About

Simple command line weather client for OpenWeather

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages