Skip to main content

check the weather from the cli

Project description

Weather from the command line, so cool!


pip install weather-cli


weather-cli --setup

If you installed directly without using virtualenv, you have to use sudo to set it up.

You gonna need a API key, register here to obtain it. You have 999 API calls per day for free, enough to check the weather a couple of times a day.

You could add the latitude and logitude of the city you want to check the weather, just go to and search the city.

If you leave both numbers empty, the script will try to guess your location based on your public IP.


weather-cli [OPTION] [FORMAT]
Option Description
-n, –now Get current weather
-h, –hourly Get the next 24 hours weather
-f, –forecast Get the next days weather
–about About weather-cli
–info Check current configuration
–setup Run setup
–format [json] Output format
–help Show this message and exit.


Try it without installing

$ git clone
$ virtualenv env -p python2.7
$ source env/bin/activate
$ pip install -r requirements.txt
$ python weather/ --setup
$ python weather/ [OPTIONS] [FORMAT]
$ profit



Version history

ver 1.0.1

add fix to Weather class import
add fix to raw_input error

ver 1.0.0

add python3 support

ver 0.2.3

Fix weather api url

ver 0.2.1

Replace python-geoip for geocoder library for a better geolocation
Enhace the setup process to be more descriptive
Add city name to config file

ver 0.1.12

add output data as json

ver 0.1.11

small fixes
add new short options -n -h -f
add about
add config info
check error on setup

ver 0.1.10

first beta version

ver 0.1.0

first alpha version

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for weather-cli, version 1.1.0
Filename, size File type Python version Upload date Hashes
Filename, size weather-cli-1.1.0.tar.gz (6.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page