Forza-data-tools icon indicating copy to clipboard operation
Forza-data-tools copied to clipboard

JSON Data doesn't update in real time?

Open Rapid99APB opened this issue 4 years ago • 4 comments

So I have everything working as far as I can tell, but the JSON data doesn't seem to update in real time. The browser window is directed to http://localhost:8080/forza It shows all of the Telemetry data from the vehicle at that specific moment in time; but none of the values will update unless I manually refresh the page. I tried viewing in both Chrome and Firefox, making sure all extensions were disabled, to no avail. I also tried setting FH5 to LoopbackExempt via CMD, though that didn't seem to help either. Should I be trying to view the JSON data from a different program or something?

Rapid99APB avatar Jan 15 '22 05:01 Rapid99APB

I have the same issue, tried different browsers as well and no realtime data is shown even though I could receive realtime data from another project on my default browser.

revdeath avatar Mar 24 '22 14:03 revdeath

browser default is to not refresh. other programmes lets say written it nodejs or some electron app will on data recieved refresh data on screen. you can mimic that by adding a line to the webpage at runtime i believe auto refreshing every 1 sec or less. but im not 100% sure that would be doable on the main localhost:8080 unless its a page being created in the app itself then it can be changed to have this

regtable avatar Aug 02 '22 17:08 regtable

so after a quick look yeah it is the 8080 dash inbuilt


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    
    <meta http-equiv="refresh" content="1" > (<------ ADD THIS LINE HERE)
    
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Forza Telemetry Data</title>
    <!-- Plotly.js -->
    <script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
</head>


regtable avatar Aug 02 '22 17:08 regtable

looking even closer yet var t=setInterval(getData,100); has a 100 ms loop that should be firing to pull and refresh graph data 🤔

regtable avatar Aug 02 '22 17:08 regtable