Updating Data From a Live Feed
in
Programming Questions
•
2 years ago
Hello Everyone,
First I have to say that I am super new to processing so excuse me if this is a basic question.
What I intend to do is update some data from an external JSON feed into a processing sketch.
I have no problem in doing that, what I do not understand is how to push updates to the sketch.
Lets say its a financial information, how can I tell processing to keep checking the JSON to look for changes?
Should I put the code inside the draw() function so it will keep checking for updates? In that case that will create lots of calls. I can probably limit them with an If() but I wanted to know if there is another solution for this.
Thanks a lot!
1