Pass data from angular to Node red query string and get data in Node red

Hello,

Can we pass data from angular to node red in query string and get that data on node red initialization or before the api for getting flow is called?

Thanks.

Assuming you are using Dashboard, all of the form or input nodes pass their data back to Node-RED. If you are using a custom ui_template, you will want to look at the send function.. there is some stuff on my blog and in plenty of other places.

Not entirely clear what you mean there. In general, to get data early in initialisation, it needs to be loaded by flows on the first tab using inject nodes with the appropriate setting. You can also use the file store for variables which will be reloaded at startup. MQTT is also useful - with retained messages and an MQTT-in node subscribing to the right topics, flows will be triggered by those topics on startup.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.