Ehh first write TUTORIAL for others That will also help us understand what EXACTLY did you do
I do NOT support "latest fw" at ALL. If you have one you should block updates on router and wait for it to STOP being "latest":) If you want me to help you please paste FULL log(s) to "spoiler"/"code" bbcodes or provide link(s) to pasted file(s) on https://pastebin.com Otherwise "NO HELP"!!!If you want root DISABLE internet access to your device!!!!DO NOT EVER INSTALL FIRMWARE UPGRADE !!!!
Now i write simple widget in one button and when i click on i want to execute skript.sh but a don't know how to do. I write function in Main.js (clickbutton) but i dont know how i can run skript in function(clickbutton)?
matrixabc wrote:Now i write simple widget in one button and when i click on i want to execute skript.sh but a don't know how to do. I write function in Main.js (clickbutton) but i dont know how i can run skript in function(clickbutton)?
A script sh on widget mode run via local php server.
I think a simpler solution (without to write a widget) will run your script via the RCremap with CMD support.
However, if you continue to insist on the widget then I suggest you see my solution OnlineTV and listCH.
There, run scripts sh.
sorry for my english UE40F8000 (T-FXPDEUC-1136.0), BD-D5500
Of course it can be done in a single script with the flow parameters, but it is easier to describe
3. Create directory on TV (root for E/F series): /mnt/phpsysinfo/yourScripts
4. The files copy to the directory:
Main.runScriptSHviaPHP = function(name)
{
if (name != null && name != "") {
var ip = '192.168.0.2';// IP TV, it set manualy or it can get via function GetIP() in Network plugin
var phpURL = 'http://' + ip + ':1080/phpsysinfo/yourScripts/' + name + '.php';
Main.runPHPScript(phpURL);
}
};
3. Use function Main.runScriptSHviaPHP in your code e.q.: