add rule to grant USB access rights

master
King Kévin 2020-01-09 11:23:30 +01:00
parent ea65456065
commit 2e9cf70688
2 changed files with 9 additions and 0 deletions

2
99-web-u2.rules 100644
View File

@ -0,0 +1,2 @@
# WEB/WIRN/QWay U2 USB power meter
SUBSYSTEM=="usb|hidraw", ATTR{idVendor}=="0716", ATTR{idProduct}=="5030", MODE="666"

View File

@ -13,6 +13,13 @@ then just run `make` and it will output the `u2_usb` binary.
run `u2_usb` to get the output in CSV format.
run `u2_usb -d` to get the raw and decoded output (useful for reversing and debugging).
if you get the message "could not open WEB-U2 (make sure it is connected and you have access rights)", then provide access rights to this USB device the following way:
~~~
sudo cp 99-web-u2.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
~~~
and re-plug the device.
additionally `u2_bt` can send the voltage/current measurements to an InfluxDB time series database over UDP.
provide the InfluxDB hostname/IP and UDP port as arguments.