How to autostart RadioTunes station (RPi2) [solved]

Hallo Everyone
I’m glad to be here, just moved with my Raspberry Pi 2 from OPENELEC to play with OSMC :-).

I’m going to play RadioTunes (or other AddOn station) right after OSMC start. It look oldschool methods (Listen radio on start) are gone in this version of KODI.

Method 1 is not working because “Enable playlist at startup” is gone (why ?, it was very usable feature …). I used to play MP3 files located in local folder. The .strm file is working fine but how to run it ?

Method 2 I believe is absolete right now because of:

File “/home/osmc/.kodi/userdata/autoexec.py”, line 2, in
xbmc.executeBuiltin( PlayMedia(“http://pub2.radiotunes.com:80/radiotunes_mellowsmoothjazz_aacplus (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.97 Safari/537.36&Referer=http://www.radiotunes.com”))
AttributeError: ‘module’ object has no attribute ‘executeBuiltin’

So, how to do it in OSMC ?

Ask kodi, because the os is OSMC won’t change the way you would do this in kodi.

OK, managed to archieve this using
a) PartyMode Autostart Add-On starting webstation from Favourites - there is a dedicated option in this add-on configuration, so we can start regular playlist (with local audio files) or selected favorite stream (works with RadioTunes).
b) Without any extra Programs add-on - just add regular playlist with radio stream (RadioTunes) saved to profile folder, and after enabling hidden folder showing select this playlist in skin startup playlist (my fault - this option is present).

1 Like