[{"id":"d7276cd2.d6f55","type":"tab","label":"python thermocouple test","disabled":false,"info":""},{"id":"a7d4e707.fd8a18","type":"inject","z":"d7276cd2.d6f55","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"10","crontab":"","once":false,"onceDelay":"20","topic":"","payload":"","payloadType":"date","x":110,"y":360,"wires":[["14057906.c24237"]]},{"id":"14057906.c24237","type":"exec","z":"d7276cd2.d6f55","command":"python3 /home/pi/GetMAX6675.py","addpay":false,"append":"","useSpawn":"true","timer":"","oldrc":false,"name":"","x":360,"y":360,"wires":[["ddb0051b.87c268","137cba77.d76d26"],[],[]]},{"id":"a33c536c.9900e","type":"debug","z":"d7276cd2.d6f55","name":"Temperature in int format","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1210,"y":380,"wires":[]},{"id":"ddb0051b.87c268","type":"debug","z":"d7276cd2.d6f55","name":"Temperature in string format","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1220,"y":520,"wires":[]},{"id":"da6e54de.787c78","type":"function","z":"d7276cd2.d6f55","name":"String to integer conversion","func":"msg.payload = Number(msg.payload);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":940,"y":380,"wires":[["a33c536c.9900e"]]},{"id":"137cba77.d76d26","type":"switch","z":"d7276cd2.d6f55","name":"Test for open cct thermo","property":"payload","propertyType":"msg","rules":[{"t":"cont","v":"ALARM","vt":"str"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":670,"y":340,"wires":[["46b07c8c.f0fde4"],["da6e54de.787c78"]]},{"id":"46b07c8c.f0fde4","type":"debug","z":"d7276cd2.d6f55","name":"Open Circuit termoncouple","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1220,"y":300,"wires":[]},{"id":"2c772bc1.47a374","type":"comment","z":"d7276cd2.d6f55","name":"simple flow to test operation of calling a python function that use the SPI bus to read temperatue form a MAX6675 Cold-Junction-Compensated K-Thermocoupleto-Digital Converter.","info":"","x":610,"y":40,"wires":[]},{"id":"4dc1b1ea.63d07","type":"comment","z":"d7276cd2.d6f55","name":"EXEC node call python function, result is returned as a string.","info":"","x":460,"y":180,"wires":[]},{"id":"b02e9063.3bcb7","type":"comment","z":"d7276cd2.d6f55","name":"Python routine returns the word \"ALARM\" if thermocouple is open circuit..","info":"","x":500,"y":220,"wires":[]},{"id":"42c6a8d1.ead9b8","type":"comment","z":"d7276cd2.d6f55","name":"Switch Node looks for word \"ALARM\"","info":"","x":690,"y":300,"wires":[]}]