Skip to content

Commit

Permalink
try logging the temp
Browse files Browse the repository at this point in the history
  • Loading branch information
taramk committed Dec 27, 2023
1 parent 5ab2f43 commit a3e60be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
45: Skycons.FOG,
48: Skycons.FOG
};
return skyconMap[weatherCode] || Skycons.CLOUDY; // Default to CLOUDY if code not found
return skyconMap[weatherCode] || Skycons.CLOUDY;
}

function formatDateTime() {
Expand Down Expand Up @@ -108,6 +108,8 @@
var weatherCode = data.daily.weather_code[i];
var skyconType = getSkycon(weatherCode);
skycons.set('day' + i, skyconType);
var maxTemp = data.daily.temperature_2m_max[i];
console.log(maxTemp);
$('#temp' + i).html(Math.round(data.daily.temperature_2m_max[i]) + '°F');
}
skycons.play();
Expand Down

0 comments on commit a3e60be

Please sign in to comment.