Giter VIP home page Giter VIP logo

weather-cli's Introduction

Weather cli

Weather from the command line, so cool!

Installation

pip install weather-cli

Configuration

weather-cli --setup

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

You gonna need a Forecast.io 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 travelmath.com and search the city.

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

Usage

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.

Data sources

Dependencies

Try it without installing

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

License

MIT

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

weather-cli's People

Contributors

faustocarrera avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.