Skip to content

Instantly share code, notes, and snippets.

@dmalawey
Created September 3, 2020 06:45
Show Gist options
  • Save dmalawey/48a23761f58d5c1ca681ecd32faf5bd8 to your computer and use it in GitHub Desktop.
Save dmalawey/48a23761f58d5c1ca681ecd32faf5bd8 to your computer and use it in GitHub Desktop.
nodered flow for retrieving csv info and sending mqtt message
[{"id":"22de6241.99d99e","type":"tab","label":"GamePad","disabled":false,"info":""},{"id":"3f6df30c.f1a0bc","type":"csv","z":"22de6241.99d99e","name":"","sep":"\\t","hdrin":true,"hdrout":"none","multi":"one","ret":"\\n","temp":"","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":370,"y":280,"wires":[["51721a8b.c03934","6003e56b.07b51c"]]},{"id":"d4cc4cd7.6b652","type":"file in","z":"22de6241.99d99e","name":"","filename":"/home/pi/piScuttle/data2.csv","format":"utf8","chunk":false,"sendError":false,"encoding":"none","x":260,"y":200,"wires":[["3f6df30c.f1a0bc"]]},{"id":"ab78c8b0.7a8e18","type":"inject","z":"22de6241.99d99e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":110,"y":120,"wires":[["d4cc4cd7.6b652"]]},{"id":"51721a8b.c03934","type":"mqtt out","z":"22de6241.99d99e","name":"","topic":"SCUTTLE/pi/gp2","qos":"2","retain":"","broker":"1cc0cc73.690154","x":470,"y":440,"wires":[]},{"id":"6003e56b.07b51c","type":"debug","z":"22de6241.99d99e","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":460,"y":380,"wires":[]},{"id":"1cc0cc73.690154","type":"mqtt-broker","z":"","name":"hiveMQ","broker":"broker.mqttdashboard.com","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"DPM/TEST","birthQos":"0","birthPayload":"pi_connected","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
@dmalawey
Copy link
Author

dmalawey commented Sep 4, 2020

this video shows how the code is used

https://youtu.be/6eDT6jU8MtU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment