Skip to content

Instantly share code, notes, and snippets.

@easierbycode
Created January 21, 2016 21:21
Show Gist options
  • Save easierbycode/cfca7b5fc7afbd40b63b to your computer and use it in GitHub Desktop.
Save easierbycode/cfca7b5fc7afbd40b63b to your computer and use it in GitHub Desktop.
sample Weather Underground response
{
response: {
version: "0.1",
termsofService: "http://www.wunderground.com/weather/api/d/terms.html",
features: {
conditions: 1
}
},
current_observation: {
image: {
url: "http://icons.wxug.com/graphics/wu2/logo_130x80.png",
title: "Weather Underground",
link: "http://www.wunderground.com"
},
display_location: {
full: "Muncie, IN",
city: "Muncie",
state: "IN",
state_name: "Indiana",
country: "US",
country_iso3166: "US",
zip: "47302",
magic: "1",
wmo: "99999",
latitude: "40.17383194",
longitude: "-85.38194275",
elevation: "290.00000000"
},
observation_location: {
full: "Delaware County Emergency Management, Muncie, Indiana",
city: "Delaware County Emergency Management, Muncie",
state: "Indiana",
country: "US",
country_iso3166: "US",
latitude: "40.192104",
longitude: "-85.383995",
elevation: "955 ft"
},
estimated: { },
station_id: "KINMUNCI20",
observation_time: "Last Updated on January 21, 12:45 PM EST",
observation_time_rfc822: "Thu, 21 Jan 2016 12:45:38 -0500",
observation_epoch: "1453398338",
local_time_rfc822: "Thu, 21 Jan 2016 12:59:26 -0500",
local_epoch: "1453399166",
local_tz_short: "EST",
local_tz_long: "America/Indianapolis",
local_tz_offset: "-0500",
weather: "Mostly Cloudy",
temperature_string: "29.3 F (-1.5 C)",
temp_f: 29.3,
temp_c: -1.5,
relative_humidity: "54%",
wind_string: "From the South at 3.2 MPH",
wind_dir: "South",
wind_degrees: 180,
wind_mph: 3.2,
wind_gust_mph: 0,
wind_kph: 5.1,
wind_gust_kph: 0,
pressure_mb: "1029",
pressure_in: "30.39",
pressure_trend: "-",
dewpoint_string: "15 F (-10 C)",
dewpoint_f: 15,
dewpoint_c: -10,
heat_index_string: "NA",
heat_index_f: "NA",
heat_index_c: "NA",
windchill_string: "26 F (-3 C)",
windchill_f: "26",
windchill_c: "-3",
feelslike_string: "26 F (-3 C)",
feelslike_f: "26",
feelslike_c: "-3",
visibility_mi: "9.0",
visibility_km: "14.5",
solarradiation: "--",
UV: "3",
precip_1hr_string: "-999.00 in ( 0 mm)",
precip_1hr_in: "-999.00",
precip_1hr_metric: " 0",
precip_today_string: "0.00 in (0 mm)",
precip_today_in: "0.00",
precip_today_metric: "0",
icon: "mostlycloudy",
icon_url: "http://icons.wxug.com/i/c/k/mostlycloudy.gif",
forecast_url: "http://www.wunderground.com/US/IN/Muncie.html",
history_url: "http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KINMUNCI20",
ob_url: "http://www.wunderground.com/cgi-bin/findweather/getForecast?query=40.192104,-85.383995",
nowcast: ""
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment