--- title: Teal.fm description: Teal.fm (Source) toc_min_heading_level: 2 toc_max_heading_level: 5 --- import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import CodeBlock from '@theme/CodeBlock'; import JsonConfig from '!!raw-loader!@site/../config/tealfm.json.example'; :::tip[Other Uses] * To **scrobble to** an ATProto PDS, create a [teal.fm (Client)](/configuration/clients/tealfm) ::: [**teal.fm**](https://teal.fm/) is a social discovery and web viewing service for scrobbles stored/available on the ATProto network/your repository in a [PDS (Personal Data Server)](https://github.com/Bluesky-social/pds). This Source monitors the teal.fm scrobbles in your PDS and then re-scrobbles discovered tracks to configured clients. Learn more about how teal.fm scrobbles work in the [teal.fm (Client)](/configuration/clients/tealfm) docs. ## Setup Follow the **Setup** instructions in the [teal.fm (Client)](/configuration/clients/tealfm#setup) docs to get access to your Bluesky PDS repository and scrobble data. ## Configuration See the [teal.fm (Client)](/configuration/clients/tealfm#setup) configuration for general setup. The main differences for **Source** configuration: * [File/AIO config](/configuration?configType=file#configuration-types) must include `"configureAs": "source"` ### Service Filtering `serviceAllow` and `serviceDeny` are lists that can be used to filter what Plays are scrobbles from teal.fm. These correspond to the base domain of the music service where the Play is from, originally. The values in the list can be a subset of the actual service name (they do not need to be exact matches). Only one filter can be used at a time. If `serviceAllow` is configured then `serviceDeny` will be ignored. If a Play does not have an associated music service it can be allowed/denied using the special keyword `unknown`. If you are unsure what services are being used for your scrobbles you can check this by: * use [atproto.at](https://atproto.at/) to lookup your DID/handle * View the **Raw Data** for the PDS Collection `fm.teal.alpha.feed.play` * Check the `musicServiceBaseDomain` property for each record
Examples Allowing only scrobbles from [plyr.fm](https://plyr.fm/): ```json title="tealfm.json" [ { "name": "myTealSource", "configureAs": "source", "data": { "identifier": "alice.bsky.social", "appPassword": "twog-phu7-4dhe-y4j3", "serviceAllow": ["plyr"], } } ] ``` Deny scrobbles from last.fm: ```json title="tealfm.json" [ { "name": "myTealSource", "configureAs": "source", "data": { "identifier": "alice.bsky.social", "appPassword": "twog-phu7-4dhe-y4j3", "serviceDeny": ["last"], } } ] ``` Allow scrobbles from plyr.fm and unknown services: ```json title="tealfm.json" [ { "name": "myTealSource", "configureAs": "source", "data": { "identifier": "alice.bsky.social", "appPassword": "twog-phu7-4dhe-y4j3", "serviceAllow": ["plyr", "unknown"], } } ] ```
| Environmental Variable | Required? | Default | Description | | :------------------------- | --------- | ------- | ------------------------------------------------------------------------------------------ | | `SOURCE_TEALFM_ID` | Yes | | A unique ID | | `SOURCE_TEALFM_IDENTIFIER` | Yes | | Your **full** ATProto handle or DID. For Bluesky account this is like `myUser.bsky.social` | | `SOURCE_TEALFM_APP_PW` | Yes | | Bluesky/ATProto network App Password | | `SORUCE_TEALFM_NAME` | No | | A vanity name different than ID |