Convert mqtt temp to post

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 15°C
but for the life of me cannot figure it out
any help would be great
thanks
martin

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

mqtt_in - rate limit - template - http request.

example

[{"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":[[]]}]
1 Like

thank you
martin

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