Updated flow that solves the timestamp issue, and shows that the prepopulated values from the node config take precedence over any configuration set by the message object. If you check the code, it verifies it doesn't care about msg.tle1
and msg.tle2
.
[{"id":"d654e484.15bf58","type":"inject","z":"1f20f9bb.524146","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":1220,"wires":[["4db729cd.98173"]]},{"id":"4db729cd.98173","type":"http request","z":"1f20f9bb.524146","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://celestrak.com/satcat/tle.php?CATNR=44109","tls":"","persist":false,"proxy":"","authType":"","x":150,"y":1280,"wires":[["b6d25ac1.e0c27"]]},{"id":"b6d25ac1.e0c27","type":"split","z":"1f20f9bb.524146","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":150,"y":1340,"wires":[["dea2ab0.a701dd8"]]},{"id":"4e14cbcf.6e9724","type":"tle","z":"1f20f9bb.524146","satid":"BLUEWALKER 1 ","tle1":"1 44105U 19018AD 20099.11563392 .00001300 00000-0 43406-4 0 9998","tle2":"2 44105 97.4795 168.9341 0059630 107.2691 253.5087 15.31277171 57050","coordsys":"latlongdeg","name":"(TLE prefilled with BLUEWALKER 1 data)","x":240,"y":1540,"wires":[["b4494ddc.8d245"]]},{"id":"b4494ddc.8d245","type":"debug","z":"1f20f9bb.524146","name":"Message coming out of TLE node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":220,"y":1600,"wires":[]},{"id":"dea2ab0.a701dd8","type":"switch","z":"1f20f9bb.524146","name":"","property":"parts.index","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":130,"y":1400,"wires":[["45092131.d93f58"],["5205a604.c26b3"],["721315d6.d00c4c"],["89f21cab.96098"]]},{"id":"45092131.d93f58","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"satid","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1340,"wires":[["1df4d812.287138"]]},{"id":"5205a604.c26b3","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"tel1","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1380,"wires":[["1df4d812.287138"]]},{"id":"721315d6.d00c4c","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"tel2","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1420,"wires":[["1df4d812.287138"]]},{"id":"1df4d812.287138","type":"join","z":"1f20f9bb.524146","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":590,"y":1400,"wires":[["320515f8.80ca82"]]},{"id":"89f21cab.96098","type":"change","z":"1f20f9bb.524146","name":"set timestamp","rules":[{"t":"set","p":"timestamp","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1460,"wires":[["1df4d812.287138"]]},{"id":"87d12307.e68de","type":"debug","z":"1f20f9bb.524146","name":"Message going into TLE node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1010,"y":1460,"wires":[]},{"id":"320515f8.80ca82","type":"change","z":"1f20f9bb.524146","name":"put timestamp back in payload","rules":[{"t":"set","p":"payload","pt":"msg","to":"timestamp","tot":"msg"},{"t":"delete","p":"timestamp","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":1460,"wires":[["4e14cbcf.6e9724","87d12307.e68de"]]}]
Edit:
Flow that instead used msg.tle1
/2 rather than msg.tel1
/2, no difference in output
[{"id":"d654e484.15bf58","type":"inject","z":"1f20f9bb.524146","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":1220,"wires":[["4db729cd.98173"]]},{"id":"4db729cd.98173","type":"http request","z":"1f20f9bb.524146","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://celestrak.com/satcat/tle.php?CATNR=44109","tls":"","persist":false,"proxy":"","authType":"","x":150,"y":1280,"wires":[["b6d25ac1.e0c27"]]},{"id":"b6d25ac1.e0c27","type":"split","z":"1f20f9bb.524146","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":150,"y":1340,"wires":[["dea2ab0.a701dd8"]]},{"id":"4e14cbcf.6e9724","type":"tle","z":"1f20f9bb.524146","satid":"BLUEWALKER 1 ","tle1":"1 44105U 19018AD 20099.11563392 .00001300 00000-0 43406-4 0 9998","tle2":"2 44105 97.4795 168.9341 0059630 107.2691 253.5087 15.31277171 57050","coordsys":"latlongdeg","name":"(TLE prefilled with BLUEWALKER 1 data)","x":240,"y":1540,"wires":[["b4494ddc.8d245"]]},{"id":"b4494ddc.8d245","type":"debug","z":"1f20f9bb.524146","name":"Message coming out of TLE node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":220,"y":1600,"wires":[]},{"id":"dea2ab0.a701dd8","type":"switch","z":"1f20f9bb.524146","name":"","property":"parts.index","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":130,"y":1400,"wires":[["45092131.d93f58"],["5205a604.c26b3"],["721315d6.d00c4c"],["89f21cab.96098"]]},{"id":"45092131.d93f58","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"satid","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1340,"wires":[["1df4d812.287138"]]},{"id":"5205a604.c26b3","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"tle1","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1380,"wires":[["1df4d812.287138"]]},{"id":"721315d6.d00c4c","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"tle2","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1420,"wires":[["1df4d812.287138"]]},{"id":"1df4d812.287138","type":"join","z":"1f20f9bb.524146","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":590,"y":1400,"wires":[["320515f8.80ca82"]]},{"id":"89f21cab.96098","type":"change","z":"1f20f9bb.524146","name":"set timestamp","rules":[{"t":"set","p":"timestamp","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1460,"wires":[["1df4d812.287138"]]},{"id":"87d12307.e68de","type":"debug","z":"1f20f9bb.524146","name":"Message going into TLE node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1010,"y":1460,"wires":[]},{"id":"320515f8.80ca82","type":"change","z":"1f20f9bb.524146","name":"put timestamp back in payload","rules":[{"t":"set","p":"payload","pt":"msg","to":"timestamp","tot":"msg"},{"t":"delete","p":"timestamp","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":1460,"wires":[["4e14cbcf.6e9724","87d12307.e68de"]]}]
Flow that has an empty TLE node instead (no output, all values NaN):
[{"id":"d654e484.15bf58","type":"inject","z":"1f20f9bb.524146","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":140,"y":1220,"wires":[["4db729cd.98173"]]},{"id":"4db729cd.98173","type":"http request","z":"1f20f9bb.524146","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://celestrak.com/satcat/tle.php?CATNR=44109","tls":"","persist":false,"proxy":"","authType":"","x":150,"y":1280,"wires":[["b6d25ac1.e0c27"]]},{"id":"b6d25ac1.e0c27","type":"split","z":"1f20f9bb.524146","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":150,"y":1340,"wires":[["dea2ab0.a701dd8"]]},{"id":"4e14cbcf.6e9724","type":"tle","z":"1f20f9bb.524146","satid":"","tle1":"","tle2":"","coordsys":"latlongdeg","name":"(TLE not prepopulated)","x":180,"y":1540,"wires":[["b4494ddc.8d245"]]},{"id":"b4494ddc.8d245","type":"debug","z":"1f20f9bb.524146","name":"Message coming out of TLE node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":220,"y":1600,"wires":[]},{"id":"dea2ab0.a701dd8","type":"switch","z":"1f20f9bb.524146","name":"","property":"parts.index","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"num"},{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":4,"x":130,"y":1400,"wires":[["45092131.d93f58"],["5205a604.c26b3"],["721315d6.d00c4c"],["89f21cab.96098"]]},{"id":"45092131.d93f58","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"satid","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1340,"wires":[["1df4d812.287138"]]},{"id":"5205a604.c26b3","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"tle1","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1380,"wires":[["1df4d812.287138"]]},{"id":"721315d6.d00c4c","type":"change","z":"1f20f9bb.524146","name":"","rules":[{"t":"set","p":"tle2","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":350,"y":1420,"wires":[["1df4d812.287138"]]},{"id":"1df4d812.287138","type":"join","z":"1f20f9bb.524146","name":"","mode":"auto","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":"\\n","joinerType":"str","accumulate":false,"timeout":"","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":590,"y":1400,"wires":[["320515f8.80ca82"]]},{"id":"89f21cab.96098","type":"change","z":"1f20f9bb.524146","name":"set timestamp","rules":[{"t":"set","p":"timestamp","pt":"msg","to":"","tot":"date"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":1460,"wires":[["1df4d812.287138"]]},{"id":"87d12307.e68de","type":"debug","z":"1f20f9bb.524146","name":"Message going into TLE node","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1010,"y":1460,"wires":[]},{"id":"320515f8.80ca82","type":"change","z":"1f20f9bb.524146","name":"put timestamp back in payload","rules":[{"t":"set","p":"payload","pt":"msg","to":"timestamp","tot":"msg"},{"t":"delete","p":"timestamp","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":690,"y":1460,"wires":[["4e14cbcf.6e9724","87d12307.e68de"]]}]