(2018-08-28, 07:27)idorel77 Wrote: (2018-08-28, 04:48)mbrown4ayl Wrote: (2018-08-26, 08:08)idorel77 Wrote: Hi , you have to make a script inside the skin/script/your_file_name.py , like here: https://github.com/idorel77/skin.CarPC-t...er/scripts
inside your script will be something like this:
#######
import os
import xbmc
os.system("your terminal command");
#########
And your action command will be:
RunScript("special://skin/scripts/your_file_name.py")
Have fun!
Hello again Idorel77,
Please be kind I am rather new to raspberry pi and Kodi. As you had suggested I went searching for the "script" folder and I could not find it in the "skin.CarPC-Carbon" . However i did find a folder named that in your "skin.CarPc-touch-carbon" file. So I did try to install that but it wont install and says "The dependency on xbmc.gui version 5.3.0 could not be satisfied". So that add-on will not work for whatever reason. I am running Raspbian Stretch with Kodi 17.6. I have even installed Raspbian Jessie with Kodi 17.3 and still no luck with being able to install "skin.CarPc-touch-carbon". What am I doing wrong? I have to be missing something. Or is there another way to launch a program (example OpenAuto) from an "action button" in Kodi with Carpc-Carbon? Please help! I am really struggling with this one! Thanks!!!
Did you installed this skin? https://github.com/idorel77/skin.CarPc-Carbon
Download as zip file , in kodi install addon as zip file.
Try to look in this folder after installed addon:~/.kodi/userdata/
and enable - Show hidden files and directories
Yes. That is the skin I installed. And installed perfectly fine.
However I am not seeing a "scripts" folder. This is what I'm seeing under "/home/pi/.kodi/userdata" folders- addon_data, Database, keymaps, library, peripherals_data, playlists, Thumbnails. Also there are 5 additional files - favourites.xml, guisettings.xml, profiles.xml, RssFeeds.xml, sources.xml. That is all I see. I have additionally went into all of the previously mention folders and I still do not see a folder named "scripts".
This is what I have tried....I tried to create a "new folder" and named it "scripts" inside that folder I created a file named "androidauto.py" .
The androidauto.py code reads as follows
###############
import os
import sys
os.system ("/home/pi/openauto/bin/autoapp");
#########################
When it is ran in Thonny it works perfect and launches OpenAuto program fine.
But when I go into Kodi and which has a navigation "action button" and has the following command ... RunScript("special://skin/scripts/androidauto.py")..... nothing happens.
Any ideas would be greatly appreciated.
Thanks !!!