I installed libreelec using image
Thesystem boots automatically into KODI.
if i login over ssh with MobaXterm 20.6 i see:
LibreELEC (official): 9.2.6 (RPi4.arm)
LibreELEC:~ #
So I would like to control my ambilight at the same time via hyperion.ng
In order to shutdown the Raspi automatically when switching off power
I use the hardware extension "StromPi3".
Therefore a python script ("powershutdown_serialless.py)must be
executed when starting up the Raspi.
In the forum I found the post by "jakob" from June 13, 2020 and then made all
the settings :
- install "Raspberry Pi Tools" add-on
- create the folder /storage/.kodi/userdata/scripts
- insert lines in my powershutdown_serialless.py
import sys
sys.path.append('/storage/.kodi/addons/virtual.rpi-tools/lib')
- put powershutdown_serialless.py into /storage/.kodi/userdata/scripts
- create /storage/.config/autostart.sh
both files attached in the datei.zip.
When i start the powershutdown_serialless.py from an ssh terminal see hier :
LibreELEC (official): 9.2.6 (RPi4.arm)
LibreELEC:~ #
LibreELEC:~ # python /storage/.kodi/userdata/scripts/powershutdown_serialless.py &
LibreELEC:~ # Safe Shutdown in the case of Powerfailure (CTRL-C for exit)
it works fine. But on booting the raspi the script "powershutdown_serialless.py"
is not executed.
Where is the mistake ?
many thanks for the support