All right I've got a fix for the code. If you want to try it out, go to the
.node-red/node_modules/node-red-contrib-satellites
folder and edit satellites.js
go to line 76 which is var satellites = [];
and add the following
// override tle1 if passed suitable value
if ('satid' in msg) {
if ( (typeof msg.satid === 'string') && (msg.satid.length < 1024) ) {
node.satid = msg.satid
}
}
// override tle1 if passed suitable value
if ('tle1' in msg) {
if ( (typeof msg.tle1 === 'string') && (msg.tle1.length < 1024) ) {
node.tle1 = msg.tle1
}
}
// override tle1 if passed suitable value
if ('tle2' in msg) {
if ( (typeof msg.tle2 === 'string') && (msg.tle2.length < 1024) ) {
node.tle2 = msg.tle2
}
}
Save the file and stop/start NR then try the second flow (using msg.tle1/2
) that @afelix provided.
Let me know if it works for you.