# Flow rate node : Output not in msg object

**URL:** <https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307>\
**Category:** General\
**Created:** [12 July 2021 11:24 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307 "2021-07-12T11:24:43Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryan1998](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@ryan1998](https://discourse.nodered.org/u/ryan1998)\
**Post date:** [12 July 2021 11:24 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307/1 "2021-07-12T11:24:43Z")

</div>

I am new to Node Red.

I am using the "Rate" node.  
([node-red-contrib-rate (node) - Node-RED](https://flows.nodered.org/node/node-red-contrib-rate))

The docs say that the output is "msg.rate".

When I add a debug and set it to show the complete object, I get this:

{"topic":"water/meter\_g/total\_use","payload":"+863","qos":0,"retain":false,"\_msgid":"c8e4a0f.dae1w6"}

There is no "rate" in the msg object.

I would be grateful if anyone could shine some light on why this is so.

Thanks.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [12 July 2021 11:27 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307/2 "2021-07-12T11:27:48Z")

</div>

> [@ryan1998](#):
>
> There is no "rate" in the msg object.

Did you set the "Rate" field to `msg.rate`?

Have you passed more than one msg with same topic through it?

---

<div class="post-metadata">

**Author:** ![ryan1998](https://avatars.discourse-cdn.com/v4/letter/r/e274bd/32.png) [@ryan1998](https://discourse.nodered.org/u/ryan1998)\
**Post date:** [12 July 2021 11:50 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307/3 "2021-07-12T11:50:49Z")

</div>

Admittedly, I am very confused.

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

The debug is getting the "rate" but the "Gauge" is getting the payload.

I want the "gauge" to get "msg.rate".

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [12 July 2021 12:11 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307/4 "2021-07-12T12:11:23Z")

</div>

so add a `change` node before the `gauge` node and set msg.payload to msg.rate

---

<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:** [10 September 2021 12:12 UTC](https://discourse.nodered.org/t/flow-rate-node-output-not-in-msg-object/48307/5 "2021-09-10T12:12:23Z")

</div>

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