Create installer stick, open syslinux.cfg, change DEFAULT installer to DEFAULT run and boot.
Posts by vpeter
-
-
It should be part of network-tools addon.
-
what is the curl cmd to do a channelswitch ?
-
Script could be smarter to check if pvr is ready and nit hardcoded time.
Maybe it is something wrong with required channel id? Does it switch to it with curl command?
-
Well, I'm not sure what you are doing but works perfectly fine for me. It is probably wrong approach but it works. Also sleep works as you can see:
Code
Display More18:54:21.011 T:140349246789376 DEBUG: CPythonInvoker(2, /storage/.kodi/userdata/autoexec.py): start processing 18:54:21.196 T:140349246789376 DEBUG: CPythonInvoker(2, /storage/.kodi/userdata/autoexec.py): the source file to load is "/storage/.kodi/userdata/autoexec.py" 18:54:21.199 T:140349246789376 DEBUG: CPythonInvoker(2, /storage/.kodi/userdata/autoexec.py): setting the Python path to /storage/.kodi/userdata:/usr/share/kodi/addons/script.module.pil/lib:/usr/share/kodi/addons/script.module.pycryptodome/lib:/usr/lib/python27.zip:/usr/lib/python2.7:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload:/usr/lib/python2.7/site-packages:/usr/lib/python2.7/site-packages/gtk-2.0 18:54:21.200 T:140349246789376 DEBUG: CPythonInvoker(2, /storage/.kodi/userdata/autoexec.py): entering source directory /storage/.kodi/userdata 18:54:21.444 T:140349246789376 NOTICE: peter before sleep 18:54:26.449 T:140349246789376 NOTICE: peter after sleep 18:54:26.452 T:140349246789376 NOTICE: peter after json 18:54:26.452 T:140349246789376 INFO: CPythonInvoker(2, /storage/.kodi/userdata/autoexec.py): script successfully run 18:54:26.458 T:140349246789376 INFO: Python script stopped 18:54:26.459 T:140349246789376 DEBUG: Thread LanguageInvoker 140349246789376 terminating 18:54:26.459 T:140350134870784 NOTICE: AddOnLog: PVR IPTV Simple Client: peter GetChannelStreamProperties 2 url: telemach.php?channel=slo1-hd 18:54:26.472 T:140350134870784 DEBUG: Loading settings for pvr://channels/tv/All channels/pvr.iptvsimple_323346058.pvr 18:54:26.472 T:140350134870784 DEBUG: CPlayerCoreFactory::GetPlayers(pvr://channels/tv/All channels/pvr.iptvsimple_323346058.pvr) -
And you expect that edit4ever will see it

Why not write in his thread to enhance the only addon exists? Until someone write something new.
-
Then you should write your opinion in this thread. Opening one new one without even describing issues is not really a productive.
-
Did you even look what I posted in post #2? tvh2kodi addon - configure tvheadend from kodi interface
-
And you are using tvheadend?
-
Like this for tvheadend?
-
Please show the link to the "last post".
But this doesn't help with your problem - it just shows my perspective and view on libreelec.
Anyway, can you try without sudo?
-
CvH: You should read my last post regarding such problems and me

-
The problem is that script is executed BEFORE pvr client is even active. I changed my script above and add short delay with sleep. Try it - it works here.
-
Did you even get channel id with curl? If not autoexec will not help you.
Enable kodi debug log and you will see what is happening with autoexec.
-
can you tell me the correct syntax
I fixed my code above.
But first you need to get channel list to get correct id of a program.
-
I made mistake on line 6 with jsonCmd. Now it is ok.
-
You can retrieve the channel list with command
Codecurl -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "PVR.GetChannels", "params": {"channelgroupid": "alltv", "properties" :["uniqueid"]},"id": 1}' http://127.0.0.1:8080/jsonrpclook for channel id and then use autoexec.py something like
Codeimport xbmc import xbmcgui import xbmcaddon import json import time # sleep few seconds time.sleep(5) # play a channel 149 jsonCmd = '{"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"channelid":149}}}' jsonRv = xbmc.executeJSONRPC(jsonCmd)
I think last channel can be played automatically (set somewhere in pvr settings). -