# Smart Nora + temperature?

**URL:** https://discourse.nodered.org/t/smart-nora-temperature/71911
**Category:** General
**Created:** [9 December 2022 10:41 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911 "2022-12-09T10:41:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![myozone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/myozone/32/8904_2.png) [@myozone](https://discourse.nodered.org/u/myozone)
#### Post date: [9 December 2022 10:41 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/1 "2022-12-09T10:41:34Z")

</div>

I've just started playing with Smart Nora and wondering how to send temperature to a SN sensor node?

I have a test that works but not sure the right way to implement it in a flow. the test inject is like this

```auto
{
    "temperature": 24.1
}

```

But how do I get the a payload of temperature into that object form ?

After a dozen or so tries I came up with wish works

```auto
var temp = msg.payload
msg.payload = {temperature:temp}
return msg

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 December 2022 11:10 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/2 "2022-12-09T11:10:39Z")

</div>

Do you have the required temperature in msg.payload? If not where is it?

If it is in the payload then you can move it using a Change node configured like this

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/1/51df38f1bc175eadf2a1fa434297512a2d809f5e.png)

Feed that into a Debug node and check it is what you want.

---

<div class="post-metadata">

### Author: ![myozone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/myozone/32/8904_2.png) [@myozone](https://discourse.nodered.org/u/myozone)
#### Post date: [9 December 2022 11:30 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/3 "2022-12-09T11:30:34Z")

</div>

Yes the function has msg.payload incoming to it containing the temperature

![2022-12-09 11_40_01-Node-RED _ 192.168.2.207](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/1/71bec2a8158e1746bb1299cb4e995fd2c1009a49.png)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 December 2022 11:33 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/4 "2022-12-09T11:33:45Z")

</div>

So did my suggestion work for you?

---

<div class="post-metadata">

### Author: ![myozone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/myozone/32/8904_2.png) [@myozone](https://discourse.nodered.org/u/myozone)
#### Post date: [9 December 2022 11:35 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/5 "2022-12-09T11:35:46Z")

</div>

Just tried it and no it didn't work sorry

---

<div class="post-metadata">

### Author: ![myozone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/myozone/32/8904_2.png) [@myozone](https://discourse.nodered.org/u/myozone)
#### Post date: [9 December 2022 11:39 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/6 "2022-12-09T11:39:41Z")

</div>

The two debugs look like this

![2022-12-09 11_38_27-Node-RED _ 192.168.2.207](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/12602ef7e8909f48a766db0c91373d40cbd5df9f.png)  
 ![2022-12-09 11_38_04-Node-RED _ 192.168.2.207](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/6/36eadba7b8de7639b1ad9a8e87bd94b408ce53a3.png)

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [9 December 2022 11:49 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/7 "2022-12-09T11:49:55Z")

</div>

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

You mistyped into the change node

---

<div class="post-metadata">

### Author: ![myozone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/myozone/32/8904_2.png) [@myozone](https://discourse.nodered.org/u/myozone)
#### Post date: [9 December 2022 11:53 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/8 "2022-12-09T11:53:47Z")

</div>

Ahh, well that was embarrassing 😄 🙄

Yes indeed your example worked !

Stopping to think is never a good idea when typing 😀

---

<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: [23 December 2022 11:53 UTC](https://discourse.nodered.org/t/smart-nora-temperature/71911/9 "2022-12-23T11:53:58Z")

</div>

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