This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
openplotter-i2c 3.x.x released
#13
(2022-10-09, 06:16 PM)hrios Wrote:
(2022-10-09, 05:50 PM)Sailoog Wrote:
(2022-10-09, 04:57 PM)hrios Wrote:
(2022-10-09, 02:14 PM)Sailoog Wrote:
(2022-10-09, 01:45 PM)hrios Wrote: pi@raspberrypi:~ $ openplotter-i2c
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2c.py", line 313, in OnAddButton
    for i in self.i2c_sensors:
AttributeError: 'MyFrame' object has no attribute 'i2c_sensors'

Have you approved the signal k connection?

EDITED

I have been able to reproduce your error, you must approve the signal k connection before adding sensors. I will disable the "Add" button in those cases. thanks for reporting, please let me know if your BMP3XX sensor works and I will mark it as "tested".

I would like to do it but the approve button in I2C settings is disabled and i dont have any request message to aprove or allow in signal K.

Also Openplotter I2C device is at the list of devices with admin permissions and device_id already. But no connection is created... and no new token to approve.

I tried uninstalling I2C and reinstalling but same situation.

Could you provide more details about your context? I can see that you are not using an openplotter image.

Raspberry OS version? 32bit 64 bit? openplotter settings version? what happenbs when you click "check system"?
Im using Raspbian 11 bullseyes on armv7l 32 bits, openplotter settings 3.4.4 and in system check is asking me to allow permissions read/write for I2C in Signal K.

I think is something related on comunication in  between signal k and the openplotter installer
Do you think i should reinstall signal k? I would like to avoid this option actually...

I finnally deleted the old client_id for I2C device and I could approve the device. Once refresh says its allowed but i cant add sensors.

pi@raspberrypi:~ $ openplotter-i2c
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2c.py", line 142, in OnRefreshButton
    self.readSensors()
  File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2c.py", line 253, in readSensors
    channel = self.i2c_sensors[name]['channel']
KeyError: 'channel'
Error: Could not open file `/dev/i2c-0' or `/dev/i2c/0': No such file or directory
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/openplotterI2c/openplotterI2c.py", line 314, in OnAddButton
    if address == self.i2c_sensors[i]['address'] and channel == self.i2c_sensors[i]['channel']:
KeyError: 'channel'


In SignalK no proper connection is created, but just temporary connection activity string related to the device_id.

Ok no worries ill play with it... U dont waste your time with this. I was just asking in case it was a trivial mistake of mine... or something obvious  Confused tx anyway
Reply


Messages In This Thread
openplotter-i2c 3.x.x released - by Sailoog - 2022-10-08, 02:35 PM
RE: openplotter-i2c 3.x.x released - by Polonioli - 2022-10-08, 11:32 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-09, 11:31 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-09, 11:30 AM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-09, 01:45 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-09, 02:14 PM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-09, 04:57 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-09, 05:50 PM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-09, 06:16 PM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-09, 08:21 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-10, 11:18 AM
RE: openplotter-i2c 3.x.x released - by TVR - 2022-10-09, 03:33 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-09, 05:52 PM
RE: openplotter-i2c 3.x.x released - by nebosa - 2022-10-09, 06:39 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-10, 11:14 AM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-10, 05:10 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-10, 05:23 PM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-10, 05:46 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-10, 06:01 PM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-10, 06:11 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-10, 06:20 PM
RE: openplotter-i2c 3.x.x released - by hrios - 2022-10-10, 06:38 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-10, 06:42 PM
RE: openplotter-i2c 3.x.x released - by nebosa - 2022-10-16, 10:04 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-18, 09:35 AM
RE: openplotter-i2c 3.x.x released - by winkaj - 2022-10-17, 04:27 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-10-18, 09:41 AM
RE: openplotter-i2c 3.x.x released - by nebosa - 2022-10-17, 04:38 PM
RE: openplotter-i2c 3.x.x released - by winkaj - 2022-10-17, 04:59 PM
RE: openplotter-i2c 3.x.x released - by RichFind - 2022-10-18, 11:22 PM
RE: openplotter-i2c 3.x.x released - by nebosa - 2022-10-19, 09:52 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-05, 07:43 PM
RE: openplotter-i2c 3.x.x released - by RichFind - 2022-11-06, 01:27 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-06, 11:33 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-06, 11:59 AM
RE: openplotter-i2c 3.x.x released - by RichFind - 2022-11-06, 06:44 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-07, 07:45 PM
RE: openplotter-i2c 3.x.x released - by RichFind - 2022-11-08, 03:56 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-08, 06:44 PM
RE: openplotter-i2c 3.x.x released - by RichFind - 2022-11-08, 08:29 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-09, 04:00 PM
RE: openplotter-i2c 3.x.x released - by tobias.e - 2022-11-12, 08:04 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-12, 08:21 PM
RE: openplotter-i2c 3.x.x released - by tobias.e - 2022-11-12, 09:22 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-14, 01:44 PM
RE: openplotter-i2c 3.x.x released - by tobias.e - 2022-11-14, 08:35 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-15, 11:48 AM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-25, 09:49 PM
RE: openplotter-i2c 3.x.x released - by tobias.e - 2022-11-26, 07:44 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-26, 07:55 PM
RE: openplotter-i2c 3.x.x released - by tobias.e - 2022-11-26, 08:15 PM
RE: openplotter-i2c 3.x.x released - by Sailoog - 2022-11-26, 08:30 PM
RE: openplotter-i2c 3.x.x released - by DroZDi - 2023-01-01, 09:58 PM
RE: openplotter-i2c 3.x.x released - by ojessie - 2023-10-21, 11:17 AM
RE: openplotter-i2c 3.x.x released - by ojessie - 2023-10-21, 02:24 PM
RE: openplotter-i2c 3.x.x released - by ojessie - 2023-10-21, 04:04 PM
RE: openplotter-i2c 3.x.x released - by ojessie - 2023-10-21, 04:34 PM
RE: openplotter-i2c 3.x.x released - by ojessie - 2023-10-22, 10:25 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)