Don't have an example flow to hand, but have done exactly that sort of thing.
What do the node-red logs show?
Nick
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Yes, you need to be logged. Where the logs are depends how you are running node-red.
If using pm2 as per our docs, you can use
pm2 logs node-red
Nick
Nick,
There have been a couple of fixes to the http node since 0.10.6 that may be relevant
https://github.com/node-red/node-red/commit/38ab1550d2712265e2ee5ed295e037799c3da90f
Maybe grab the latest from git first... ?
I doubt Mike is running a proxy on his home network...
Let's get the logs and find out what the issue is first. Getting the logs is an easier task than upgrading to the code from git.
N
--
Fair enough... Didn't see that mentioned in the commit message. Would that cause a crash like Mike describes...?
That fix also fixed an error where for buffer payload (like Mike does have) it was returning the incorrect Content-Length header..
root@thethingbox / # find . -name *.log -print ./var/log/daemon.log ./var/log/lightdm/x-0-greeter.log ./var/log/lightdm/x-0.log ./var/log/lightdm/lightdm.log ./var/log/kern.log ./var/log/auth.log ./var/log/dpkg.log ./var/log/alternatives.log ./var/log/user.log ./var/log/lpr.log ./var/log/mosquitto/mosquitto.log ./var/log/Xorg.0.log ./var/log/mail.log ./var/log/apt/term.log ./var/log/apt/history.log ./root/thethingbox/node_modules/node-red/node_modules/grunt/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/libpeerconnection.log ./root/thethingbox/node_modules/node-red/node_modules/grunt/node_modules/grunt-legacy-log/node_modules/underscore.string/libpeerconnection.log ./root/thethingbox/node_modules/node-red/node_modules/mongodb/node_modules/kerberos/builderror.log ./root/thethingbox/node_modules/node-red/node_modules/mongodb/node_modules/bson/builderror.log ./root/thethingbox/npm-debug.log
Is npm-debug.log, the log file we are looking for??
mike
I can't remember how thethingbox runs node-red, or where it puts the log.
I'm sure its been mentioned on this list before, but I can't immediately find it.
Nicolas/thingbox team - are there any docs you point your users at for this sort of thing?
Nick
It worked for me!Max
That was last night ! Slow start today.
Has anyone got any examples or retrieved images from an IP Camera?I have attempted to do it but it crashes my node-red server.I have a URL as follows:-This returns a camera snapshot when typed into the browser URL (it's only 50K bytes or so)So I have used Inject, followed by HTTP request node, followed by my emailI set the HTTP node to GET, no authentication (as that is passed in the URL) and with binary buffer.Then when I inject the HTTP node says retrieving and then loses comms with the server (I then have to reboot).There is no output to the debug window, prior to the crash.Any help would be gratefully received.Mike
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Compared to the "front door fun" one ? This is just getting started !
[{"id":"9245d236.2d5b9","type":"inject","z":"894c465c.5897a8","name":"","topic":"","payload":"","payloadType":"str","repeat":"","crontab":"","once":false,"x":250,"y":380,"wires":[["475924f9.d89f2c"]]},{"id":"3955c3d6.3a5e7c","type":"function","z":"894c465c.5897a8","name":"Add attributes","func":"msg.topic = \"Test Picture for Mike\";\nmsg.description = \"This is some body text to go with the picture;\"\nmsg.filename = \"testpic.jpg\";\nreturn msg;","outputs":1,"noerr":0,"x":600,"y":380,"wires":[["3db8e9d3.a28286"]]},{"id":"475924f9.d89f2c","type":"http request","z":"894c465c.5897a8","name":"","method":"GET","ret":"bin","url":"http://admin:x...@192.168.1.153/cgi-bin/video.cgi?msubmenu=mjpg","tls":"","x":410,"y":380,"wires":[["3955c3d6.3a5e7c"]]}]
[{"id":"883f3b4b.ff2408","type":"ui_template","z":"894c465c.5897a8","tab":"f67fe1d0.731c2","name":"vid","group":"","order":1,"format":"<iframe width=\"1280\" height=\"1024\" src=\"http://admin:x...@192.168.1.153/cgi-bin/video.cgi?msubmenu=mjpg\" frameborder=\"0\" allowfullscreen></iframe>","storeOutMessages":true,"fwdInMessages":false,"x":550,"y":600,"wires":[["3db8e9d3.a28286"]]},{"id":"f67fe1d0.731c2","type":"ui_tab","z":"894c465c.5897a8","name":"Home","icon":"dashboard","order":"1"}]