Trigger when opening webpage

I have the flow setup in node-red. When I click the timestamp button, the dashboard loads all of my data from my dynamodb and works perfectly, but I have to click the timestamp button.

How do I make it so when I load the webpage, this happens automatically?

If you look inside the 'inject' node (i.e. double click it) there's an option [ ] inject once after [ ] seconds.
Check these and it should work for you.

Thanks very much!

Use the ui_control node - it emits a connect event when a new browser connects and you can use that to trigger your flow to (re)populate the dashboard as required.

6 Likes