joepavitt / node-red-satellites

A web map app for Node-RED to put blobs on
Apache License 2.0
9 stars 12 forks source link

Example of an http-request node feeding the TLE node #8

Closed juggledad closed 4 years ago

juggledad commented 4 years ago

This example uses an 'http-request' to get the satellite id, tle1 and tle2 data. The results come back as a '\n' seperated string. The msg is fed into a 'split' node and then to a 'switch' node. The 'switch' node sends each of the four parts - coming from the 'join' - to seperate 'change' nodes to move the payload to the correct msg variable . For example the first msg part is the satellite ID so it is moved to msg.satid.

All four msgs feed a 'join' node and then to another 'change' node that sets msg.payload to a timestamp. Finally the msg is feed into the 'TLE' node to get the results.

dceejay commented 4 years ago

Given the other example - Is it ok to close this PR ?

juggledad commented 4 years ago

sure, I'll close it