Giter Club home page Giter Club logo

weather-cli's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

weather-cli's Issues

Celsius

Hi,
Can it be to put a parameter to indicate degrees in Celsius;

Thanks !!!

Good job !!!

WEATHER_OPTS="..."

Add a WEATHER_OPTS that the weather CLI respects as default options to be passed.

e.g:

export WEATHER_OPTS="--units celsius"

Broken: open weather map now requires an API key

The app fails to get the weather data, since open weather map now requires an API key. They are free.

I don't know python well, but I'm sure I can muddle my way through it given some time to sort out the changes; once I get there I'll make a PR, unless someone else beats me to it.

Here's the error.

Traceback (most recent call last):
  File "/usr/local/bin/weather", line 6, in <module>
    Weather.main()
  File "/usr/local/lib/python2.7/site-packages/weathercli.py", line 146, in main
    conditions = weather_provider.now(args['query'], args['units'])
  File "/usr/local/lib/python2.7/site-packages/weathercli.py", line 50, in now
    units
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 87, in urlopen
    return opener.open(url)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 213, in open
    return getattr(self, name)(url)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 364, in open_http
    return self.http_error(url, fp, errcode, errmsg, headers)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 377, in http_error
    result = method(url, fp, errcode, errmsg, headers)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 689, in http_error_401
    errcode, errmsg, headers)
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/urllib.py", line 386, in http_error_default
    raise IOError, ('http error', errcode, errmsg, headers)
IOError: ('http error', 401, 'Unauthorized', <httplib.HTTPMessage instance at 0x10764a878>)

File name conflict with weather from expect

Hi, nice program you have here, unfortunately it overwrote the weather script from expect on my machine (Slackware 14.1, 64 bits). Said script also exists on CentOS 5/6/7.

Is there any chance of renaming your installed script to /usr/bin/weathercli, for example?

TIA.

ERROR: Malformed response from weather service

I installed weathercli through pip on Ubuntu 12.10 using Python 2.7.3.

Seemingly no matter what area code I enter (tried 90210, 11219, 07603, 10001), I get the error in this issue's title.

Any idea what might be going wrong?

Thanks!

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.