ambient-sonos-fallback
v1.0.0
Published
A sonos fallback plugin for [Ambient](https://github.com/jthawme/ambient). Interacts with sonos devices
Downloads
63
Readme
Ambient Sonos Fallback
A plugin for Ambient. The Spotify API restricts control on sonos playback devices, so when this error is thrown, this plugin steps in and controls the sonos directly
Usage
// ambient.config.js
import * as SonosFallback from "ambient-sonos-fallback";
/** @type {import('./server/types/options.js').Config} */
export default {
...,
plugins: [SonosFallback],
pluginOptions: {
sonos: {
...
}
}
};
Config
| Key | Type | Description | Default | | --- | ---- | ----------- | ------- |
** It is recommended ** to add suppressErrors: ['spotify/restricted']
to your ambient.config.js