I'm trying to execute code through an addon settings page.
The libreelec kodi.log says it successfully ran the script, but nothing happens.
And without a readout to see where it exactly failed, I've spent hours trying to get this to work,
with slight variations, over and over...
The settings.xml button looks like this:
<setting label="Turn On Fan" type="action" action="'RunScript(/storage/.kodi/addons/script.hellotestwindow/script/TurnFan_On.py)')"/>
The code in the script:
(Which is a python script, idk if that matters)
I have tried using:
I have also tried test code in which I touch/nano/echo a file, to see where it gets created, or if I can create a file but nothing.
Maybe I'm not understanding how this process works fully.
I'm trying to execute code as if it was in the CLI.
(realistically at this point, I'd settle for anyway of doing this)
Also if anyone could figure out a way to get to "/storage/" from that code execution that would be awesome as well.
After this I need to figure out how to run an .sh installer, but all of it hinges on the ability to run code in this way and to be able to get to "storage/".
Anything will help.
THANKS IN ADVANCE!!!!!