Skip to content

Commit d39cd39

Browse files
authored
Add link to OpenWeatherMap API
1 parent cba4bdb commit d39cd39

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/blocks/weather.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ impl Weather {
190190
OPENWEATHERMAP_PLACE_ENV.to_string()));
191191
};
192192

193+
// This uses the "Current Weather Data" API endpoint
194+
// Refer to https://openweathermap.org/current
193195
let openweather_url = &format!(
194196
"https://api.openweathermap.org/data/2.5/weather?{location_query}&appid={api_key}&units={units}",
195197
location_query = location_query,

0 commit comments

Comments
 (0)