[SOLVED] Adafruit permission denied

OK I found the solution and how is working!!

Here were my steps:
TO fix the permission error:

Based on: OpenHAB sudo [Exec Binding]

  1. sudo chmod +x /etc/openhab2/scripts/ws2801color.py

  2. sudo addgroup openhab spi

  3. sudo pip3 uninstall adafruit-ws2801
    (then remove any adafruit files and libraries found in /usr/local/lib/python3.5/dist-packages/)

  4. sudo visudo -f /etc/sudoers.d/010_pi-nopasswd

  5. type in the file:
    openhab ALL=(ALL) NOPASSWD: ALL
    (this ensures that no password will be prompted when running the script)

Thats it!

Enjoy some LED stip craziness!

1 Like