Use Weather Underground astronomy data for sun rise/set

Changes discussed in issue #3
This commit is contained in:
Samer Albahra
2015-07-23 18:25:23 -05:00
parent eeae47ef5d
commit 9ef4cb759b
3 changed files with 45 additions and 28 deletions

View File

@@ -20,7 +20,8 @@
"termsofService": "http://www.wunderground.com/weather/api/d/terms.html",
"features": {
"yesterday": 1,
"conditions": 1
"conditions": 1,
"astronomy": 1
}
},
"current_observation": {
@@ -107,6 +108,34 @@
"ob_url": "http://www.wunderground.com/cgi-bin/findweather/getForecast?query=42.408440,-72.504799",
"nowcast": ""
},
"moon_phase": {
"percentIlluminated": "48",
"ageOfMoon": "7",
"phaseofMoon": "Waxing Crescent",
"hemisphere": "North",
"current_time": {
"hour": "18",
"minute": "08"
},
"sunrise": {
"hour": "6",
"minute": "27"
},
"sunset": {
"hour": "20",
"minute": "23"
}
},
"sun_phase": {
"sunrise": {
"hour": "5",
"minute": "24"
},
"sunset": {
"hour": "20",
"minute": "28"
}
},
"history": {
"date": {
"pretty": "July 11, 2015",