NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC X-NEWA v
« Previous 1 … 4 5 6 7 8 … 13 Next »
Autoexec.py

 
  • 0 Vote(s) - 0 Average
Autoexec.py
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#1
2016-10-12, 04:48 PM
For several years I have been using autoexec.py below to start X-NEWA in XBMC then KODI under OpenElec and now LibreElec running KODI 16.1 but it no longer works with the latest LibreElec Alpha running KODI 17 Beta 3.

import xbmc
xbmc.executebuiltin('XBMC.RunScript(script.xbmc.x-newa)')

Instead I followed the instructions in the sticky and edited the addon.xml file in the "script.xbmc.x-newa" directory and removed the three characters but all this seems to do is delete X-NEWA after a reboot!!

What am I doing wrong Martin?

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
lost@c
Offline

Member

Posts: 215
Threads: 22
Joined: Jul 2008
#2
2016-10-12, 05:18 PM
I have had to recently go into this too after an update to openelec. Just checking, you say "the 3 characters" but there are actually 5 being the !-- at the start of the line and -- at the end.

<!--extension point="xbmc.service" library="default.py" start="startup"></extension-->
<extension point="xbmc.service" library="default.py" start="startup"></extension>

Hope this helps
Win7 Enterprise, ASUS Prime H270-Pro, i3 7100 @ 3.9, 4GB Ram, 128Gb SSD, 2 x 1000Gb HDD, 1 x 2000Gb external HDD, Hauppauge HVR-2200, Hauppauge HDR-4000, SiloconDust HD HomeRun Dual, 42" LG LCD. Client - Raspberry Pi 3 Panasonic 32" LCD
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#3
2016-10-12, 06:55 PM
Doh!!

Thank for that! I was sort of asuming it was the equivalent of REM in a batch file so didnt look at the end of the line which is hidden when I logged in via Putty. I knew there had to be a simple answer!

Thanks again

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#4
2016-10-12, 10:59 PM
After your last post on this http://forums.nextpvr.com/showthread.php...post481615 I think I did my part on the read me first http://forums.nextpvr.com/showthread.php...post476601

Martin
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#5
2016-10-14, 09:29 AM
Thanks Martin but that was 2 years ago so forgot the directory I was looking for was hidden!! In the end I did a Linux "find" to find the file.

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#6
2016-10-14, 12:18 PM
jcjefferies Wrote:Thanks Martin but that was 2 years ago so forgot the directory I was looking for was hidden!! In the end I did a Linux "find" to find the file.

The the readme also links to paths for various OSes is LE different than linux?

Martin
lost@c
Offline

Member

Posts: 215
Threads: 22
Joined: Jul 2008
#7
2016-10-14, 08:07 PM
The link does not show the specifics for OE but I found it with the find command too. This is where it was for me. Pi2:~/.kodi/addons/script.xbmc.x-newa. I imagine it reads easily for an accomplished Linux user but for me at least it took me a while to find it. Then editing it was straight forward using Nano. Your info in the sticky is fine Smile
Win7 Enterprise, ASUS Prime H270-Pro, i3 7100 @ 3.9, 4GB Ram, 128Gb SSD, 2 x 1000Gb HDD, 1 x 2000Gb external HDD, Hauppauge HVR-2200, Hauppauge HDR-4000, SiloconDust HD HomeRun Dual, 42" LG LCD. Client - Raspberry Pi 3 Panasonic 32" LCD
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,192
Threads: 958
Joined: May 2006
#8
2016-10-14, 08:17 PM
That looks the same as all linux varities, the link special://home = /home/[username]/.kodi since ~ is the same as /home/username

Martin
lost@c
Offline

Member

Posts: 215
Threads: 22
Joined: Jul 2008
#9
2016-10-15, 08:03 AM
Thanks for that. I wish I was a bit more on to it with Linux. Seems it is very powerful!
Win7 Enterprise, ASUS Prime H270-Pro, i3 7100 @ 3.9, 4GB Ram, 128Gb SSD, 2 x 1000Gb HDD, 1 x 2000Gb external HDD, Hauppauge HVR-2200, Hauppauge HDR-4000, SiloconDust HD HomeRun Dual, 42" LG LCD. Client - Raspberry Pi 3 Panasonic 32" LCD
jcjefferies
Offline

Posting Freak

UK, North Gloucestershire
Posts: 1,220
Threads: 140
Joined: Jan 2011
#10
2016-10-17, 05:55 PM
Looking back now at the sticky I was confused by the instruction to "To do that find the XBMC folder http://kodi.wiki/view/Special_protocol#Available_Paths" so assumed you were refering to "special://xbmc".

There is no /home in OpenElec and LibraElec. The default directory when you SSH into LibreElec is /storage. So the location is then .kodi/addons/script.xbmc.x-newa/addon.xml. Easy to piece together from the various references for a regular Linux user which I was 5 years ago but these days I use Linux commands 2 or three times a year.

Chris
NextPVR Server - HP N54L Microserver, Windows 10 - Storage 2 X 3TB - Tuners DVBSky S952 Twin DVB-S/S2 PCIe, Hauppauge Twin DVB-T2 USB, Telestar Digibit R1 Sat>IP Server.
Clients:- 2 X RPi3, 1 X RPi4 and Acer RL80 Celeron Nettop all running NextPVR New Client on LibreElec.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode