modmypi / PiModules

GNU General Public License v3.0
54 stars 26 forks source link

UPS Pico HV3.0B+ HAT Model Stack 450 on OSMC #23

Open r0vill0s opened 6 years ago

r0vill0s commented 6 years ago

Just bought a PICO UPS HAT and I need too use it for OSMC, is there a complete tutorial on how to do it?not Familiar with programming, or if there is an image ready available with UPS Software for OSMC that will be appreciated.

n-i-x commented 5 years ago

The instructions for the device don't work properly for OSMC as the apt repo does not contain the python-rpi.gpio package. Under OSMC, you will need to install rpi.gpio via pip instead of apt.

Instead of running the following command: sudo apt-get install python-rpi.gpio

You will need to run the following commands: sudo apt-get -y install python-dev python-setuptools python-pip gcc build-essential sudo pip install wheel sudo pip install rpi.gpio

From this point on, the rest of the commands in the instruction manual will work fine.