# Sending synology NAS temperature value in a complete sentence by email

**URL:** https://discourse.nodered.org/t/sending-synology-nas-temperature-value-in-a-complete-sentence-by-email/60249
**Category:** General
**Tags:** function-node
**Created:** [23 March 2022 14:46 UTC](https://discourse.nodered.org/t/sending-synology-nas-temperature-value-in-a-complete-sentence-by-email/60249 "2022-03-23T14:46:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![minouch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minouch/32/58960_2.png) [@minouch](https://discourse.nodered.org/u/minouch)
#### Post date: [23 March 2022 14:46 UTC](https://discourse.nodered.org/t/sending-synology-nas-temperature-value-in-a-complete-sentence-by-email/60249/1 "2022-03-23T14:46:38Z")

</div>

Hi everyone.

before starting i'm a real beginner with node red and i'm trying to train myself with some basics.  
right now, i'm trying to collect the temperature information from my synology NAS and i'd like to send the temperature value by email if it's \>= to 40degres.  
I'm using for that the "node-red-node-email" and "node-red-contrib-syno" nodes.

flow is :  
generate a timestamp every 5 minutes.  
Connect to my NAS DSM  
Create a switch with "msg.payload.temperature" \>= 40  
if temperature above then email that temperature value using the email node.

I'm receiving email with correct value (here was 41 for instance) but I'd like to receive a complete sentence notification such as "ALERT : Maximum temperature reached for the NAS : \<msg.payload.temperature\> degres"

I'm not sure how to play with payloads info and existing nodes to get that result.

Could you help me please?

---

<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: [23 March 2022 15:28 UTC](https://discourse.nodered.org/t/sending-synology-nas-temperature-value-in-a-complete-sentence-by-email/60249/2 "2022-03-23T15:28:54Z")

</div>

> [@minouch](#):
>
> I'm not sure how to play with payloads info and existing nodes to get that result.

Welcome to the forum @minouch

Have a look at the template node (not ui-template). That can be used to easily perform payload insertion into a string.

---

<div class="post-metadata">

### Author: ![minouch](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/minouch/32/58960_2.png) [@minouch](https://discourse.nodered.org/u/minouch)
#### Post date: [23 March 2022 16:19 UTC](https://discourse.nodered.org/t/sending-synology-nas-temperature-value-in-a-complete-sentence-by-email/60249/3 "2022-03-23T16:19:24Z")

</div>

Hi Colin,  
it worked using that template node with the payload insertion "{{payload.temperature}}".  
many thanks 🙂  
Have a good day

---

<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 2022 16:20 UTC](https://discourse.nodered.org/t/sending-synology-nas-temperature-value-in-a-complete-sentence-by-email/60249/4 "2022-04-06T16:20:06Z")

</div>

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