Last active
July 9, 2016 19:51
-
-
Save vielmetti/6329ea5a49dadd2f106980a20727d16e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"7650c171.7d689","type":"worldmap","z":"8eb182d8.a1396","lat":"42","lon":"-83","zoom":"10","layer":"OSM grey","cluster":"0","maxage":"","name":"dump1090","x":523,"y":257,"wires":[]},{"id":"ee330e28.3c574","type":"http request","z":"8eb182d8.a1396","name":"","method":"GET","ret":"obj","url":"http://localhost/dump1090/data/aircraft.json","tls":"","x":282,"y":101,"wires":[["14de66e2.5e2cb9"]]},{"id":"d2a72592.26f198","type":"inject","z":"8eb182d8.a1396","name":"","topic":"","payload":"","payloadType":"str","repeat":"8","crontab":"","once":true,"x":125,"y":100,"wires":[["ee330e28.3c574"]]},{"id":"14de66e2.5e2cb9","type":"function","z":"8eb182d8.a1396","name":"Split array into individual planes","func":"var m = [];\nfor (var i in msg.payload.aircraft) {\n m.push({payload:msg.payload.aircraft[i]});\n}\nreturn [m];","outputs":"1","noerr":0,"x":516,"y":105,"wires":[["399c6010.3cce7"]]},{"id":"399c6010.3cce7","type":"change","z":"8eb182d8.a1396","name":"","rules":[{"t":"set","p":"payload.name","pt":"msg","to":"payload.hex","tot":"msg"},{"t":"set","p":"payload.bearing","pt":"msg","to":"payload.track","tot":"msg"},{"t":"set","p":"payload.icon","pt":"msg","to":"plane","tot":"str"},{"t":"set","p":"payload.layer","pt":"msg","to":"ADSB","tot":"str"},{"t":"delete","p":"payload.track","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":197,"y":227,"wires":[["7650c171.7d689","966a8bf1.679ac8"]]},{"id":"966a8bf1.679ac8","type":"debug","z":"8eb182d8.a1396","name":"","active":true,"console":"false","complete":"payload","x":523.5,"y":197,"wires":[]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this flow plots planes from dump1090-mutability onto a Node-RED "worldmap".