Videovigilancia-camara ip, con cliente FTP.
Videovigilancia desde una camara ip, utilizando el cliente FTP, cuando se activa la detección de movimiento la cámara envia una foto, la recibimos en nuestro nodo (servidor FTP), y guardaremos la foto en la raspberry (puede enviarse a la nube tambien), la enviaremos a un chatbot de Telegram, y haremos un registro del evento en un archivo de la raspberry.
[{"id":"7d0f6486.cb54dc","type":"ftp-server","z":"dc0cf5ce.896308","name":"raspberry","port":"8017","x":320,"y":260,"wires":[["c4687858.d60db8","41baea22.b01744","fc87ae10.0c4dd"]]},{"id":"952a53f5.34f9e","type":"file","z":"dc0cf5ce.896308","name":"","filename":"","appendNewline":false,"createDir":true,"overwriteFile":"true","encoding":"none","x":730,"y":157.14285278320312,"wires":[[]]},{"id":"c4687858.d60db8","type":"function","z":"dc0cf5ce.896308","name":"Foto","func":"let targetDir = \"/media/pi/KINGSTON/Camaras/Palier/foto\";\nmsg.filename = targetDir;\nreturn msg;","outputs":1,"noerr":0,"x":550,"y":157.14285278320312,"wires":[["952a53f5.34f9e"]]},{"id":"41baea22.b01744","type":"function","z":"dc0cf5ce.896308","name":"Mensaje","func":"msg.payload = \"foto \" + new Date();\nmsg.filename = \"/media/pi/KINGSTON/Camaras/Palier/mes\";\nreturn msg;","outputs":1,"noerr":0,"x":560,"y":257.1428527832031,"wires":[["6a743fdf.e36a7","9ef7816a.d38b5"]]},{"id":"6a743fdf.e36a7","type":"file","z":"dc0cf5ce.896308","name":"","filename":"","appendNewline":true,"createDir":true,"overwriteFile":"false","encoding":"none","x":730,"y":257.1428527832031,"wires":[[]]},{"id":"9ef7816a.d38b5","type":"telegram sender","z":"dc0cf5ce.896308","name":"","bot":"97ad9f34.1acc1","x":770,"y":357.1428527832031,"wires":[[]]},{"id":"fc87ae10.0c4dd","type":"function","z":"dc0cf5ce.896308","name":"Aviso (Foto)","func":"msg.payload = { chatId : chatid_tu_bot , type : 'photo' , content : msg.payload }\nreturn msg;","outputs":1,"noerr":0,"x":570,"y":357.1428527832031,"wires":[["9ef7816a.d38b5"]]},{"id":"97ad9f34.1acc1","type":"telegram bot","z":"","botname":"tu_bot","usernames":"","chatids":"","baseapiurl":"","pollinterval":"300","usesocks":false,"sockshost":"","socksport":"","socksusername":"","sockspassword":"","bothost":"","localbotport":"","publicbotport":"","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":false}]