Sorry this might be considered necromancing, but I noticed that this topic is still the top hit and getting a few views and I never did report back with my resolution. So, I typed up the following guide as I did get it working.
First, install Java on OSMC
I used “Java SE Development Kit 8 Update 33 for ARM”. Place this anywhere, but I placed it at the following location and for purposes of making this a copy/paste tutorial, you can do the same. If you choose to place it elsewhere, make sure you update the copy/paste sections with the correct folder locations
Then, download this Limelight pack: MEGA
IMPORTANT - you need to edit the stream.sh file with your rigs static IP instead of mine, or if you want to avoid that, set your gaming rig’s static IP on your router to 192.168.1.214 and don’t bother changing any files.
Place limelight.jar in /moonlight
Place limelight-watchdog.sh limelight.py limelight.sh and stream.sh in /home/osmc
Next, for simple ease of use and laziness I have included (in the stream.sh file) a call to etherwake, you will want to edit this file and change the IP in that etherwake to your own gaming rig’s static IP (set this on your router). But, in order for etherwake to work, you’ll need to install the debian package for it. You also want to set in your computer’s power settings to not require a password on wake, otherwise you still have to go to the gaming right and log in.
sudo apt-get update
sudo apt-get install etherwake
Next, place the Java directory in the directory /opt. I used Filezilla to do this rather than using unix ssh. You can fix the permissions issue by logging in ssh as osmc/osmc and executing the following command to change the password for root and use it under Filezilla
sudo passwd root
Then, enter a new password twice. Once that’s completed, you can log in to OSMC using SFTP in Filezilla using root/whatever password you chose.
sudo update-alternatives --install “/usr/bin/java” “java” “/opt/java/bin/java” 1
This sets the OS to understand that when you execute the command Java, it uses the JDK you’ve placed into /opt, rather than having to type in the entire directory path to wherever you put it.
Next, place limelight.jar in the directory /moonlight (you can change this, I just titled it moonlight as it’s going by the project name now on github. If you change this to limelight, update the downloaded files accordingly.) I have included another version of limelight.jar I had found on a forum somewhere that fixed gurgly audio issues in the package I linked above
Now, another user above gave all the code in the zip files I attached, so thank him for those. He also gave a good indication of how to set the limelight shortcut up in the OSMC default skin. As I don’t use this skin, I have used Advanced Launcher (I use Aeon MQ5) and created an advanced launcher pointing the my limelight.py file, which is a python script that puts everything together, so there’s the option for all the others who choose to use a different skin.
After all this is said and done, when I scroll on over with the remote and select my “Games” linked (advanced launcher pointing to limelight.py) kodi shuts off & sends an etherwake signal to wake up the gaming rig, takes a few seconds to give kodi time to fully close and the rig to wake, launches limelight, opens the steam big picture stream. After I play whatever I was going to play and quit back to steam, I go to Quit on the steam menu and select “Stop Streaming” and limelight-watchdog.sh closes out the stream and reopens Kodi all seamlessly.
I’ll admit, I probably won’t be checking back here often. If these don’t quite work for you right off the bat, check the following
You’ve edited all the IP addresses within all the files to point towards your rig’s static IP - OR - changed your rigs static IP to 192.168.1.214.
You’ve placed all the files in the proper locations. You of course can change these locations, but update the files accordingly.
You’ve installed Java properly
And of course, that you have steam installed, and are using GeForce Experience with a compatible NVIDIA graphics card
Hope this helps somebody, somewhere!