Skip to content

Commit

Permalink
Merge pull request #66 from dhulsmaninfodatek/master
Browse files Browse the repository at this point in the history
Make openweather map from 2.5 to 3.0, 2.5 gives 401's on free plans
  • Loading branch information
dipu-bd authored Nov 5, 2024
2 parents 81dd0bf + df1566d commit 1d5a1b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const utils = {
const units = UNIT_MAPPINGS[opts.units] || "standard";

return fetch(
`https://api.openweathermap.org/data/2.5/onecall?appid=${opts.apiKey}` +
`https://api.openweathermap.org/data/3.0/onecall?appid=${opts.apiKey}` +
`&lat=${opts.lat}` +
`&lon=${opts.lng}` +
`&units=${units}` +
Expand Down

0 comments on commit 1d5a1b7

Please sign in to comment.