# Convert mqtt temp to post

**URL:** <https://discourse.nodered.org/t/convert-mqtt-temp-to-post/73562>\
**Category:** General\
**Created:** [11 January 2023 20:44 UTC](https://discourse.nodered.org/t/convert-mqtt-temp-to-post/73562 "2023-01-11T20:44:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [11 January 2023 20:44 UTC](https://discourse.nodered.org/t/convert-mqtt-temp-to-post/73562/1 "2023-01-11T20:44:31Z")

</div>

i have an mqtt temperature sensor coming into node red and i want it to send the temperature out every 10 minutes with Eg- [http://192.168.0.93/cm?cmnd=DisplayText](http://192.168.0.93/cm?cmnd=DisplayText) 15°C  
but for the life of me cannot figure it out  
any help would be great  
thanks  
martin

---

<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:** [11 January 2023 20:55 UTC](https://discourse.nodered.org/t/convert-mqtt-temp-to-post/73562/2 "2023-01-11T20:55:55Z")

</div>

With the limited info you have supplied you should be able to do.

mqtt\_in - rate limit - template - http request.

example

```auto
[{"id":"2b8b4b5c0037e0df","type":"inject","z":"da8a6ef0b3c9a5c8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"mqtt/topic/sensor","payload":"15","payloadType":"num","x":140,"y":3000,"wires":[["9b86e6e0032cc5ca"]]},{"id":"9b86e6e0032cc5ca","type":"delay","z":"da8a6ef0b3c9a5c8","name":"","pauseType":"queue","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"minute","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":true,"allowrate":false,"outputs":1,"x":360,"y":3000,"wires":[["e1cd854ba7096f71"]]},{"id":"e1cd854ba7096f71","type":"template","z":"da8a6ef0b3c9a5c8","name":"msg.url","field":"url","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"http://192.168.0.93/cm?cmnd=DisplayText {{payload}}°C","output":"str","x":560,"y":3000,"wires":[["6d964e69ccee53b4"]]},{"id":"6d964e69ccee53b4","type":"http request","z":"da8a6ef0b3c9a5c8","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"credentials":{"user":"","password":""},"x":730,"y":3000,"wires":[[]]}]

```

---

<div class="post-metadata">

**Author:** ![montyfert](https://avatars.discourse-cdn.com/v4/letter/m/54ee81/32.png) [@montyfert](https://discourse.nodered.org/u/montyfert)\
**Post date:** [11 January 2023 21:08 UTC](https://discourse.nodered.org/t/convert-mqtt-temp-to-post/73562/3 "2023-01-11T21:08:10Z")

</div>

thank you  
martin

---

<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:** [25 January 2023 21:08 UTC](https://discourse.nodered.org/t/convert-mqtt-temp-to-post/73562/4 "2023-01-25T21:08:45Z")

</div>

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