Get specific entities in message

Hi all,

I'm quite new to Node Red and like it already.
What I want to achieve is to send a message with the following contents;
If the train is delayed: yes/no
The departure time of the train
The departure platform of the train

I can get these entities from a sensor from the Dutch National Railroads:

As I yet don't know how to get this specific information inside a message notification I would like some help

There’s a great page in the docs (Working with messages : Node-RED) that will explain how to use the debug panel to find the right path to any data item.

Pay particular attention to the part about the buttons that appear under your mouse pointer when you over hover a debug message property in the sidebar.

BX00Cy7yHi

1 Like

In the data you show above there is a msg.data.attributes.departure_delay.

You probably want to get this into msg.payload.departure_delay to pass on to a notification.

You can use a change node for that.

1 Like

Thanks a lot, that will be definitely what I was looking for!
Just didn't search properly :stuck_out_tongue_winking_eye:

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