Skip to content

Get weather data in current location using Python with type hints, openweathermap and locationiq.

License

Notifications You must be signed in to change notification settings

ss-o-furda/weather_python_typing

Repository files navigation

Logo of the project

Weather Python Typing (macOS only) · LICENSE python GitHub code size in bytes

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 😍

Installing / Getting started

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.

Licensing

The usual MIT license is used, the full text of which can be found in the LICENSE file.

About

Get weather data in current location using Python with type hints, openweathermap and locationiq.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages