Hi all, I am trying to get input from a web server to fill a variable in my game. What I am doing is setting the current weather in my game to the current local weather of the user. I am using openweathermap.org and the data is returned as JSON formatted data.
Hi all,
I am trying to get input from a web server to fill a variable in my game.
What I am doing is setting the current weather in my game to the current local weather of the user.
I am using openweathermap.org and the data is returned as JSON formatted data.
How can I get the game to us the API call to get the data and parse the JSON into java script variables for my use? I have been trying to figure this out but don't know where to start.
Here is an example of the API call.
I have removed the actual APPID because I am limited on how many I can use a day, so this link will not work.
api.openweathermap.org/data/2.5/weather?zip={44614},{us}&APPID=
Here is an example of the result:
Thank you in advance for any help you might be able to give.
RPG Maker Web attachments are mirrored locally when available. Other external links remain hosted by their original creator or third-party service.