This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
same object gives different output ?
#1
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 ?
Reply


Messages In This Thread
same object gives different output ? - by JD1 - 2017-06-30, 07:43 PM
RE: same object gives different output ? - by JD1 - 2017-06-30, 10:04 PM
RE: same object gives different output ? - by JD1 - 2017-06-30, 11:50 PM
RE: same object gives different output ? - by JD1 - 2017-07-01, 04:40 AM
RE: same object gives different output ? - by JD1 - 2017-07-04, 08:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)