Este é um projeto simples que consome a API de previsão do tempo da WeatherAPI para fornecer informações meteorológicas com base no nome da cidade inserido pelo usuário.
Consulta por Cidade: O usuário insere o nome de uma cidade e obtém informações meteorológicas atuais. Dados Exibidos: Temperatura, velocidade do vento e umidade relativa do ar. Integração com API: A aplicação utiliza a API da WeatherAPI para buscar dados climáticos.
HTML CSS JavaScript Como Usar Obtenha sua chave da API: Para que a aplicação funcione corretamente, você precisará de uma chave de API. Cadastre-se gratuitamente em WeatherAPI para obter a sua. Site para cadastro: https://www.weatherapi.com/signup.aspx
Clone este repositório.
No arquivo JavaScript, substitua 'SUA_API_KEY_AQUI' pela sua chave da API:
Execução: Abra o arquivo index.html em seu navegador para visualizar a aplicação. (Caso você não saiba como abrir, em meu VSCode eu utilizo a extensão "Live Server" e as teclas (Alt+L, Alt+O) para abrir o index.html)
Ao inserir o nome de uma cidade, como "São Paulo", a aplicação exibirá a temperatura atual, velocidade do vento e umidade da cidade.
Certifique-se de que a chave da API seja mantida privada e usada com responsabilidade. A WeatherAPI possui limites de uso em sua versão gratuita, portanto, verifique sua cota diária ao utilizar a API.
This is a simple project that consumes the WeatherAPI weather forecast API to provide meteorological information based on the city name entered by the user.
City Search: The user enters the name of a city and obtains current weather information. Displayed Data: Temperature, wind speed, and relative humidity. API Integration: The application uses the WeatherAPI to retrieve weather data.
HTML CSS JavaScript
Obtain your API key: For the application to work correctly, you will need an API key. Sign up for free at WeatherAPI to obtain yours. Signup website: https://www.weatherapi.com/signup.aspx
Clone this repository.
In the JavaScript file, replace 'SUA_API_KEY_AQUI'(YOUR_API_KEY_HERE) with your API key:
Execution: Open the index.html file in your browser to view the application. (If you don't know how to open it, in my VSCode I use the "Live Server" extension and the keys (Alt+L, Alt+O) to open index.html)
When entering the name of a city, such as "San Diego", the application will display the current temperature, wind speed, and humidity of the city.
Make sure the API key is kept private and used responsibly. WeatherAPI has usage limits in its free version, so check your daily quota when using the API.