the error
File "/var/www/html/python/PintDispatch.py", line 564, in sendflowcount
msg = "RPU:FLOW:" + str(pin) + "=" + str(count) +":" + rfid
I changed the code to
msg = "RPU:FLOW:" + str(pin) + "=" + str(count) +":" + str(rfid)
and have it running. I tried the tare again and its seems to be...
I tried to do an update but it didn't work, there was no changes.
So I did a full install again.
I got an error trying to update the values for the loadcell config "cannot execute query" and "changes could not be saved", even though it says this it still seems to save it.
I also get a error...
So do I need to turn on "Do not allow individual tap configurations" ?
If I turn it on... then under the keg the current weight goes from the correct weight of 10lbs to 257lbs.
The keg empty weight I can't seem to change it always reverts back to the same value.
Where do I set these four...
in the
def tare(self):
self.dispatch.setLoadCellTareOffset(self.hx711.get_offset())
needs to be changed to
self.dispatch.setLoadCellTareOffset(self.tapId, self.hx711.get_offset())
now I get the correct weight in the Loadcell gui, when it refreshes. Although the main gui still isn't...
1. adding in the Tare() function fixes the missing zero() function , but then I get an for self.dispatch.setLoadCellTareOffset(self.hx711.get_offset())
missing 1positional argument
3. as far as I can tell from the Hx711 code, is that when you call tare, it zeros the scale in library such that...
Thanks, this worked.
There are a couple other things I have noticed.
1. When I click on Tare, I get the error "HX711" object has no attribute 'zero'
Its trying to call a function that doesn't exist
self.hx711.zero() but hx711 doesn't have a zero function
Shouldn't we be using the tare()...
its seems like the issue has something to do with how the hx711 library handles even and odd amount of samples
if you change the code in flowmonitor.py from
def getWeight(self):
return self.hx711.get_weight_mean(20)
to
def getWeight(self):
return...
It turns out GPIO 5 and GPIO6 are on pin 29 and pin31, not 18 and 22
So now it is returning values in the log now, but still crashes.
2023-07-13 13:14:21 RPINTS: Twos: 0x012882
2023-07-13 13:14:21 RPINTS: Raw Byte Values [1, 39, 120]
2023-07-13 13:14:21 RPINTS: Twos: 0x012778
2023-07-13...
I modified the example.py to work with the hx711,py in the var/www/html/python/ directory.
What I found was the following...
#GPIO.setmode(GPIO.BCM)
#hx = HX711("test", 5, 6) #WORKING :)
GPIO.setmode(GPIO.BOARD)
hx = HX711("test", 18, 22) #NOT WORKING :(
the top code worked and returned...
ok when I use 18 and 22 it tries to take a measurement from the load cell but measures 0 everytime and then errors out.
When I look at the hardware IO I have "response" on 18 which is my Data line from the hx711 and I have "Command" wired to 22 which is my CLK for hx711
2023-07-13 07:30:12...
I want to use GPIO5 and GPIO6 which are pin number 18 and pin number 22 on the pi.
Does the Load Cell config page want the GPIO number or the pi pin number?