aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKing Kévin <kingkevin@cuvoodoo.info>2020-01-09 11:23:30 +0100
committerKing Kévin <kingkevin@cuvoodoo.info>2020-01-09 11:23:30 +0100
commit2e9cf7068872bcd73f6f7cc60e5d5651a6fe5cf8 (patch)
treef1d40a8e23440d70217e161455f210b8b2c8041b
parentea6545606547cabcf1082ae2b6ec101c12c8bf00 (diff)
add rule to grant USB access rights
-rw-r--r--99-web-u2.rules2
-rw-r--r--README.md7
2 files changed, 9 insertions, 0 deletions
diff --git a/99-web-u2.rules b/99-web-u2.rules
new file mode 100644
index 0000000..7b70521
--- /dev/null
+++ b/99-web-u2.rules
@@ -0,0 +1,2 @@
+# WEB/WIRN/QWay U2 USB power meter
+SUBSYSTEM=="usb|hidraw", ATTR{idVendor}=="0716", ATTR{idProduct}=="5030", MODE="666"
diff --git a/README.md b/README.md
index 19737b7..5506603 100644
--- a/README.md
+++ b/README.md
@@ -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.