add dtc and fixed some things

This commit is contained in:
Mathieu Moran
2023-11-03 21:41:05 -04:00
parent 8514c8c9a3
commit 86e6de5bab
6 changed files with 155 additions and 21 deletions
+8 -2
View File
@@ -13,6 +13,7 @@ chart = new Chart(ctx, {
}]
},
options: {
responsive: true,
scales: {
x: {
reverse: true,
@@ -64,13 +65,18 @@ socket.on('obd_speed', function(data) {
}
// Update the chart
chart.update();
});
socket.on('obd_rpm', function(data) {
console.log("obd rpm "+data);
const status = document.getElementById('obd-rpm');
status.innerHTML = data;
});
socket.on('obd_error', function(data) {
console.log(data);
console.log("obd errors "+data);
const status = document.getElementById('obd-error');
status.innerHTML = data;
});