Posts: 74
Joined: May 2017
Reputation:
0
2017-05-22, 17:17
(This post was last modified: 2017-05-22, 17:18 by ablues10.)
Im trying not to be a forum noob, but I seem to keep running into the same issues. Honestly all that I want should be really simple. However, I dont know anything about coding (go figure). I have Kodi set up on my pi 3. I have successfully SSHed into it. I cannot however activate any terminal commands such as sudo anything. All I need is an addon that i can click on Kodi's main screen that can turn on/off a relay 3.3v+ on, 0.0v off (using GPIO). I actually need 4 different ones that I can turn on and off as needed.
TL;DR Want an addon (or 4) that can turn on/off GPIO with a mouse click.
Posts: 12,461
Joined: Oct 2014
Reputation:
601
Thread moved to addon development
Posts: 1,109
Joined: Feb 2011
Reputation:
39
I would hope that this is possible without using sudo. Which operating system/distro are you using?
The latest debian version allows non-root access to the GPIO pins. If that's the case then I would think this should be fairly easy to do.
Posts: 1,663
Joined: Jun 2011
Reputation:
119
LibreELEC does not have sudo because SSH works with root privileges, however LE console has limited capabilities compared to full-featured Linux systems like Raspbian. As for accessing GPIO, there are Python libs for that that can be used in Python addons.
Posts: 1,109
Joined: Feb 2011
Reputation:
39
The addon bit should be fairly easy. The harder bit is just making sure you've got permission to access the pins from inside Kodi.
Take a look at the above posts and let me know if you have any questions.
Posts: 1,109
Joined: Feb 2011
Reputation:
39
Then the GPIO pins should work, shouldn't they?
It does seem a bit unnecessary to be running Kodi as root. Does that happen by default or does the OP need to do something different to enable that.