6

I have a simulator application that continuously spits out data, formatted in JSON, to a given host name and port number (UDP). I would like to be able to point the simulator output to a Django web application so that I can monitor/process the data as it comes in.

How do I receive and process data in real time using Django? What tools or packages are available to accomplish this? I did come across this answer: How to serve data from UDP stream over HTTP in Python?, but I don't completely understand.

Ex: Similar to this page: http://money.cnn.com/data/markets/

ALSO, I don't need to store any of the streaming data in a database. I just need to perform lookups based on the streaming data. Maybe it's not a Django issue at all?

Community
  • 1
  • 1
denvaar
  • 2,174
  • 2
  • 22
  • 26

1 Answers1

0

Using Javascript. Create a webpage with all the results, and then use javascript to collect the data from the page, and update it every X seconds.

Have the webpage be the JSON data, and the javascript grab it an interpret it. get html code using javascript with a url

Then update the page using javascript. ww3 schools has great JS tutorials

Community
  • 1
  • 1