Last.fm
This Source monitors your Last.fm scrobble history and re-scrobbles new activity to configured Clients.
- To scrobble to Last.fm/Libre.fm, create a Last.fm (Client)
- To accept scrobbles from outside applications as if multi-scrobbler was Last.fm, create a Last.fm (Endpoint)
To configure this Source use the same registration instructions and configuration data shown in Last.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 | Type | Default | Description |
|---|---|---|---|
SOURCE_LASTFM_ID | string | A globally unique ID EX myComponentId | |
SOURCE_LASTFM_NAME | string | Value of SOURCE_LASTFM_ID | A vanity name EX My Cool Component |
SOURCE_LASTFM_ENABLE | boolean | true | Should this component be used? |
SOURCE_LASTFM_API_KEY | string | API Key generated from Last.fm/Libre.fm account | |
SOURCE_LASTFM_SECRET | string | Secret generated from Last.fm/Libre.fm account | |
SOURCE_LASTFM_REDIRECT_URI | string | http://localhost:9078/lastfm/callback | Optional URI to use for callback. |
SOURCE_LASTFM_SESSION | string | Optional session id returned from a completed auth flow |
Bold/Italic = Required
Config Structure
This displays the structure of the File Configuration for a lastfm 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 lastfm 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 lastfm 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": "Foxx LFM Source",
"id": "myLastFmSource",
"enable": true,
"configureAs": "source",
"data": {
"apiKey": "a89cba1569901a0671d5a9875fed4be1",
"secret": "ec42e09d5ae0ee0f0816ca151008412a",
"redirectUri": "http://localhost:9078/lastfm/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 lastfm 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 lastfm 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 lastfm 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": "Foxx LFM Source",
"id": "myLastFmSource",
"enable": true,
"configureAs": "source",
"data": {
"apiKey": "a89cba1569901a0671d5a9875fed4be1",
"secret": "ec42e09d5ae0ee0f0816ca151008412a",
"redirectUri": "http://localhost:9078/lastfm/callback"
},
"type": "lastfm"
}
]
}