I have a light sensor that uses I2C for data transmision. Now I want to display that data on a Website.
The problem is www-data can't access I2C. I use a Python script that gets run by PHP (I know it's not the best idea) and it throws
ERROR: "PermissionError: [Errno 13] Permission denied"
I tried giving the script 777 and gave the file to www-data. Nothing changed.
What can I do?