Git Product home page Git Product logo

weather_cli's Introduction

Weather CLI in the Command Line.

Check the weather condition of your city.

Features available are:

  • Check the weather condition of your city.
  • Word description and Emoji description are available.
  • Check the forecasted weather condition of your city upto 16 days ahead.

Future Features to Add:

  • Outfit Recommendation using chatgpt

API configuration Setting

  • Create a file name: secrets.ini.
  • Get your Openweather API key. File template:

"""

; secrets.ini

[version]

version=0.2.0

[openweather_api]

api_key=YOUR API KEY

[omeoweather_api]

BASE_URL=https://api.open-meteo.com/v1/forecast

[geolocation_api]

BASE_URL=http://api.openweathermap.org/geo/1.0/direct

"""

Note: Don't put space in the real file.

Turn the Repo to a Tool in Linux

  • Clone the remote repo.
  • Write a bash script that point to the cloning repo path.
  • And add this: poetry run weather $1 $2 $3
  • Change it to executable file with: chmod u+x [bash script file].
  • Move the bash script to /usr/bin so that you will be able to run from anywhere in the terminal.
  • Enjoy Using the tool.

Feel Free to Contribute

Contact Me: Twitter Discord

weather_cli's People

Contributors

pymode-dev avatar

Stargazers

 avatar

Watchers

 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.