Open Schmediii opened 3 years ago
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 https://github.com/tatobari/hx711py/issues/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:
Tare done! Add weight now... Traceback (most recent call last): File "gewicht1.py", line 65, in <module> val = hx.get_weight(5) AttributeError: 'HX711' object has no attribute 'get_weight'
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. Bevore i installed hx711 with the code: pip3 install HX711
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?
Well, i made a repository for th gewicht1.py. Bevore i installed hx711 with the code: pip3 install HX711
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? Been pounding my head because of this :/
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