San Diego Bay Restaurant(480) 839-2991Mexican, Seafood
Del YaquiMexican
Loreto’s Mexican Food(480) 491-2500Mexican
Los Taquitos(480) 753-4370Mexican, Breakfast & Brunch
Waffle House(480) 838-6407Breakfast & Brunch, Diners, American (Traditional)
Poliberto’s Taco Shop(480) 775-6484Mexican
Don’t Get Lost! Check Guadalupe, Arizona Here
Be Prepared! Check Weather at Guadalupe, Arizona Here
function weatherBallon( cityID ) { // fetch('https://api.openweathermap.org/data/2.5/weather?id=' + cityID+ '&appid=' + key) fetch('http://api.openweathermap.org/data/2.5/weather?q=Guadalupe%2C+Arizona&appid=ab6dec4823ef2eb3ecbd37f5ba70289e') .then(function(resp) { return resp.json() }) // Convert data to json .then(function(data) { drawWeather(data); }) .catch(function() { // catch any errors }); } function drawWeather( d ) { var celcius = Math.round(parseFloat(d.main.temp)-273.15); var fahrenheit = Math.round(((parseFloat(d.main.temp)-273.15)*1.8)+32); var description = d.weather[0].description;
document.getElementById('description').innerHTML = description; document.getElementById('temp').innerHTML = celcius + '°'; document.getElementById('location').innerHTML = d.name;
if( description.indexOf('rain') > 0 ) { document.body.className = 'rainy'; } else if( description.indexOf('cloud') > 0 ) { document.body.className = 'cloudy'; } else if( description.indexOf('sunny') > 0 ) { document.body.className = 'sunny'; } else { document.body.className = 'clear'; } } window.onload = function() { weatherBallon( 6167865 ); }