Posts by Mario77

    Ok. So I have been able to create the playlist perennialseries.m3u and moved it to the loaction /storage/.kodi/userdata/playlists/video

    I then tried entering code into the Terminal but nothing happens. Do I need to then type something to call the function to run

    If you saved the playlist from kodi ui there will be no need to move it as iy will e saved in the playlists folder by default.

    Do you know which gpio you r using for motion detection?Did you change that in the script?

    Preferably if you want video to loop you will have to add it to a playlist,you do that from kodi menu and then the path has to be that of the playlist..


    SO you make a small playlist and move it to

    Code
    /storage/.kodi/userdata/playlists/video
    Quote

    #EXTCPlayListM3U::M3U

    #EXTINF:0,perennialseries.mp4

    /var/media/T7/perennialseries.mp4

    and name it perennialseries.m3u

    then in the script line 24

    Code
    xbmc.executebuiltin("PlayMedia(/storage/.kodi/userdata/playlists/video/perennialseries.m3u)")

    Ah, really sorry have tried searching everywhere for this information - it's very basic, but how can I see the file path? My video is called "perennialseries.mp4" and is located on an external SSD called "T7" which is plugged into my Raspberry Pi. I can't seem to find the file path information anywhere.

    Is it in a directory/folder on the ssd?

    If not it should be

    /var/media/T7/perennialseries.mp4

    Thanks so much Mario, will try this and see how it goes. Just checking - do I need to enter this code via SSH Terminal on my Mac?

    Sorry never touched a mac in my life...but if you have access to your libreelec via ssh terminal just copy all the following code at once and paste it in your terminal...you might need to press enter more then once for all commands to run...

    Dont forget to change MOTION_PIN = 11 to your motion detector pin you are using...

    Something to start with...

    Just to give you an idea what you need...

    change pin 11 to your motion gpio pin...remove debugging when done if you don't want logging...

    not tested..


    Now I just seen that you wanted to pause and play not stop and play so you might need to change some of the script but at least try and see if it works this way..

    I setted up the bluetooth connection in the described way but my sound is super distorted and cuts off, especially in the beginning after connecting. Anybody with the same problem or know a solution?

    Try this:

    First connect your bluetooth source from LE settings addon..then run this..

    Bash
    #!/bin/sh
    systemctl stop kodi
    pactl load-module module-udev-detect 2>/dev/null
    sink=`pactl list short sinks | grep 'alsa' | awk '{print $2}' | grep 'hdmi'`
    source=`pactl list short sources | grep bluez | awk '{print $2}'`
    pactl set-default-sink $sink
    pactl set-default-source $source
    systemctl start kodi

    Probably a corrupted profile.json of the Audio Profiles add-on

    remove it's settings directory ,reboot and set it up again..

    Code
    rm -rf /storage/.kodi/userdata/addon_data/script.audio.profiles

    if that doesn't work

    Code
    rm -rf /storage/.kodi/userdata/addon_data/script.audio.profiles && rm /storage/.kodi/userdata/guisettings.xml