Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.
Original Source
- Original title: Retrieving data from web JSON
- Original author: tsnyder0928
- Original date: October 27, 2016
- Source thread: https://forums.rpgmakerweb.com/threads/retrieving-data-from-web-json.70214/
- Source forum path: Game Development Engines > RPG Maker Javascript Plugins > JS Plugin Requests
Summary
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.
Archived First Post
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: Protected download
Thank you in advance for any help you might be able to give.
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: Protected download
Thank you in advance for any help you might be able to give.
Downloads / Referenced Files
Log in to download
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadReferenced Images / Attachments
Creator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
0
replies
1
view
Topic Summary
Loading summary...
