# WLED - Send payload to scrolling Text effect?

**URL:** https://discourse.nodered.org/t/wled-send-payload-to-scrolling-text-effect/76883
**Category:** General
**Created:** [23 March 2023 21:55 UTC](https://discourse.nodered.org/t/wled-send-payload-to-scrolling-text-effect/76883 "2023-03-23T21:55:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![BernardS](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@BernardS](https://discourse.nodered.org/u/BernardS)
#### Post date: [23 March 2023 21:55 UTC](https://discourse.nodered.org/t/wled-send-payload-to-scrolling-text-effect/76883/1 "2023-03-23T21:55:00Z")

</div>

Hello Fellow NodeRed users,

I have build a Led matrix display 8x32 which I'm driving with an ESP32 and Wled. I want to display different scrolling messages from Home Assistant via NodeRed.

I have managed, to send the Text via a POST Http request. Im sending this payload from a ChangeNode.

```auto
{
    "on": true,
    "bri": 50,
    "seg": [
        {
            "fx": 122,
            "pal": 2,
            "col": [
                [
                    0,
                    0,
                    255
                ]
            ],
            "n": "BlueText"
        }
    ]
}

```

and I get what I want.

Now, I would like to send a specific Payload based on different events to this change Node and have the text displayed on the WLED Matrix Screen.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8feb9d43577ec87e15c92fd1d1df631be59ba49f.png)

in order to achive this, I have changed in the above Json the hard coded "BlueText" with {{payload}} but for some reason is not working. The matrix is displaying exact the payload text within currly brackets instead the payload itself.

What do i'm doing wrong? Please guide me in the right direction. Thank you.

```auto
{
    "on": true,
    "bri": 50,
    "seg": [
        {
            "fx": 122,
            "pal": 2,
            "col": [
                [
                    255,
                    0,
                    0
                ]
            ],
            "n": "{{Payload}}"
        }
    ]
}

```

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [23 March 2023 22:02 UTC](https://discourse.nodered.org/t/wled-send-payload-to-scrolling-text-effect/76883/2 "2023-03-23T22:02:55Z")

</div>

Change the node to use JSONata J:  
with

```auto
{
    "on": true,
    "bri": 50,
    "seg": [
        {
            "fx": 122,
            "pal": 2,
            "col": [
                [
                    255,
                    0,
                    0
                ]
            ],
            "n": $$.payload
        }
    ]
}

```

---

<div class="post-metadata">

### Author: ![BernardS](https://avatars.discourse-cdn.com/v4/letter/b/edb3f5/32.png) [@BernardS](https://discourse.nodered.org/u/BernardS)
#### Post date: [23 March 2023 22:06 UTC](https://discourse.nodered.org/t/wled-send-payload-to-scrolling-text-effect/76883/3 "2023-03-23T22:06:10Z")

</div>

Oh my... that did the Trick!

Thank you E1cid for your answer! Have a great evening!

If somebody else needs this, the complete config of the Change node looks like this.

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/d/3d6f6f681c189e31131c295498acca5f4e77fc8a.png)

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [6 April 2023 22:06 UTC](https://discourse.nodered.org/t/wled-send-payload-to-scrolling-text-effect/76883/4 "2023-04-06T22:06:41Z")

</div>

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