Raspberry Pi - Kodi - Headless library setup
#1
Hello

I just bought Raspberry Pi 3, installed Raspbian on it thanks to SSH and after that Kodi.
My goal is to use this tiny device as a music player based on KODI cuz I've tried already volumio and even doe I liked it, it has poor application to control. I mean the offcial application cause many problems and it's hard to setup, also it hasn't got feature like widgets which I really want to have on my phone.

So, Kodi has everything what I want, but for now I've got a little problem with my library. I know it's easy to configure Kodi if you have acces to TV through HDMI, but for a while I can connect to my RPi only via ssh by terminal console, using remote desktop or web interface. I've tried all of this options but coudn't add my music to the library. I'm new to the Linux/Kodi things so doing anything through console is pretty hard, I've tried to instal X11VNC servers to have remote access to my desktop and it's nice cuz I can open browswer, edit files but for uknown reason when I open Kodi there is no any GUI on the dekstop it remains the same. I mean that in task manager I can see that process is running but nothing happening on the screen (it's like running in background). So I've tried to manually edit sources.xml file. I want to add media from my USB HDD which is connected to the RPi 3 all the time and it's main and only source. I did something like this in sources.xml file but still no effect.

Quote: <sources>
<music>
<default>Main Music Collection</default>
<source>
<name>Main Music Collection</name>
<path>/media/pi/Seagate Expansion Drive/Music/</path>
<allowsharing>true</allowsharing>
</source>
</music>
</sources>

And also I enabled all options in guisettings to turn on web interface but still can't add any files to the library. Look at the picture:
Image

Is there any possible solutions to do it?

Thanks in advance.
Reply
#2
Strange, I reboot both my Pi's (LibreELEC) remotely each morning (TVs are connected by HDMI but in standby mode) and I can access them over VNC without turning on either TV first.
Might be something to do with Kodi on Raspbian vs a LibreELEC install...

-----

My sources.xml
Code:
<sources>
    <music>
        <default pathversion="1"></default>
        <source>
            <name>mp3-Me</name>
            <path pathversion="1">smb://NAS/music/Me/</path>
            <allowsharing>true</allowsharing>
        </source>
        <source>
            <name>mp3-TheWife</name>
            <path pathversion="1">smb://NAS/music/TheWife/</path>
            <allowsharing>true</allowsharing>
        </source>
    </music>
</sources>

Your <default> tag looks strange compared to the tag generated in my file by the Kodi UI ^^

-----

You can call the JSON-RPC_API/v6 (wiki) remotely to get Kodi to run functions - like update your music library for example:
UpdateMusicLibrary.bat
Code:
curl -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"AudioLibrary.Scan\", \"id\": \"mybash\"}" -H "content-type:application/json" http://user:[email protected]:8080/jsonrpc > NUL 2>&1
4x R-Pi4b LibreELEC v9.2.5 | Bello 7 | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.15 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply
#3
Normal VNC servers won't work on Raspberry to control Kodi, because Kodi lacks X support on Pi. This is true to all OSs/distributions on the Raspberry Pi.
But you can use the RealVNC server included in Raspbian, enable one experimental feature in options (which I don't know exactly because I never used it) and it will work, then you will be able to see and control Kodi.
Or you can also install/use dispmanx_vnc server, which is probably what zerocool_ie uses on LibreELEC and what I sometimes use on Raspbian.
Reply
#4
(2017-02-03, 19:04)rascas Wrote: Or you can also install/use dispmanx_vnc server, which is probably what zerocool_ie uses on LibreELEC and what I sometimes use on Raspbian.
Yep, it's an add-on available from the LibreELEC repo.
4x R-Pi4b LibreELEC v9.2.5 | Bello 7 | Flirc cases
Storage Synology DS411 | 4 x WD RED 6TB
Software MariaDB 10.4.15 | Filebot | Ember Media Manager
wiki (wiki) | First time user (wiki) | Debug_Log (wiki) | mysql (wiki) | artwork (wiki)
Reply



Logout Mark Read Team Forum Stats Members Help
Raspberry Pi - Kodi - Headless library setup0
This forum uses Lukasz Tkacz MyBB addons.