Want to make a min/max text box on the dashboard for temp sensor output

I have text box but could have 2 if needed, i have atemp sensor giving me temp readings and i want to use that to check if its above or below the previous min/max and is so update the text box to show the new min or max.

[{"id":"28cdd8ce.21a0a8","type":"inject","z":"4f2cae6a.c5ec8","name":"","topic":"","payload":"","payloadType":"date","repeat":"5","crontab":"","once":true,"onceDelay":"1","x":110,"y":80,"wires":[["7c5c08b5.cc8018","66a36073.28bb8"]]},{"id":"66a36073.28bb8","type":"rpi-dht22","z":"4f2cae6a.c5ec8","name":"#1 dht11","topic":"rpi-dht22","dht":"11","pintype":"0","pin":"4","x":300,"y":120,"wires":[["12ce82c6.48429d","632e50b7.05488","9af87ac1.504388"]]},{"id":"9af87ac1.504388","type":"function","z":"4f2cae6a.c5ec8","name":"","func":"msg.payload = msg.payload *1.8 +32\nif msg.payload > flow.max1\nthen return msg;","outputs":1,"noerr":11,"x":440,"y":80,"wires":[["8a0046ff.d6e748"]]},{"id":"8a0046ff.d6e748","type":"ui_text","z":"4f2cae6a.c5ec8","group":"4aff2917.bb1b98","order":1,"width":0,"height":0,"name":"","label":"text","format":"{{msg.payload}}","layout":"row-center","x":590,"y":80,"wires":[]},{"id":"4aff2917.bb1b98","type":"ui_group","z":"","name":"Main","tab":"7dd97b74.960734","order":1,"disp":true,"width":"6","collapse":false},{"id":"7dd97b74.960734","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false}]

the node-red-node-smooth can show the most recent max or min for you.

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