Purpose: These files will allow you to setup Kodi/OSMC to autoplay a playlist on bootup. Useful for kiosks or TVs that you want to use to play a stream. I use this with a Raspberry Pi 3B+ running OSMC from the Raspberri Pi Imager https://www.raspberrypi.com/software/
- Within
~/.kodi/addons/service.autoexec/
createaddon.xml
andautoexec.py
- Within
~/.kodi/userdata/playlists/video/
createstreamtest.m3u
and edit the file to reference whatever you want to play - Enable the autoexec service by navigating in the menu to Settings > Add-ons > My add-ons > Services > Autoexec Service
- You can watch the log file using the command
tail -F /home/osmc/.kodi/temp/kodi.log
to ensure that it starts the playlist. Now when you reboot it should wait 15 seconds and play from your playlist.
Reference: https://kodi.wiki/view/Autoexec_Service