# Ok, what's going on with this message?

**URL:** <https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811>\
**Category:** General\
**Created:** [14 April 2020 13:40 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811 "2020-04-14T13:40:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 April 2020 13:40 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/1 "2020-04-14T13:40:18Z")

</div>

I've bitten the bullet and am re-writing old flows.

While messing around with one, I am seeing this `payload`

`{"payload":1,"event":{"clientX":367,"clientY":195,"bbox":[327,222,483,174]},"socketid":"AiZlnOlnlm43IvokAAAB","_msgid":"91139a7.46f8c68","colour":"lime","txt":"Enabled","fontclr":"black","topic":"CONTROL"}`

The flow isn't that complicated.

Where is this `"event":{"clientX":367,"clientY":195,"bbox......` coming from?

I can post the part of the flow if desired.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [14 April 2020 13:42 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/2 "2020-04-14T13:42:45Z")

</div>

All we can say is it is coming from a node-red-dashboard node.

Other than that, we can't really say anything else.

I assume this is appearing in the Debug sidebar? I assume you have used all the usual methods for identifying which Debug node that message came from and tracking it back from there?

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 April 2020 13:45 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/3 "2020-04-14T13:45:27Z")

</div>

Well, this is the flow:

```auto
[{"id":"32b67a5d.231c86","type":"inject","z":"1781e581.31721a","name":"Setup","topic":"","payload":"foo","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"3","x":2500,"y":730,"wires":[["49d7ad48.0f8b54"]]},{"id":"49d7ad48.0f8b54","type":"function","z":"1781e581.31721a","name":"Setup","func":"msg = {\n \"colourA\": \"red\",\n \"colourB\": \"lime\",\n \"txtA\": \"Disabled\",\n \"txtB\": \"Enabled\",\n \"txtclrA\": \"black\",\n \"txtclrB\": \"black\",\n \"payloadA\": 0,\n \"payloadB\": 1,\n \"topicSET\": \"CONTROL\"\n}\nreturn msg;","outputs":1,"noerr":0,"x":2630,"y":730,"wires":[["203af629.7c0bba","2dc74b3c.896bc4"]]},{"id":"16f7601f.88c79","type":"ui_button","z":"1781e581.31721a","name":"Push Button 1","group":"fefa8817.8dc6c8","order":1,"width":"3","height":"1","passthru":false,"label":"{{msg.txt}}","tooltip":"","color":"{{msg.fontclr}}","bgcolor":"{{msg.colour}}","icon":"","payload":"X","payloadType":"str","topic":"","x":2660,"y":770,"wires":[["203af629.7c0bba"]]},{"id":"203af629.7c0bba","type":"function","z":"1781e581.31721a","name":"Push Button","func":"var state = context.get(\"STATE\")||0;\n\n// Look for a !X message to get values.\nif (msg.payload != \"X\") //Do this if the message is NOT \"X\"\n{\n //\n //node.warn(\"Setting up\");\n // Background colours first.\n //\n context.set(\"ABGC\", msg.colourA);\n context.set(\"BBGC\", msg.colourB);\n //\n // Now do text.\n //\n context.set(\"Atxt\", msg.txtA);\n context.set(\"Btxt\", msg.txtB);\n //\n // Font colours.\n //\n context.set(\"AFC\",msg.txtclrA);\n context.set(\"BFC\",msg.txtclrB);\n //\n // Payloads.\n //\n context.set(\"PayloadA\", msg.payloadA);\n context.set(\"PayloadB\", msg.payloadB);\n //\n // Topic.\n //\n if (msg.topicSET !== null)\n {\n context.set(\"Topic\",msg.topicSET);\n } else\n {\n context.set(\"Topic\",\"~\");\n }\n msg.colour = msg.colourA;\n msg.fontclr = msg.txtclrA;\n msg.txt = msg.txtA;\n msg.topic = msg.topicSET;\n msg.payload = msg.payloadA;\n return msg;\n}\n// Now on to the real stuff.\nif (msg.payload == \"X\")\n{\n state = (state + 1)% 2;\n //node.warn(state);\n context.set(\"STATE\",state);\n}\nif (state === 0)\n{\n // Condition A\n msg.payload = context.get(\"PayloadA\");\n msg.colour = context.get(\"ABGC\");\n msg.txt = context.get(\"Atxt\");\n msg.fontclr = context.get(\"AFC\");\n} else\n{\n // Condition B\n msg.payload = context.get(\"PayloadB\");\n msg.colour = context.get(\"BBGC\");\n msg.txt = context.get(\"Btxt\");\n msg.fontclr = context.get(\"BFC\");\n}\nif (context.get(\"Topic\") == \"~\")\n{\n msg.topic = \"\";\n} else\n{\n msg.topic = context.get(\"Topic\");\n}\nreturn msg;\n","outputs":1,"noerr":0,"x":2650,"y":820,"wires":[["16f7601f.88c79","9e5facf.d7f10d","71190f2d.713178"]]},{"id":"9e5facf.d7f10d","type":"debug","z":"1781e581.31721a","name":"Output","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":2820,"y":770,"wires":[]},{"id":"fefa8817.8dc6c8","type":"ui_group","z":"","name":"Audio","tab":"b128eb09.9f681","order":3,"disp":true,"width":"4","collapse":false},{"id":"b128eb09.9f681","type":"ui_tab","z":"","name":"TV_Remote_control","icon":"dashboard","order":1,"disabled":false,"hidden":false}]

```

Screen shot:

 ![Screenshot from 2020-04-14 23-44-19](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/d/9d6487a0cb003d3a7dddb443bfd0dec1dc8b5d23.png)

I have never seen such messages with these attributes before on any flow I have worked.

Digging, it would seem it is coming from the `button` icon.

As much as I am at odds with `buttons` just now, I have handled a lot of messages from `buttons` and can honestly say I have not seen these attributes (?term?) on any message before.

I'll check another machine for the sake of making myself look (more) stupid than I am.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [14 April 2020 13:53 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/4 "2020-04-14T13:53:43Z")

</div>

They were added in a very recent version of Node-RED dashboard. If you've only just upgraded this to the latest version of dashboard, then you won't have seen them before.

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 April 2020 13:56 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/5 "2020-04-14T13:56:37Z")

</div>

Phew!

Yes, I did update the dashboard on..... (today's Tuesday.) Maybe Late LATE Sunday or maybe Monday.

That's a big relief.

_paranoia_ had nearly set in about the bad luck on this machine and what has recently happened.

Wasn't sure if it was a _nasty_ I had picked up.  
Though that would be difficult, as it shouldn't be possible as I have no open ports on this machine.

{{thanks}} -- that's saved a lot of nappy use.  
😉

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [14 April 2020 14:01 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/6 "2020-04-14T14:01:24Z")

</div>

If you want to know what they are and how you can use them, see - [Contextmenu location](https://discourse.nodered.org/t/contextmenu-location/22780/28)

---

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [14 April 2020 14:05 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/7 "2020-04-14T14:05:52Z")

</div>

I try to not get into `core development` stuff too often.

But again: Thanks.

It seems a bit over my head what I am reading.

---

<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:** [13 June 2020 14:05 UTC](https://discourse.nodered.org/t/ok-whats-going-on-with-this-message/24811/8 "2020-06-13T14:05:52Z")

</div>

Closed on 13 June 2020 14:05 UTC

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