Getting data from openweather API
-
Hi,
I’m currently trying to make a weather app and I need to get data from openweathermap.org 's API.
Here’s my current code:

First, it fetches the users cords and stores it in 2 different vars.Then, it fetches data from the api using the "fetch web page as"block. Lastly, it asks chatGPT to gen a weather report.
Problem:
The fetch block always returns an error even though the api is up.Is there a way to fix it/another way to fetch from an api?
Thanks!
-
Hi,
I’m currently trying to make a weather app and I need to get data from openweathermap.org 's API.
Here’s my current code:

First, it fetches the users cords and stores it in 2 different vars.Then, it fetches data from the api using the "fetch web page as"block. Lastly, it asks chatGPT to gen a weather report.
Problem:
The fetch block always returns an error even though the api is up.Is there a way to fix it/another way to fetch from an api?
Thanks!
@jasperleung-python-717f6cde
Can you please share the project link? We will check why there is an error. Thank you
-
@jasperleung-python-717f6cde
Can you please share the project link? We will check why there is an error. Thank you
Here’s the project link:
https://play.creaticode.com/projects/694b937608b890c381af93e0
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login