-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Data doesn't update in real time? #4
Comments
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. |
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 |
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>
|
looking even closer yet var t=setInterval(getData,100); has a 100 ms loop that should be firing to pull and refresh graph data 🤔 |
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?
The text was updated successfully, but these errors were encountered: