Giter Club home page Giter Club logo

unit_ut61eplus's People

Contributors

ljakob avatar stache3000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

unit_ut61eplus's Issues

No steup.py

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.

Issue with `ctypes`

Issue: ctypes

line 5:

from glibc import ctypes

should be

import ctypes

Versions

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.

4 Bugs

Hi!

First of all thank you for providing this useful multimeter tool! I found 4 bugs in the Measurement class:

  • Instead of "DIODE", you wrote "DIDOE"
  • On line 146, in the 'unit' property, it should be return self._data['unit'] instead of return self._data['display_unit'].
  • The Decimal.rotate function doesn't work for right-shifting (for negative exponents)
  • When in overload mode, the 'unit' variable retains the exponent prefix, e.g. "mV" instead of "V".

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

oserror open failed.

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

unexpected error

hello ljakob i might need some help from you

I don't know what's going on, but it doesn't work correctly on my device, the error is as follows

Snipaste_2022-07-12_12-03-57

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.