Posts by Mario77

    Allright guys i did it. It is working now. I've changed every path to correct one and i imported everything as shown in code below:

    Thanks everyone for help.

    Great Job!

    Didn't notice you needed also system-tools libraries for smbus.so

    Glad it's working ..

    I think it's another issue you have..

    Never played with adafruit on LE but I dont't think virtual.rpi-tools is what you need to run that script..

    I m sure I v seen an adafruit library addon somewhere on this forum..but have no idea where to start from ..

    Ok had a look it's in LE repo virtual.adafruit-libraries

    Looks like it got what you need

    look here

    Klojum and Mario77
    I think that you are right. I should try JSON-RPC and create script. (I never did it but I will try)
    Mario77, you gave me the best clue how to do it. I assume that I have to set static IP for every player and then send the same command to all of them.

    I will try.

    yes they will have to have static IP..

    If you get stuck with script ask here..

    Going to give you a good hint where to start from..all you need is something like this..

    then create another file with just the paths to your movies folders that you want to watch for changes one under the other and set path in script for that file


    Also I just remembered that there is also an addon called WatchDog you can use...but probably you will have to install it on every box and I don t think it's network friendly...it's probably just for connected devices but you can always try..

    The other way in previous post is only set up on 1 box and sends json to all boxes which is better once setup..

    You probably have to make your own script..

    The tools you need are already their with the System Tools Addon..

    I have something similar to what you r asking altough it's a bit more elaborated then just cleaning library..I got a TVHeadend server sending recordings to my box after they r done with comskip etc..that is when inotifywatch from system tools comes in handy..

    What you need to do is set 1 of your boxes that has LibreElec running to watch the folder where your movies are saved with inotifywait..

    It works wonders..

    then set up a script..something like if event is CLOSE_WRITE,CLOSE (movie added) update all libraries,if event is DELETE then clean all libraries..

    ...use kodi-send --action to send commands to clean libraries or update added movies to all boxes..

    Code
    kodi-send --host=xxx.xxx.x.xxx --port=xxxx --action="CleanLibrary(movies)"
    kodi-send --host=xxx.xxx.x.xxx --port=xxxx --action="UpdateLibrary"

    Not sure about if it works on your setup...but AEL works fine on RPI

    Look i know it has probably been asked a thousand times but my Libre elec os has failed today and is now useless as i cant get anything installed if it needs to restart. It keeps going back to safe mode. I have no idea of how to rectify or what caused it. I am not a brain surgeon or a tech wizard , i have tried some suggestions from Kodi people but still wont work properly. Is there anyone hear who can do a walk through in lamens terms please as im about to throw it in the bin. Please help asap.

    Although your best bet is post a log and try to get some help regarding your crash and what's causing it..a temporary workaround would be to create a file and name it

    Code
    safemode.disable

    place it in:

    Code
    /storage/.config

    That will disable safe mode..

    Hardware decoding (with licenses) will still work on RPi2/3.

    Major issues on RPi2/3 are that the video driver currently has a severe problem (video cuts out and needs reboot), GPU accelerated HEVC decoding and deinterlacing doesn't work (deinterlacing also doesn't work on RPi4).

    Therefore we decided to do the initial LE10 releases only for RPi4 - RPi2 will follow later, when the major bugs are ironed out.

    so long,

    Hias

    Thanks for quick info..I asked as I v seen a post elsewhere that has nothing to do with LE, which made me wonder:

    Quote

    There is no support for hardware accelerated VC-1 or MPEG2 on Raspberry Pi, even on existing devices where codec packs have been purchased.

    There is also no deinterlacing for Live TV with hardware acceleration on Raspberry Pi, but we are hoping that support is introduced later at some point with a Kodi 19 point release. This should be less of an issue on Raspberry Pi 4, which should be able to handle deinterlacing in software.

    additive
    sh /storage/.config/autostart.sh results in:
    LibreELEC: ~ # sh /storage/.config/autostart.sh
    LibreELEC: ~ # File "/storage/.kodi/userdata/scripts/powershutdown_serialless.py", line 51 os.system ("echo" Raspberry Pi Shutdown! "> / dev / pts / 1") ^
    SyntaxError: invalid syntax

    Code
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1")

    try copy and paste this exactly..

    below is yours...you moved few bits:

    Code
    os.system ("echo" Raspberry Pi Shutdown! "> / dev / pts / 1")

    It worked here...no reason it doesn't work for you...you can open more terminal windows to test from one to the other and you ll see the message popping up..

    I m not great with python hence i gave you the shell version of the command..you r basically sending an sh command from a py script..

    I m not sure what your script is for but if it's something important you can even send an automated email from libreelec to your email..

    try before line 50 in your script add

    Code
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1") 

    that is for 1 open terminal


    if you have more then

    to find all open terminals

    Code
    find /dev/pts

    then you can edit your script ex

    Code
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/1")
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/2")
    os.system("echo "Raspberry Pi Shutdown!" >/dev/pts/3")

    etc


    that should send a message to all terminals

    "Raspberry Pi Shutdown!"

    Check your autostart.sh script if you just created it for any errors DOS format and not UNIX?

    this should start your script like on startup..

    Code
    sh /storage/.config/autostart.sh

    run this on autostart.sh

    Code
    dos2unix /storage/.config/autostart.sh
    
    chmod 777 /storage/.config/autostart.sh

    the autostart.sh in your zip file is in windows dos...needs to be unix format..but might have changed by uploading or downloading or whatever..not sure...try those 2 commands and you should be good to go..

    I just had a thought.
    A faulty usb to sata adapter couldn't short something in the pi and make HDMI audio not work could it?

    I have that, plus also that ssd fail, plus my spdif card on my pc seems faulty now as well.

    Plus I tried to charge my torch up from my pc and that won't charge from anything now.

    I am wondering if i have a fault somewhere.

    I can't think of anything other than the adapter and ssd that are common between my pc and pi.

    I had a cable like that for a long time connected to my pi2 and hdd never gave me problems...Now I got an external hdd connected which is a little better aesthetically but nothing else..