Python weather application

Discussion in 'Python' started by seancron, Aug 30, 2007.

  1. seancron

    seancron Guest

    Does anybody have any suggestions for getting started on desigining a
    desktop weather application in Python?

    I've been looking for access to weather data and while I have found
    several including the weather.com service I've decided to use the
    Yahoo! Rss Weather feed since it doesn't have a license like the
    weather.com service does. However one problem I have with it is that
    it only accepts zip codes or locations ids. So if a user was to enter
    the name of the city instead of those two there would be an error. I
    could make it so they could only enter in the location code or zip
    code but I would really prefer to have it be automatically corrected.
    Does anyone have ideas on how to go about this or have an other
    suggestions?

    Thanks,
    Sean
     
    seancron, Aug 30, 2007
    #1
    1. Advertising

  2. seancron

    Zentrader Guest

    On Aug 30, 12:45 pm, seancron <> wrote:
    > Does anybody have any suggestions for getting started on desigining a
    > desktop weather application in Python?
    >
    > I've been looking for access to weather data and while I have found
    > several including the weather.com service I've decided to use the
    > Yahoo! Rss Weather feed since it doesn't have a license like the
    > weather.com service does. However one problem I have with it is that
    > it only accepts zip codes or locations ids. So if a user was to enter
    > the name of the city instead of those two there would be an error. I
    > could make it so they could only enter in the location code or zip
    > code but I would really prefer to have it be automatically corrected.
    > Does anyone have ideas on how to go about this or have an other
    > suggestions?
    >
    > Thanks,
    > Sean


    Use a dictionary to convert from the city chosen to the zip/location
    code to use at Yahoo.
     
    Zentrader, Aug 30, 2007
    #2
    1. Advertising

  3. seancron

    dc Guest

    On Aug 30, 5:41 pm, Zentrader <> wrote:
    > On Aug 30, 12:45 pm, seancron <> wrote:
    >
    >
    >
    > > Does anybody have any suggestions for getting started on desigining a
    > > desktop weather application in Python?

    >
    > > I've been looking for access to weather data and while I have found
    > > several including the weather.com service I've decided to use the
    > > Yahoo! Rss Weather feed since it doesn't have a license like the
    > > weather.com service does. However one problem I have with it is that
    > > it only accepts zip codes or locations ids. So if a user was to enter
    > > the name of the city instead of those two there would be an error. I
    > > could make it so they could only enter in the location code or zip
    > > code but I would really prefer to have it be automatically corrected.
    > > Does anyone have ideas on how to go about this or have an other
    > > suggestions?

    >
    > > Thanks,
    > > Sean

    >
    > Use a dictionary to convert from the city chosen to the zip/location
    > code to use at Yahoo.


    You can purchase/subscribe a zip code database and then use that as a
    reverse look-up for your user entering a city. try the postal service
    website for the database info.
     
    dc, Sep 1, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. sduncansca

    Weather Service Webservice Issues

    sduncansca, Oct 8, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    902
    sduncansca
    Oct 11, 2005
  2. Patrick.O.Ige

    Australia Weather XML web service

    Patrick.O.Ige, Oct 18, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    2,444
    Kevin Spencer
    Oct 18, 2005
  3. Fazer

    Python and Weather.com

    Fazer, Aug 13, 2004, in forum: Python
    Replies:
    4
    Views:
    1,953
    Dan Cardamore
    Aug 18, 2004
  4. sandeep patil

    WEATHER PROGRAMMING IN PYTHON

    sandeep patil, May 31, 2007, in forum: Python
    Replies:
    2
    Views:
    290
  5. seancron

    Python weather application

    seancron, Aug 30, 2007, in forum: Python
    Replies:
    0
    Views:
    235
    seancron
    Aug 30, 2007
Loading...

Share This Page