Skip to content

Commit

Permalink
http to https
Browse files Browse the repository at this point in the history
  • Loading branch information
lyarov22 committed Aug 22, 2024
1 parent 1507933 commit 0b62df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const lon = 76.95;
const apiKey = 'd3af57dad31e71d00ca10d9816e1fa9b';
const airApiKey = '2722587e6b20d2867c7951e25b079e467f18a370';

const url = `http://api.openweathermap.org/data/3.0/onecall?lat=${lat}&lon=${lon}&exclude=minutely,alerts&appid=${apiKey}&lang=ru&units=metric`;
const airPollutionUrl = `http://api.waqi.info/feed/almaty?token=${airApiKey}`
const url = `https://api.openweathermap.org/data/3.0/onecall?lat=${lat}&lon=${lon}&exclude=minutely,alerts&appid=${apiKey}&lang=ru&units=metric`;
const airPollutionUrl = `https://api.waqi.info/feed/almaty?token=${airApiKey}`

function getWeatherIconUrl(weatherIconId) {
return `https://openweathermap.org/img/wn/${weatherIconId}@4x.png`;
Expand Down

0 comments on commit 0b62df0

Please sign in to comment.