-
Notifications
You must be signed in to change notification settings - Fork 154
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'HX711' object has no attribute 'get_weight' #41
Comments
Any chance you couls post your code so we know how you've implemented it?
…On Sat, Apr 17, 2021, 17:13 Schmediii ***@***.***> wrote:
Hello everyone,
I tested your programm, but i have a error: AttributeError: 'HX711' object
has no attribute 'get_weight'.
What have i done wrong? Can someone help me.
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#41>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABVNTWLBS3SDTX2AMD5QTXLTJHTYHANCNFSM43DNKYDA>
.
|
Yes sure, the code is from the example.py: https://github.com/tatobari/hx711py/blob/master/example.py And this is the error message:
|
Hummm, this repository doesn't have any file called gewicht1.py. Is there a chance that you might be calling hx.get_weight() from a file.on your code called gewicht1.py but you didn't import hx711 correctly? |
Well, i made a repository for th gewicht1.py. I now tried it with this tutorial: https://tutorials-raspberrypi.de/raspberry-pi-waage-bauen-gewichtssensor-hx711/ So i installed the library with: git clone https://github.com/tatobari/hx711py Then in the repository: cd hx711py I run then the example.py Now the code works but i become just many 0.0. Is this right? |
Hi, have you sold your issues where your load cell only reads 0.0? Let me know 👍 |
Hello everyone,
I tested your programm, but i have a error: AttributeError: 'HX711' object has no attribute 'get_weight'.
What have i done wrong? Can someone help me.
Thank you
The text was updated successfully, but these errors were encountered: