Skip to content

Instantly share code, notes, and snippets.

@eggersd
Created October 1, 2015 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eggersd/8159758f688ab52ac753 to your computer and use it in GitHub Desktop.
Save eggersd/8159758f688ab52ac753 to your computer and use it in GitHub Desktop.
NMEA UDP

retrieve NMEA via UDP connection. ...more details later.

[{"id":"451686f0.bae978","type":"debug","name":"","active":false,"console":"false","complete":"payload","x":301,"y":118,"z":"90dc536.f6f23b","wires":[]},{"id":"d1309756.2ecf68","type":"udp in","name":"","iface":"","port":"10110","ipv":"udp4","multicast":"false","group":"","datatype":"utf8","x":107,"y":111,"z":"90dc536.f6f23b","wires":[["451686f0.bae978"]]},{"id":"e64a0386.19b6","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"1","crontab":"","once":false,"x":109,"y":159,"z":"90dc536.f6f23b","wires":[["4c453064.b3bad"]]},{"id":"4c453064.b3bad","type":"function","name":"Format timestamp Function","func":"// Create a Date object from the payload\nvar date = new Date(msg.payload);\n// Change the payload to be a formatted Date string\nmsg.payload = date.toString();\n// Return the message so it can be sent on\nreturn msg;","outputs":"1","valid":true,"x":326.7142639160156,"y":167.8571319580078,"z":"90dc536.f6f23b","wires":[[]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment