2017-06-30, 07:43 PM
I am puzzled and have not managed to figure out why this is:
I have a web socket
[{"id":"2027b6ec.669a3a","type":"websocket in","z":"c504ca30.ff7d08","name":"","server":"5884b7b4.0464d8","client":"","x":175,"y":28,"wires":[["2f03a1ca.9cf7de","b143f8ab.382258","c99866e.b8a3f98"]]},{"id":"5884b7b4.0464d8","type":"websocket-listener","z":"","path":"ws://localhost:3000/signalk/v1/stream","wholemsg":"false"}]
it produces this output:
2017-06-30, 11:18:56 AMnode: c99866e.b8a3f98msg.payload : string[375]
"{"context":"vessels.urn:mrn:imo:mmsi:31602354","updates":[{"source":{"label":"OPkplex"},"timestamp":"2017-06-30T18:18:56.513Z","values":[{"path":"navigation.position","value":{"source":{"type":"NMEA0183","sentence":"GGA","label":"signalk-parser-nmea0183","talker":"GP"},"timestamp":"2017-06-30T18:18:00.000Z","longitude":-123.41748333333334,"latitude":48.67388833333333}}]}]}"
a duplicate websocket node produces this output:
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : string[6]
"48.674"
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ navigation.gnss: object }
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ environment.inside.temperature: 293.53 }
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : string[6]
"48.674"
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ navigation.courseOverGroundTrue: 3.8018507096192478, navigation.speedOverGround: 0.23664450439438559, navigation.magneticVariation: 0 }
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ environment.depth.belowTransducer: 4.5 }
Now I am pretty sure I screwed something up somewhere but for the life of me I can't figure it out ..... both web sockets are identical, one was copy/pasted from the other, yet the debug output of the two are completely different.
Can anybody help me explain why the same nodes produce completely different outputs ?
I have a web socket
[{"id":"2027b6ec.669a3a","type":"websocket in","z":"c504ca30.ff7d08","name":"","server":"5884b7b4.0464d8","client":"","x":175,"y":28,"wires":[["2f03a1ca.9cf7de","b143f8ab.382258","c99866e.b8a3f98"]]},{"id":"5884b7b4.0464d8","type":"websocket-listener","z":"","path":"ws://localhost:3000/signalk/v1/stream","wholemsg":"false"}]
it produces this output:
2017-06-30, 11:18:56 AMnode: c99866e.b8a3f98msg.payload : string[375]
"{"context":"vessels.urn:mrn:imo:mmsi:31602354","updates":[{"source":{"label":"OPkplex"},"timestamp":"2017-06-30T18:18:56.513Z","values":[{"path":"navigation.position","value":{"source":{"type":"NMEA0183","sentence":"GGA","label":"signalk-parser-nmea0183","talker":"GP"},"timestamp":"2017-06-30T18:18:00.000Z","longitude":-123.41748333333334,"latitude":48.67388833333333}}]}]}"
a duplicate websocket node produces this output:
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : string[6]
"48.674"
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ navigation.gnss: object }
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ environment.inside.temperature: 293.53 }
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : string[6]
"48.674"
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ navigation.courseOverGroundTrue: 3.8018507096192478, navigation.speedOverGround: 0.23664450439438559, navigation.magneticVariation: 0 }
2017-06-30, 11:21:41 AMnode: 37d776e.006768amsg.payload : Object
{ environment.depth.belowTransducer: 4.5 }
Now I am pretty sure I screwed something up somewhere but for the life of me I can't figure it out ..... both web sockets are identical, one was copy/pasted from the other, yet the debug output of the two are completely different.
Can anybody help me explain why the same nodes produce completely different outputs ?