ljakob / unit_ut61eplus Goto Github PK
View Code? Open in Web Editor NEWAccess digtal multimeter UNI-T UT61E+ from Python via CP2110 based USB connection
License: GNU General Public License v3.0
Access digtal multimeter UNI-T UT61E+ from Python via CP2110 based USB connection
License: GNU General Public License v3.0
How to install this library?
Command:
pip install git+https://github.com/ljakob/unit_ut61eplus.git
Result:
ERROR: git+https://github.com/ljakob/unit_ut61eplus.git does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.
line 5:
from glibc import ctypes
should be
import ctypes
python3 and OS
Python 3.10.7 (main, Sep 8 2022, 14:34:29) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Hi!
First of all thank you for providing this useful multimeter tool! I found 4 bugs in the Measurement class:
return self._data['unit']
instead of return self._data['display_unit']
.To fix the last two issues, I rewrote lines 242 - 245:
if self._data['unit'][0] in self._EXPONENTS:
if not self._data['overload']:
self._data['decimal'] = self._data['decimal']*decimal.Decimal(10)**self._EXPONENTS[self.unit[0]]
self._data['unit'] = self._data['unit'][1:] # remove first char
Added a extensible list of USB vendor and product ids for UT161E : "meters".
See fork at https://github.com/okvittem/unit_ut61eplus.git
Please feel free to pull back.
UT61E and UT161E seem to be very alike so no other changes made.
Works like a charm - thanks for your code @ljakob .
02:09:26 kris ~/unit_ut61eplus-main $ python readDMM.py
Traceback (most recent call last):
File "/home/kris/unit_ut61eplus-main/readDMM.py", line 9, in <module>
dmm = UT61EPLUS()
^^^^^^^^^^^
File "/home/kris/unit_ut61eplus-main/ut61eplus/ut61eplus.py", line 313, in __init__
self.dev.open(self.CP2110_VID, self.CP2110_PID)
File "hid.pyx", line 142, in hid.device.open
OSError: open failed
i have the library installed https://github.com/trezor/cython-hidapi through archlinux package manager
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.