Written using python 3.10 and type hints, works only on macOS
After full installing procces you will able to type weather
anywhere in your terminal to check what's weather outside 😍
To work, you need a whereami module that allows the program to obtain coordinates. You can install it according to the instructions from the repository, or use the instructions from the contributor of the project, which you can find at the link.
Or just run the following commands:
brew tap welldan97/whereami
brew install whereami
If you do not have homebrew installed - follow the instructions.
To run the project you need:
git clone git@github.com:ss-o-furda/weather_python_typing.git
cd weather_python_typing
chmod +x weather
./weather
You will get the following result:
It is clouds in {city} now, the temperature is about {temp}°C.
The sun rose at {time}, and will set at {time}.
To be able to run this command from anywhere in the terminal - you need to make a link to the file in the directory with executable files:
sudo ln -s ${pwd}/weather /usr/local/bin
After that, just type weather
anywhere in the terminal and get information about the current weather.
The usual MIT license is used, the full text of which can be found in the LICENSE file.