kodi autostart

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
matteos1
Posts: 30
Joined: Fri May 06, 2016 11:22 am

kodi autostart

Post by matteos1 »

how is it possible to start after 2 minutes kodi when is in autostart after the system restart? thankyou
matteos1
Posts: 30
Joined: Fri May 06, 2016 11:22 am

Re: kodi autostart

Post by matteos1 »

someone that could help me?
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: kodi autostart

Post by Sciamano »

create a bash script that waits for the desired time, and then launches kodi.
You could use the following command, for example:

Code: Select all

sleep 2m
This would make the system wait for 2 minutes before going on with the rest of the script (just add the command to launch kodi).
Give executable rights to this script and add it to the autostart.
matteos1
Posts: 30
Joined: Fri May 06, 2016 11:22 am

Re: kodi autostart

Post by matteos1 »

yes my kodi go to autostart in dietpi..
where i put the script and how?
thank you


kodi va in autostart
dove devo mettere lo script e come ? grazie
matteos1
Posts: 30
Joined: Fri May 06, 2016 11:22 am

Re: kodi autostart

Post by matteos1 »

The delay of the Kodi opening is because DiedPi first needs to initialize mySQL, and some minutes subsequently Kodi will start.
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: kodi autostart

Post by Sciamano »

ENGLISH:

Go to dietpi-config -> Autostart Options and select option number 14 (Custom).
Then you edit the file:

Code: Select all

nano /etc/dietpi/autostart.sh
at the end of the file add the commands to wait 2 minutes and then launch kodi:

Code: Select all

# let's wait two minutes
sleep 2m

# then launch kodi
startkodi
Save: (Ctrl-X, then Y) and reboot.



ITALIAN:

Allora, vai in dietpi-config -> Autostart e seleziona l'opzione 14 "Custom"
Poi editi il file:

Code: Select all

nano /etc/dietpi/autostart.sh
e aggiungi i comandi per aspettare 2 minuti e per lanciare kodi:

Code: Select all

# prima facciamo aspettare due minuti
sleep 2m

# poi lanciamo kodi
startkodi
Salva (Ctrl-X, poi Y) e riavvia.
matteos1
Posts: 30
Joined: Fri May 06, 2016 11:22 am

Re: kodi autostart

Post by matteos1 »

non funziona il comando startkodi
User avatar
Sciamano
Posts: 264
Joined: Sat Oct 15, 2016 12:18 pm
Location: Italy

Re: kodi autostart

Post by Sciamano »

Eh, cerca tu il comando giusto, non uso kodi quindi non so quale sia il comando corretto.
Post Reply