raspberry pi 1 model bで、node-red　その４

#概要
raspberry pi 1 model bの、node-redでズンドコしてみた。
#開発環境
raspberry pi 1 model b
raspbian 2016_09_23 jessie lite
#写真
![ras5.JPG](https://qiita-image-store.s3.amazonaws.com/0/18104/dcc90b54-0289-9a8c-dab9-80b706b131ab.jpeg)

#サンプルコード
```
[{"id":"9ab58434.bb9ca8","type":"debug","z":"addc1b17.459d98","name":"出力","active":true,"console":"false","complete":"payload","x":838.7500114440918,"y":754.583324432373,"wires":[]},{"id":"903ff3a1.059cd","type":"inject","z":"addc1b17.459d98","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"x":391.00000762939453,"y":418.13312244415283,"wires":[["d4244575.ec95c8"]]},{"id":"1490d0a8.774f3f","type":"function","z":"addc1b17.459d98","name":"loop","func":"var k = Math.floor(Math.random() * 2);\nif (k < 1)\n{\n\tmsg.k = 0;\n}\nelse\n{\n\tmsg.k = 1;\n}\nreturn msg;","outputs":1,"noerr":0,"x":730.5952301025391,"y":414.53790855407715,"wires":[["d9daf3c8.29e31"]]},{"id":"d4244575.ec95c8","type":"template","z":"addc1b17.459d98","name":"init","field":"i","fieldType":"msg","syntax":"mustache","template":"0","x":554.4999771118164,"y":417.7997798919678,"wires":[["1490d0a8.774f3f"]]},{"id":"fdb06ba.6e74d98","type":"function","z":"addc1b17.459d98","name":"count","func":"if (msg.k == 0)\n{\n\tmsg.i++;\n}\nelse\n{\n\tmsg.i = 0;\n}\nreturn msg;","outputs":1,"noerr":0,"x":412.1666679382324,"y":602.2998065948486,"wires":[["570e92c3.debcac"]]},{"id":"82aafa42.b35e88","type":"switch","z":"addc1b17.459d98","name":"4kai","property":"i","propertyType":"msg","rules":[{"t":"eq","v":"4","vt":"str"},{"t":"neq","v":"4","vt":"str"}],"checkall":"true","outputs":2,"x":677.2857360839844,"y":535.7521705627441,"wires":[["337d7fcc.6bb9"],["1490d0a8.774f3f"]]},{"id":"1d609fe7.d771f","type":"template","z":"addc1b17.459d98","name":"zun","field":"payload","fieldType":"msg","syntax":"mustache","template":"zun","x":592.3333206176758,"y":671.0855321884155,"wires":[["82aafa42.b35e88","9ab58434.bb9ca8"]]},{"id":"7c052f62.9a1f2","type":"template","z":"addc1b17.459d98","name":"doko","field":"payload","fieldType":"msg","syntax":"mustache","template":"doko","x":418.9999885559082,"y":757.4665040969849,"wires":[["9ab58434.bb9ca8","1490d0a8.774f3f"]]},{"id":"570e92c3.debcac","type":"switch","z":"addc1b17.459d98","name":"dochi","property":"k","propertyType":"msg","rules":[{"t":"eq","v":"0","vt":"str"},{"t":"eq","v":"1","vt":"str"}],"checkall":"true","outputs":2,"x":416.50000762939453,"y":674.7998151779175,"wires":[["1d609fe7.d771f"],["7c052f62.9a1f2"]]},{"id":"d9daf3c8.29e31","type":"delay","z":"addc1b17.459d98","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":417.99998474121094,"y":531.9665031433105,"wires":[["fdb06ba.6e74d98"]]},{"id":"2abd2e98.9ee2f2","type":"template","z":"addc1b17.459d98","name":"kiyoshi","field":"payload","fieldType":"msg","syntax":"mustache","template":"doko ki yo shi!","x":841.0000114440918,"y":659.9665021896362,"wires":[["9ab58434.bb9ca8"]]},{"id":"337d7fcc.6bb9","type":"delay","z":"addc1b17.459d98","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":843.2500114440918,"y":589.7998142242432,"wires":[["2abd2e98.9ee2f2"]]}]
```