Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tfuxu/wfetch

A small (~100 lines of code) terminal weather fetch tool written in Python.
https://github.com/tfuxu/wfetch

api fetch openweathermap python weather

Last synced: 2 months ago
JSON representation

A small (~100 lines of code) terminal weather fetch tool written in Python.

Awesome Lists containing this project

README

        


wfetch


wfetch 0.1 in terminal


A small (~100 lines of code) terminal weather fetch tool written in Python.

## Dependencies
* ```python``` - must be 3.6 or greater
* ```requests``` - for fetching raw data from weather APIs

You can install dependencies using this command: ```pip install -r requirements.txt```

## Installation
To install wfetch, make symbolic link to ```wfetch.py``` file in ```/usr/bin/``` directory:
```
sudo ln -s /path/to/wfetch/wfetch.py /usr/bin/wfetch
```

## Setup
1. Create an [OpenWeatherMap](https://home.openweathermap.org/users/sign_up) account
2. Go to [API keys](https://home.openweathermap.org/api_keys) section in your account settings
3. Update in ```config.py``` ```api``` and ```city``` parameters
4. Also, optionally update other parameters to set proper for you description language and measurement units

## Thanks
* [wego](https://github.com/schachmat/wego) for providing ASCII weather icons