kodi autostart

Having issues with your DietPi installation, or, found a bug? Post it here.

kodi autostart

Postby matteos1 » Mon Oct 16, 2017 5:54 pm

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

Re: kodi autostart

Postby matteos1 » Thu Oct 19, 2017 11:11 am

someone that could help me?
matteos1
 
Posts: 25
Joined: Fri May 06, 2016 9:22 am

Re: kodi autostart

Postby Sciamano » Thu Oct 19, 2017 12: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.
User avatar
Sciamano
 
Posts: 247
Joined: Sat Oct 15, 2016 10:18 am
Location: Italy

Re: kodi autostart

Postby matteos1 » Thu Oct 19, 2017 2: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: 25
Joined: Fri May 06, 2016 9:22 am

Re: kodi autostart

Postby matteos1 » Sun Oct 22, 2017 10:09 am

The delay of the Kodi opening is because DiedPi first needs to initialize mySQL, and some minutes subsequently Kodi will start.
matteos1
 
Posts: 25
Joined: Fri May 06, 2016 9:22 am

Re: kodi autostart

Postby Sciamano » Thu Oct 26, 2017 1: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.
User avatar
Sciamano
 
Posts: 247
Joined: Sat Oct 15, 2016 10:18 am
Location: Italy

Re: kodi autostart

Postby matteos1 » Thu Oct 26, 2017 1:12 pm

non funziona il comando startkodi
matteos1
 
Posts: 25
Joined: Fri May 06, 2016 9:22 am

Re: kodi autostart

Postby Sciamano » Fri Oct 27, 2017 4:17 pm

Eh, cerca tu il comando giusto, non uso kodi quindi non so quale sia il comando corretto.
User avatar
Sciamano
 
Posts: 247
Joined: Sat Oct 15, 2016 10:18 am
Location: Italy


Return to Troubleshooting

Who is online

Users browsing this forum: No registered users and 6 guests