Skip to content
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

"Cannot initialize communication with INA219 (output)" #14

Closed
hellresistor opened this issue Jul 28, 2021 · 2 comments
Closed

"Cannot initialize communication with INA219 (output)" #14

hellresistor opened this issue Jul 28, 2021 · 2 comments

Comments

@hellresistor
Copy link

hellresistor commented Jul 28, 2021

heya!
Some ideas for this error?

root@rpi4-20210718:~# python3 UPSPlus_mqtt/fanShutDownUps.py
UPS-Plus to MQTT version 20210624 Copyright (C) 2021  https://github.com/frtz13
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under conditions of the GPL (see http://www.gnu.org/licenses for details).

Type ctrl-C to exit
Cannot initialize communication with INA219 (output). Error message: Could not determine default I2C bus for platform.

No info on log folder.

should need install extra packages?

@frtz13
Copy link
Owner

frtz13 commented Jul 28, 2021

just a guess: try to add the busnum parameter in line 626, to make it look like:
inaRPi = INA219(0.00725, busnum=DEVICE_BUS, address=0x40)
can't check it myself (currently away from home).
if ok, the same in line 635.

@hellresistor
Copy link
Author

hellresistor commented Jul 28, 2021

I have tryed with on the last post situation.

geeekpi/upsplus#39 (comment)

and continue getting issue. (error respectivly)

Edit:

root@rpi4-20210718:~# i2cget -y 3 0x17 25
0x01
root@rpi4-20210718:~# i2cset -y 3 0x17 25 0
root@rpi4-20210718:~# i2cget -y 3 0x17 25
0x00

FRIEND!!! NEED CHANGE ON LINE 635 TOO!!!
IS WORK! without error

root@rpi4-20210718:~# python3 UPSPlus_mqtt/fanShutDownUps.py
UPS-Plus to MQTT version 20210624 Copyright (C) 2021  https://github.com/frtz13
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under conditions of the GPL (see http://www.gnu.org/licenses for details).

Type ctrl-C to exit

Thank You

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants