Giter VIP home page Giter VIP logo

weather_cli's Introduction

weather_cli

A command line program for weather updates

Usage:

Help message:

py weather.py -h
usage: weather.py [-h] [-city CITY [CITY ...]] [-v] [-f] [-d]
                  [-fd {0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0}] [-c COUNTRY]
                  [-u {metric,imperial}] [-l LATLON [LATLON ...]]

Gets weather and temperature info for a city.

options:
  -h, --help            show this help message and exit
  -city CITY [CITY ...]
                        Enter the city name.
  -v, --verbose         Display additional output for the query.
  -f, --forecast        Get the forecasted weather for the next 5 days.
  -d, --debug           Run the script in debug mode for more detailed information.
  -fd {0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0}, --forecast-days {0.0,0.5,1.0,1.5,2.0,2.5,3.0,3.5,4.0,4.5,5.0}
                        Forecast with a custom number of days. Supports half days.
  -c COUNTRY, --country COUNTRY
                        Country to use in the query.
  -u {metric,imperial}, --units {metric,imperial}
                        Units to use in the query.
  -l LATLON [LATLON ...], --latlon LATLON [LATLON ...]
                        Latitude and longitude to use in the query.

Basic use, verbose use, forecast for 0.5 days ahead, forecast for 0.5 days ahead with verbosity in metric.

py weather.py -city new york city
New York             🔆 Clear sky           52.63°Fpy weather.py -city new york city -v
New York             🔆 Clear sky           53.4°F
Max:56.98°F | Min:48.18°F | 0in rain | 53% humidity | 5.75 mphpy weather.py --latlon 40.7, -74 -f --forecast-days 0.5
Fri, April 15 08 AM  🔆 Clear sky           53.11°F
Fri, April 15 11 AM  🔆 Clear sky           55.6°F
Fri, April 15 05 PM  🔆 Clear sky           65.52°Fpy weather.py new york city -f --forecast-days 0.5 -v -u metric
Fri, April 15 08 AM  🔆 Clear sky           11.73°C, 0in rain, 52% humidity, 3.84 mph
Fri, April 15 11 AM  🔆 Clear sky           13.11°C, 0in rain, 42% humidity, 3.56 mph
Fri, April 15 02 PM  🔆 Clear sky           16.14°C, 0in rain, 32% humidity, 4.7 mph
Fri, April 15 05 PM  🔆 Clear sky           18.62°C, 0in rain, 29% humidity, 5.24 mph

weather_cli's People

Contributors

brad90four avatar

Stargazers

 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.