Can anyone help setting up PiGlow on OSMC?

First Script

This script should enable the piglow and make it work

    #!/bin/bash
    touch /etc/modprobe.d/raspi-blacklist.conf
    sudo sed -i /etc/modprobe.d/raspi-blacklist.conf -e "s/^blacklist[[:space:]]*i2c-bcm2708.*/#blacklist i2c-bcm2708/"
    		
    sudo modprobe i2c-bcm2708
    sudo modprobe i2c-dev
    sudo dtparam=i2c_arm=on" | sudo tee -a /boot/config.txt
    echo "i2c-dev" | sudo tee -a "/etc/modules"
    echo "i2c-bcm2708" | sudo tee -a "/etc/modules"
    sudo apt-get --force-yes --yes install python-dev python-pip python-smbus
    sudo pip install piglow -I
    reboot

Second script

This script should be the software part think this one is just testing stuff still worth installing since you can see that everything is working the way it should.

    #!/bin/bash
    WORKING_DIR=$USER_HOME/Pimoroni
	if ! [ -d $WORKING_DIR/piglow ]; then
		echo "Downloading PiGlow examples..."
		export TMPDIR=`mktemp -d /tmp/pimoroni.XXXXXX`
		cd $TMPDIR
		git clone https://github.com/pimoroni/piglow
		cd $WORKING_DIR
		mkdir piglow
		cp -R $TMPDIR/piglow/examples/* $WORKING_DIR/piglow/
		rm -rf $TMPDIR
		echo ""
		success "Examples copied to $WORKING_DIR/piglow/"
	
	else
		if confirm "Examples already exist, shall I replace them?"; then
			mv $WORKING_DIR/piglow $WORKING_DIR/piglow-backup
			echo "Updating PiGlow examples..."
			export TMPDIR=`mktemp -d /tmp/pimoroni.XXXXXX`
			cd $TMPDIR
			git clone https://github.com/pimoroni/piglow
			cd $WORKING_DIR
			mkdir piglow
			cp -R $TMPDIR/piglow/examples/* $WORKING_DIR/piglow/
			rm -rf $TMPDIR
			echo ""
			warning "I backed up the examples to piglow-backup, just in case you've changed anything!"
			success "Examples copied to $WORKING_DIR/piglow/"
		fi
	fi

	echo ""
	
	success "All done!"
	echo ""
	echo "Enjoy your new PiGlow!"
	echo ""
	echo "Note: PiGlow currently supports Python 2 only."
	echo ""

else
	echo ""
	echo "Aborting..."
	echo ""
fi

try that see if this gets it working removed the raspbian parts in the script so that it installs the software needed for communicating with the piglow its not using any necessary raspian specific software yet they implemented a raspbian check for some dumb reason, try it worst of it fails or works :smiley: who knows kinda hard to do this with no actual hardware.

if this stuff works then my guess is that the kodi addon for piglow is gonna work also