I have a Python app that reads an i2c current sensor but I don't want to run it as root. I can set the group and permissions from the root account and then my non-root user can read and write the device.
However, the device's group and permissions revert to root and 600 upon
reboot. I trie defining a rule for UDEV but either it doesn't work or (more likely) I don't have the proper syntax.
Any suggestions?