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.

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.1.tar.gz (6.3 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.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: witrn_driver-0.1.1.tar.gz
  • Upload date:
  • Size: 6.3 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.1.tar.gz
Algorithm Hash digest
SHA256 15c7598529d5ef6d4ea6783554a5ca6990d71f696c44d7ea5bab8ea3d55e1f0d
MD5 d7e7c8a1af5c097e1a9653cea229246f
BLAKE2b-256 c9c2cbed6467bddbeb22d552e9511432e0954c11c610fc3c2326b1deeed3446f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: witrn_driver-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 256fb6da28abce11c4688e95ebd4742553810e097f5c10d261196d6d0f9ed020
MD5 f7050510794835f42146f5110d5a0761
BLAKE2b-256 ba3fea416bdb87ad1da7d474788fc4914f04d2f9f80ead04363498cf5e37f4a4

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