sunsetdk / node-red-contrib-wmbus-client

A node-red node to receive data from a USB vm-bus dongle and output data for Kamstrup21 water meter.
MIT License
6 stars 3 forks source link

HOW-TO USE: Node-red add "nodered" user to group dialout of USB port - sollution #6

Open jinx17 opened 4 years ago

jinx17 commented 4 years ago

Hi, I tried using this node to read kamstrup watermeters, but when installed and configured, node displays error message: error connecting (or something similar)

1st I checked settings of USB port: ls -la /dev/ttyUSB0 which returned this: crw-rw---- 1 root dialout 188, 0 Aug 15 13:24 /dev/ttyUSB0 now I see dialout group is able to communicate with this USB device

Than I had to add "nodered" user to the "dialout group" of the USB port like this: sudo usermod -a -G dialout nodered

Then restart node-red (in my case: service node-red restart) and node is working, showing status as: Applying filter for serial no: xxxxxxxx --> This shows USB is correctly configured and node is waiting for data from meter.

Best regards, Gregor

sunsetdk commented 4 years ago

Applying filter means it is searching for the correct device. Shouldn't take more than max 1 min

jinx17 commented 4 years ago

yes. I should rename issue to HOW-TO manual as a support for other users!