I am not the first and i gues not the last one fighting with this
With a lot of help from google i am able to get an output from the snapPicture function
This gives me a buffer full of data.
But how can i get this to readable data like test.jpg?
Tried all settings of the file node but without succes
The setup that i have now is this:
[{"id":"587160d6.67c138","type":"function","z":"3160ccff.45e684","name":"","func":"\n var camera={\n \"hostname\":\"123.123.0.123:88\",\n \"uid\":\"user\",\n \"pwd\":\"pass!\"\n }\n\n msg.url=\"http://\"+camera.hostname+\"/snapPicture.cgi?user=\"+camera.uid+\"&pwd=\"+camera.pwd;\n\n return msg;","outputs":1,"noerr":0,"x":553,"y":1001,"wires":[["ee9b6602.8d85f8"]]},{"id":"ee9b6602.8d85f8","type":"http request","z":"3160ccff.45e684","name":"","method":"GET","ret":"bin","url":"","tls":"","x":703,"y":1000,"wires":[["58e6c7d1.0a8d1"]]},{"id":"69b1c7d0.bcd688","type":"inject","z":"3160ccff.45e684","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":340,"y":1000,"wires":[["587160d6.67c138"]]},{"id":"58e6c7d1.0a8d1","type":"file","z":"3160ccff.45e684","name":"","filename":"/home/pi/.node-red/test.jpg","appendNewline":false,"createDir":false,"overwriteFile":"true","x":960,"y":1000,"wires":[[]]}]