Kodi
In order for multi-scrobbler to communicate with Kodi you must have the Web Interface enabled. This can be done in the Kodi GUI:
- Settings -> Services -> Control
- Check
Allow remote control via HTTP - Ensure you have a Username and Password set, you will need to provide them in the ENV/File configuration below.
- Check
URL
The URL used to connect to Kodi, set in your file config as url. The URL used to connect ultimately must be formed like this:
Syntax => [protocol]://[hostname]:[port]/[path]
Default => http://localhost:8080/jsonrpc
If any part of this URL is missing multi-scrobbler will use a default value. This also means that if any part of your URL is not standard you must explicitly define it.
- Make sure the port number matches what is found in Port in the Control section mentioned above.
- If your installation is on the same machine but you cannot connect using
localhosttry0.0.0.0instead.
URL Transform Examples
Examples of a given url in your file config and the final URL multi-scrobbler will use to connect to Kodi:
url | Transformed URL |
|---|---|
| (none set) | http://localhost:8080/jsonrpc |
kodi.mydomain.com | http://kodi.mydomain.com:8080/jsonrpc |
192.168.0.101:3456 | http://192.168.0.101:3456/jsonprc |
mydomain.com:80/kodiReverse/jsonrpc | http://mydomain.com:80/kodiReverse/jsonrpc |
Configuration
- ENV
- File
- AIO
This is configuration for the ENV Config Type.
| Environmental Variable | Required | Default | Description |
|---|---|---|---|
| KODI_URL | Yes | http://localhost:8080/jsonrpc | The URL of the Kodi server |
| KODI_USERNAME | No | The username set | |
| KODI_PASSWORD | No | The password set |
Config Structure
This displays the structure of the File Configuration for a kodi type Source with all possible properties, their shape, and descriptions/types. Use this to understand how to write a valid config.
Config Example
This displays an example config file of a kodi Source File Configuration that adheres to the shown Config Structure.
- text mode lets you edit the JSON directly.
- tree mode gives you a guided point-and-click editing experience that always keeps the JSON syntax valid.
Both modes validate that the configuraion is correct. Any errors show up as squiggly lines.
After you finish editing, switch to text and then copy all text to get a completed config.
Config Example Mobile Experience
This displays an example config file of a kodi Source File Configuration that adheres to the shown Config Structure.
The example config file editor is meant for a larger screen experience so only the read-only example is shown. Please use this site on a tablet/laptop/desktop to enable file editor features.
[
{
"name": "MyKodi",
"enable": true,
"data": {
"url": "http://localhost:8080/jsonrpc",
"username": "myUser",
"password": "myPassword"
}
}
]
Config Structure
This displays the structure of the all-in-one (config.json) configuration with all possible properties, their shape, and descriptions/types. Use this to understand how to write a valid config.
Select the kodi type from the respective sources node below, then expand it.
Config Example
This displays an example config file of a all-in-one (config.json) configuration that includes a kodi Source that adheres to the shown Config Structure.
- text mode lets you edit the JSON directly.
- tree mode gives you a guided point-and-click editing experience that always keeps the JSON syntax valid.
Both modes validate that the configuraion is correct. Any errors show up as squiggly lines.
After you finish editing, switch to text and then copy all text to get a completed config.
Config Example Mobile Experience
This displays an example config file of a all-in-one (config.json) configuration that includes a kodi Source that adheres to the shown Config Structure.
The example config file editor is meant for a larger screen experience so only the read-only example is shown. Please use this site on a tablet/laptop/desktop to enable file editor features.
{
"sources": [
{
"name": "MyKodi",
"enable": true,
"data": {
"url": "http://localhost:8080/jsonrpc",
"username": "myUser",
"password": "myPassword"
},
"type": "kodi"
}
]
}