Open SimpleSon opened 2 years ago
Unfortunately I'm having the exact same issue after upgrading to Bullseye.
I have fallen back to just using the stats display without the UPS info. I can get that to run properly based on the original work of @mklements, but as he suggested, I don't know that the UPS is ready for Bullseye.
adafruit_gpio is depreciated and should be changed to blinka. Next, INA219 is the real issue here. Seems that the library has not been ported to bullseye just yet.
I was able to change a few things and get it working with bullseye, with charge/discharge/voltage/etc...
Here is my working code, including charging/discharging/voltage/etc for this project under 11.1, Raspbian Bullseye.
Here is my working code, including charging/discharging/voltage/etc for this project under 11.1, Raspbian Bullseye.
excuse me kind sir, after trying to apply your code to my system I appear to be running the script for a little while(varies from 1 min to 10 mins) then I get an error:
aReceiveBuf = bus.read_i2c_block_data(DEVICE_ADDR, 0, 32) ioctl(self.fd, I2C_SMBUS, msg) OSError: [Errno 121] Remote I/O error
I am able to start it up again, and it will run for a little while (again from 1-10 minutes) then it will give that error. any tips or information about fixing this issue?
Here is my working code, including charging/discharging/voltage/etc for this project under 11.1, Raspbian Bullseye.
excuse me kind sir, after trying to apply your code to my system I appear to be running the script for a little while(varies from 1 min to 10 mins) then I get an error:
aReceiveBuf = bus.read_i2c_block_data(DEVICE_ADDR, 0, 32)
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
I am able to start it up again, and it will run for a little while (again from 1-10 minutes) then it will give that error. any tips or information about fixing this issue?
Look in syslog, message, daemon, or kern and see what shows there it should show errors and warning related to the device and give much more details. It could be as simple as a loose connection.
Here is my working code, including charging/discharging/voltage/etc for this project under 11.1, Raspbian Bullseye.
HI, can you post the code here it seams, I don't have authorisation to download it. Thank you.
Here is my working code, including charging/discharging/voltage/etc for this project under 11.1, Raspbian Bullseye. https://street-tek.dev/stats.py
HI, can you post the code here it seams, I don't have authorisation to download it. Thank you.
Woops, I moved that to a closed system and forgot about a few links.
Code did not seem to format correctly. I attached as a txt file, just rename it to code.py (py files are not allowed for some reason)
Thank you for the script, but still has some issues, probably some dependencies. Installed Ina-219, but for some reason the script cant-find it (I'm so new in this!). Can you help me. Thank you.
Traceback (most recent call last):
File "/home/PIpc/Downloads/stats.py", line 105, in
That needs to be run on the pi itself, so ssh in and run from there.
It is run on the pi itself. The print screen is from the monitor hock it to the pi. I try from the comand prom - same answer. Probably is somthing small but I luck of experiance.
Updated to the latest Raspberry Pi OS with Bullseye and now I am getting the following error when running the script. I have one of the original versions of this script on my prior build before your fork of that project, which works, but would eventually error out. I copied it over to this new Bullseye build and at immediately throws the same error as my fresh script.