How can I use the Google Weather API? -
i want make app using google weather api, don't have knowledge it.
how use api? explain step step how include in project?
this broad answer should better check tutorial or documentation present online.
edit :
your script can this:
import pywapi import string weather_com_result = pywapi.get_weather_from_weather_com('10001') yahoo_result = pywapi.get_weather_from_yahoo('10001') noaa_result = pywapi.get_weather_from_noaa('kjfk') print "weather.com says: " + string.lower(weather_com_result['current_conditions']['text']) + " , " + weather_com_result['current_conditions']['temperature'] + "c in new york.\n\n" print "yahoo says: " + string.lower(yahoo_result['condition']['text']) + " , " + yahoo_result['condition']['temp'] + "c in new york.\n\n" print "noaa says: " + string.lower(noaa_result['weather']) + " , " + noaa_result['temp_c'] + "c in new york.\n"
the output of can :
weather.com says: overcast , 15c in new york.
yahoo says: fog , 14c in new york.
noaa says: overcast , 15c in new york.
Comments
Post a Comment