kodi autostart

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

kodi autostart

Post by matteos1 » Mon Oct 16, 2017 6:54 pm

how is it possible to start after 2 minutes kodi when is in autostart after the system restart? thankyou

matteos1
Posts: 27
Joined: Fri May 06, 2016 10:22 am

Re: kodi autostart

Post by matteos1 » Thu Oct 19, 2017 12:11 pm

someone that could help me?

User avatar
Sciamano
Posts: 261
Joined: Sat Oct 15, 2016 11:18 am
Location: Italy

Re: kodi autostart

Post by Sciamano » Thu Oct 19, 2017 1:29 pm

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: 27
Joined: Fri May 06, 2016 10:22 am

Re: kodi autostart

Post by matteos1 » Thu Oct 19, 2017 3:47 pm

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: 27
Joined: Fri May 06, 2016 10:22 am

Re: kodi autostart

Post by matteos1 » Sun Oct 22, 2017 11:09 am

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: 261
Joined: Sat Oct 15, 2016 11:18 am
Location: Italy

Re: kodi autostart

Post by Sciamano » Thu Oct 26, 2017 2:07 pm

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: 27
Joined: Fri May 06, 2016 10:22 am

Re: kodi autostart

Post by matteos1 » Thu Oct 26, 2017 2:12 pm

non funziona il comando startkodi

User avatar
Sciamano
Posts: 261
Joined: Sat Oct 15, 2016 11:18 am
Location: Italy

Re: kodi autostart

Post by Sciamano » Fri Oct 27, 2017 5:17 pm

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

Post Reply