[{"id":"cbea72ca2daed90c","type":"tab","label":"Update library","disabled":false,"info":"","env":[]},{"id":"523e19840d8e9d77","type":"inject","z":"cbea72ca2daed90c","name":"Enable","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":170,"y":200,"wires":[["ae42c98f22f871c1"]]},{"id":"ae42c98f22f871c1","type":"exec","z":"cbea72ca2daed90c","command":"cd ~/.node-red ; npm install https://github.com/ncd-io/node-red-enterprise-sensors/tree/temp-dev","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"command to update temp-dev","x":530,"y":200,"wires":[["7e01aae877ab6955"],["7e01aae877ab6955"],["a9ecda9b14d192f1","7e01aae877ab6955"]]},{"id":"b0542c40268424d7","type":"exec","z":"cbea72ca2daed90c","command":"pm2 restart all","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"command to restart Node-RED","x":530,"y":400,"wires":[["45fca820150f05b3"],["45fca820150f05b3"],["45fca820150f05b3"]]},{"id":"8a46d5bab60d4ca0","type":"inject","z":"cbea72ca2daed90c","name":"Enable","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":170,"y":400,"wires":[["b0542c40268424d7"]]},{"id":"7e01aae877ab6955","type":"debug","z":"cbea72ca2daed90c","name":"Debug","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":770,"y":180,"wires":[]},{"id":"45fca820150f05b3","type":"debug","z":"cbea72ca2daed90c","name":"Restart Debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":780,"y":400,"wires":[]},{"id":"b71bbf80824cd412","type":"comment","z":"cbea72ca2daed90c","name":"👇🏼 Click the embedded left button to enable.","info":"","x":230,"y":160,"wires":[]},{"id":"8997d1a581f7953c","type":"comment","z":"cbea72ca2daed90c","name":"👇🏼 Click the embedded left button to enable.","info":"","x":230,"y":360,"wires":[]},{"id":"76ac903bf47acadb","type":"comment","z":"cbea72ca2daed90c","name":"Step 1","info":"","x":110,"y":120,"wires":[]},{"id":"8622d2d0d161b7bb","type":"comment","z":"cbea72ca2daed90c","name":"Step 3","info":"","x":110,"y":320,"wires":[]},{"id":"fea6466a0df0e8fc","type":"comment","z":"cbea72ca2daed90c","name":"Step 2","info":"","x":950,"y":140,"wires":[]},{"id":"81ce5d3a248ada21","type":"comment","z":"cbea72ca2daed90c","name":"👇🏼 Wait for the 'Completed' message, if 'error' check internet connection","info":"","x":1150,"y":180,"wires":[]},{"id":"0c57f66baf5ed49d","type":"comment","z":"cbea72ca2daed90c","name":"Step 4 - Refresh the web browser page to complete the process.","info":"","x":290,"y":540,"wires":[]},{"id":"1e7f26a78eded246","type":"debug","z":"cbea72ca2daed90c","name":"Completed Debug","active":true,"tosidebar":false,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":990,"y":220,"wires":[]},{"id":"a9ecda9b14d192f1","type":"function","z":"cbea72ca2daed90c","name":"function 1","func":"if(msg.payload.code == 0){\n    msg.payload = 'Completed';\n    return msg;\n}\nelse{\n    msg.payload = 'Error';\n    return msg; \n}","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":[],"x":735,"y":220,"wires":[["1e7f26a78eded246"]],"l":false}]