


If you intend on contributing, please keep these ideas in mind. When developing WunderWeather there were a few key concepts kept in mind which are listed below. For certain data features where it applied, wrapper classes were created to normalize the data returned and supply ease of access to that data.

WunderWeather was built to expose the data supplied by Wunderground in a uniform fashion. The Wunderground API supplies different endpoints called data features which, when supplied the proper arguments, return numerous data points describing the feature being queried.ĭocumentation About the WunderWeather API WunderWeather attempts to expose data supplied by Weather Underground in a way that is easy to use and easy to get weather data into your application quickly without having to deal with all of the details. I can see from WU that my API key is working.Whether you’re already a user and want a refresher on the documentation or you’re evaluating the package for the first time, you’ve come to the right place. Print ("Current temperature in %s is: %s") % (location, temp_f)Īny tip that a pro can give a newb on self teaching topics like this is greatly appreciated. This is a second attempt at my first API request, but it give me an error "TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'" from urllib.request import urlopen Json_data = response.read().decode('utf-8', 'replace')įor observation in data (): TypeError: list indices must be integers or slices, not str" from urllib.request import urlopen The first code gives me an error "for observation in data (): Both of these codes below are example scripts that I got from WU website & Github. Hello I am trying to get a API request with python 3 for weather underground to just do a simple print of the weather conditions, can someone give me a tip what I am doing wrong? I have a lot to learn here, so the learning curve is steep! Sorry if the question is super basic, what is the better code to use between the two? At least with one that I could get working and then build off of.
