RPG Maker Forums

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:Example API JSON RESPONSE.PNG


Thank you in advance for any help you might be able to give.

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top