(solved) I2c usage via python without sudo

Hi
is there a way to use I2C
SMBUS
without Sudo via python in OSMC?

Thanks T

Some udev rules may help.
Which /dev nodes are you using?

Hi
for i2c

using /dev/i2c-1

self.bus = SMBus(self._port)

thanks

You can change the permissions with a udev rule or run the script with privileges

Sam

ok thanks will try

sudo nano /lib/udev/rules.d/60-i2c-tools.rules
KERNEL==“i2c-0” , GROUP=“i2c”, MODE=“0660”
KERNEL==“i2c-[1-9]*”, GROUP=“i2c”, MODE=“0666”

is working
solved thx