Skip to main content

Driver for reading data from modern WITRN meters

Project description

WITRN driver

Driver for reading data from modern WITRN USB-meters such as U3, U3L, A2, and C4 (tested). A2L and C4L can also be supported theoretically but I don't have hardware for testing.

Supported hardware

Installation

Available on PyPI:

pip install witrn-driver

Driver can be installed as python package using pip install -e for local development.

Related projects

Examples

Sample output of exmaples/read_data.py:

Connect your device and press Enter
No kernel driver attached
Claimed device
Press Enter to stop reading

 packets |      rectime |       uptime |      V      A |     D+     D-
   23755 |  0:03:57.074 |  3:10:55.199 |  5.158  0.004 |  2.717  2.706

Good bye!

Limitations

Note! For Windows users, if you see message Device not found! when device is actually connected, try use zadig utility and replace the default driver for your WITRN device to libusb-*.

Note! For Linux users, to run this script under non-root user install udev rules:

$ sudo install --mode=0644 --target-directory=/etc/udev/rules.d/ udev/90-usbmeter.rules
$ sudo udevadm trigger

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

witrn_driver-0.1.2.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

witrn_driver-0.1.2-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

Details for the file witrn_driver-0.1.2.tar.gz.

File metadata

  • Download URL: witrn_driver-0.1.2.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for witrn_driver-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1ab3caefbd213653501a0c4784b866b42c899d0698b858d671fa7de264ce6296
MD5 6b98d90ec08337533e1012c93a0fcfa5
BLAKE2b-256 713cff4e1933bbd54577003eab4df4647ab39c68ad9a9f9a4bb7f9f3c4bbb001

See more details on using hashes here.

File details

Details for the file witrn_driver-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: witrn_driver-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.10

File hashes

Hashes for witrn_driver-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ec1790e2e41971f26fdafed03809f641d3b1045efdba9083ec3e200bed546eaf
MD5 115b2e57056814d9d7a9821c10284495
BLAKE2b-256 ff06fe8a743bc1bf059142373f4136abf9a048cedd3900757971ae3564fa382a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page