GithubHelp home page GithubHelp logo

htw's Introduction

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

htw's People

Contributors

abhishekamralkar avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.