last worked in weather API

This commit is contained in:
dev sp
2024-02-17 07:38:29 +00:00
parent 10e2829ced
commit 12c6a9584c
5 changed files with 725 additions and 205 deletions

View File

@@ -60,7 +60,7 @@
async function getWeatherData(city) {
const apiKey = 'aed8dd87581613e1d2bbbf63eeb618da';
const apiUrl = `https://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}`;
const apiUrl = `https://api.openweathermap.org/data/2.5/weather?q=Los%20Angeles&appid=${apiKey}`;
try {
const response = await fetch(apiUrl);