Weather Lebanon Data
by Abbas Jaber
HTML
<p id="weather">
</p>
<script>
var callbackFunction = function (data) {
var wind = data.query.results.channel.item.description;
document.getElementById("weather").innerHTML = wind;
console.log(data)
};
</script>
<script src="https://query.yahooapis.com/v1/public/yql?q=select * from weather.forecast where woeid in (select woeid from geo.places(1) where text='beirut, lb')&format=json&callback=callbackFunction"></script>