Libre.fm
This Source monitors your Libre.fm scrobble history and re-scrobbles new activity to configured Clients.
- To scrobble to Libre.fm, create a Libre.fm (Client)
To configure this Source use the same registration instructions and configuration data shown in Libre.fm (Client) with the difference being "configureAs": "source" defined in the File/AIO configuration below.
Configuration
- ENV
- File
- AIO
This is configuration for the ENV Config Type.
| Environmental Variable | Required? | Default | Description |
|---|---|---|---|
SOURCE_LIBREFM_ENABLE | No | Set to true to enable Libre.fm, if not using any of the below variables | |
SOURCE_LIBREFM_API_KEY | No | anything | Optional API Key |
SOURCE_LIBREFM_SECRET | No | anything | Optional shared secret |
SOURCE_LIBREFM_REDIRECT_URI | No | http://localhost:9078/librefm/callback | Url to use for authentication. Must include librefm/callback somewhere in it |
SOURCE_LIBREFM_SESSION | No | Session id. Will be generated by authentication flow if not provided. | |
SOURCE_LIBREFM_URLBASE | No | Use for custom Libre.fm instance only. The host + path prefix EX https://my.libre.example/2.0/ |
Config Structure
This displays the structure of the File Configuration for a librefm 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 librefm 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 librefm 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": "myLibreFmSource",
"enable": true,
"configureAs": "source",
"data": {
"apiKey": "anything",
"secret": "anything",
"redirectUri": "http://localhost:9078/librefm/callback"
}
}
]
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 librefm 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 librefm 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 librefm 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": "myLibreFmSource",
"enable": true,
"configureAs": "source",
"data": {
"apiKey": "anything",
"secret": "anything",
"redirectUri": "http://localhost:9078/librefm/callback"
},
"type": "librefm"
}
]
}