Hi Steve,
thanks for your reply.
My flow is so simple, I just get the var= value and transmit it to RS485 serial
[{"id":"3aa87028.b2dcc","type":"http in","z":"e506d6cf.eafc88","name":"","url":"/cmnd","method":"get","upload":false,"swaggerDoc":"","x":140,"y":120,"wires":[["ad9659d.ca9a3a8","72567f2a.5ee45"]]},{"id":"74a6b85.5369848","type":"serial out","z":"e506d6cf.eafc88","name":"","serial":"287f27ad.84ef88","x":790,"y":120,"wires":[]},{"id":"f1238799.91e208","type":"debug","z":"e506d6cf.eafc88","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":690,"y":260,"wires":[]},{"id":"35903988.bdcce6","type":"http response","z":"e506d6cf.eafc88","name":"","statusCode":"","headers":{},"x":490,"y":260,"wires":[]},{"id":"ad9659d.ca9a3a8","type":"template","z":"e506d6cf.eafc88","name":"","field":"var","fieldType":"msg","format":"html","syntax":"plain","template":"This is the payload: {{payload}} !","output":"str","x":320,"y":260,"wires":[["35903988.bdcce6"]]},{"id":"72567f2a.5ee45","type":"string","z":"e506d6cf.eafc88","name":"","methods":[{"name":"chompLeft","params":[{"type":"str","value":"var: \""}]},{"name":"chompRight","params":[{"type":"str","value":"\""}]}],"prop":"payload.var","propout":"payload","object":"msg","objectout":"msg","x":490,"y":120,"wires":[["74a6b85.5369848","f1238799.91e208"]]},{"id":"287f27ad.84ef88","type":"serial-port","z":"","serialport":"/dev/ttyUSB0","serialbaud":"9600","databits":"8","parity":"none","stopbits":"1","newline":"\\n","bin":"false","out":"char","addchar":false,"responsetimeout":"10000"}]
It works fine, but if I enable the node-red authentication on setting.js file:
httpNodeAuth: {user:"user",pass:"$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9DN."},
when I go to http://raspberry.local:1880/cmnd?var=1
the browser asked me user and password. I would like to include user/password in the link like:
http://user:password@raspberry.local:1880/cmnd?var=1
and avoid the browser asked me user/password... but doesn't work...
Do you know what is the right way to edit the string?