Rather than requesting new data every 5 seconds, we could consider opening a request to the server that will only be completed if the data changes (and otherwise will time out and be repeated by the client). Here's a guide to doing that with bottle.
Alternatively, we could switch to node.js for the backend and use socket.io to update via websockets.
Rather than requesting new data every 5 seconds, we could consider opening a request to the server that will only be completed if the data changes (and otherwise will time out and be repeated by the client). Here's a guide to doing that with bottle.
Alternatively, we could switch to node.js for the backend and use socket.io to update via websockets.