Last active
August 29, 2015 14:22
-
-
Save Andygmb/686bb1a69cb0e1e94da4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script> | |
$.ajax({ | |
url:"https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20%28select%20woeid%20from%20geo.places%281%29%20where%20text=%22London%22%29%20and%20u=%27c%27&format=json", | |
success:function(data, status, xhr){ | |
console.log(data["query"]["results"]["channel"]["atmosphere"]) | |
} | |
}) | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> | |
{humidity: "48", pressure: "982.05", rising: "1", visibility: "9.99"} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment