I downloaded the provided code and I can run it without issue…as root. For some reason when I try to run as the user which I installed the software as, I get a big stack of permission issues.
File “./BerryAutoPotter.py”, line 15, in
automationhat.relay.one.off()
File “/usr/lib/python2.7/dist-packages/automationhat/init.py”, line 234, in off
self.write(0)
File “/usr/lib/python2.7/dist-packages/automationhat/init.py”, line 273, in write
self.setup()
File “/usr/lib/python2.7/dist-packages/automationhat/init.py”, line 259, in setup
setup()
File “/usr/lib/python2.7/dist-packages/automationhat/init.py”, line 354, in setup
_ads1015 = ads1015(smbus.SMBus(1))
IOError: [Errno 13] Permission denied
I did a little digging with trying to open up permissions on the files inside the automationhat folder, but to no avail. Are there some external root level dependencies your code expects? Do I need to be able to sudo without password or something?