Skip to content

Commit

Permalink
Revert "The information is now a full URL"
Browse files Browse the repository at this point in the history
Google changed its mind.

This reverts commit 2376437.
  • Loading branch information
jd committed Jun 8, 2011
1 parent a2f12ab commit d29ccfd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion google-weather.el
Expand Up @@ -47,6 +47,10 @@
"www.google.com/ig/api"
"URL of the Google Weather API.")

(defconst google-weather-image-url
"http://www.google.com"
"URL prefix for images.")

(defcustom google-weather-unit-system-temperature-assoc
'(("SI" . "")
("US" . ""))
Expand Down Expand Up @@ -173,7 +177,8 @@ See `google-weather-retrieve-data' for the use of EXPIRE-TIME."
`(,forecast-encoded-date
(low ,(google-weather-assoc 'low forecast))
(high ,(google-weather-assoc 'high forecast))
(icon ,(google-weather-assoc 'icon forecast))
(icon ,(concat google-weather-image-url
(google-weather-assoc 'icon forecast)))
(condition ,(google-weather-assoc 'condition forecast)))))
(loop for entry in (google-weather-data->weather data)
when (eq (car entry) 'forecast_conditions)
Expand Down

0 comments on commit d29ccfd

Please sign in to comment.