Posts by trogggy


    I'm not yet sure where your media collection is stored. if it is also on the same headless Kodi device, then you will need to start using pathsubstitution on all other Kodi devices. Kodi stores the full path of the video/music track, so that won't work out of the box with other Kodi clients. Once all your Kodi clients are set up for use of your headless Kodi box, any of them can add new items to your video and/or music library, because of the shared database. Each Kodi client will download fanart and thumbs and such instantly once its local thumb cache is checked.

    Or use network paths for your sources on the headless pi.
    eg smb://192.168.x.x/media/mydrive/films vs /media/ mydrive/films
    where 192.168.x.x is the headless pi.


    Anyone know how to disable the suspend on the beelink remote? While LE is running i would like the power button not to do anything, I would still like to turn it on when you power it off but just not to do anything when Kodi is running.

    I find the suspend feature does not really work and sometimes freezes the box requring me to pull the plug. Build 004 seems to handle well but still freezes but build 005 freezes very often when waking up from suspend.

    Change it to something else in remote.conf (in /storage/.config) - or just removing the entry altogether in remote.conf should work.
    That won't affect switching on - LE isn't running when it's off, the power-on is hard-coded to the box.
    I'm using a Harmony with a pivos remote.conf on my minimxiii - the power-on code is still the one from the original remote and power-toggle on the pivos makes it sleep (which seems to be working reliably for me on 005).


    Hi,
    Hopefully someone can help me. I need a remote.conf file for the Mini MX box. I have tried extracting it from both Alex's OpenELEC and android original firmware (OTA update file) without success. I would appreciate it if someone has this file and sends it to me, or show me how to extract it myself. The problem is that every time we update to a new version of LibreELEC we have to manually update this file. I wish we had OTA updates or .tar files to avoid losing our set-ups every time we update.
    Thank you very much.

    I don't have the file, but I'm wondering why you need to keep replacing it? It should still work after an update. How are you updating? If you just stick the img.gz file in the update folder libreelec should do its magic on re-boot and keep all your data.


    You don't need to setup the python script as an addon, you can just run it via the full path using single quotes

    to test you can always use kodi-send

    Code
    kodi-send --action="RunScript('/storage/path/to/pythonscript.py')"

    Every day's a school day!
    Thanks, I can simplify things in my setup knowing that.
    So just to clarify (for me and the OP)...
    RunScript can start a python script anywhere, but it can't start a shell script...?

    Doh.
    I knew this!
    I have scripts in /storage/.config/scripts, and run them by running a python script from kodi to point to them.
    So I have, for eg...

    Code
    <home>
         <remote>
           <six>RunScript(script.rsynctest)</six>       
         </remote>
    </home>


    in remote.xml.
    That points to a simple python script...
    Addon.xml:


    default.py:

    Python
    #!/usr/bin/python
    
    
    import os
    
    
    os.system('sh /storage/.config/scripts/rsynctest.sh post')
    
    
    exit(0)


    Please don't laugh too loudly at my code (any suggestions welcome though) - it's all been trial and error for me. I have a few little scripts I use, all run the same way. It's a while since I last looked at them, though, which goes some way to explaining why I didn't see the problem.