We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32b080f commit 9882d2aCopy full SHA for 9882d2a
1 file changed
openxc/tools/static/js/dashboard.js
@@ -6,13 +6,15 @@ $(document).ready(function() {
6
socket.on('vehicle data', function(msg, cb) {
7
// console.log(msg);
8
9
- if (!msg.hasOwnProperty('name')){
+ if (!msg.hasOwnProperty('name')) {
10
msg.name = 'Raw-' + msg.bus + '-0x' + msg.id.toString(16);
11
msg.value = msg.data;
12
}
13
- if (msg.hasOwnProperty('event')){
+
14
+ if (msg.hasOwnProperty('event')) {
15
msg.value = msg.value + ': ' + msg.event
16
17
18
if (!(msg.name in dataPoints)) {
19
dataPoints[msg.name] = {
20
current_data: undefined,
0 commit comments