Skip to content

razvanvancea/cli-weather-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 

Repository files navigation

Bring weather report into your terminal

available on Linux and macOS platforms

Prerequisites:

Python v3, Git

Installation:

  1. Clone the project in the home directory
  cd ~/
  git clone https://github.com/razvanvancea/cli-weather-script.git
  1. Open the .bashrc file
nano ~/.bashrc
  1. Add the following aliases (in the following script, feel free to replace 'Bucharest' with a different city)
alias wb='python3 ~/cli-weather-script/get_weather.py Bucharest'
alias weather='python3 ~/cli-weather-script/get_weather.py' 
  1. Save and close the file (e.g. for nano editor: CTRL+X, then press Y and Enter)
  2. Use the following command to reload the .bashrc file
source ~/.bashrc

How to use the script?

Return the weather of the chosen location (you chose it in the 'wb' alias step - .bashrc file) via CLI:

wb

Return specific location weather via CLI (the location name needs to be passed as option):

weather Berlin

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages