[{"id":"5e97313b.f9091","type":"exec","z":"524b16d7.a8bfe8","command":"cd ~/.node-red;git add .;git commit -m 'auto commit';git push","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"提交git","x":810,"y":580,"wires":[[],["9f6a62f2.ce3a9"],[]]},{"id":"9f6a62f2.ce3a9","type":"debug","z":"524b16d7.a8bfe8","name":"记录日志","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":960,"y":580,"wires":[]},{"id":"18d99690.1adbf9","type":"exec","z":"524b16d7.a8bfe8","command":"ls -l ~/.node-red/flows_yinzhennan-ubuntu.json","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"文件时间戳","x":390,"y":580,"wires":[["30975ef7.e67512"],[],[]]},{"id":"dd33899f.802088","type":"inject","z":"524b16d7.a8bfe8","name":"10秒一次","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":580,"wires":[["18d99690.1adbf9"]]},{"id":"30975ef7.e67512","type":"function","z":"524b16d7.a8bfe8","name":"判断变化","func":"if(context.flow.get('justChanged')==msg.payload){\n msg.payload = 1;\n return msg;\n}\n\ncontext.flow.set('justChanged',msg.payload);\nmsg.payload = 2;\nreturn msg;\n","outputs":1,"noerr":0,"x":540,"y":580,"wires":[["b3c7c598.4d30d8"]]},{"id":"b3c7c598.4d30d8","type":"switch","z":"524b16d7.a8bfe8","name":"修改过","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"2","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":680,"y":580,"wires":[["5e97313b.f9091"]]}]