evalcrux/wundernode — pull request #2 by lgriffin (2012-11-23 14:43:03+00:00)
Title: Additions to your code

Hi there,

First off I would like to thank you for the great application that you put together. It certainly saved me a few hours of figuring out Express and trying to get something up and running. I made some minor additions which you might like to review and incorporate into your version. Some could be bug fixes or just my inexperience with node.js so it might help others out.

- I changed './Util.js' import to be util which was causing compilation problems

- When running the program I was getting the stock 404 message from Wunderground basically telling me I hadn't specified what data I wanted in terms of location.

- To rectify this In example.js I added the capability of specifying your city and country and modified the other file to accept these new parameters.

- I changed query to be location in order to complete the path.

It's working now in that it has the correct city, country and API key and pulls back the required data.

Cheers,
Leigh.
@leighgriffin