@petro-kushchak/homebridge-homepod-radio
Version:
Homebridge accessory for streaming radio to Homepod Mini and Apple TV
35 lines (34 loc) • 914 B
TypeScript
import { PlatformConfig } from 'homebridge';
export interface RadioConfig {
name: string;
model: string;
radioUrl: string;
trackName: string;
autoResume: boolean;
metadataUrl: string;
artworkUrl: string;
onSwitch: boolean;
volume: number;
}
export interface AudioConfig {
name: string;
fileName: string;
volume: number;
}
export declare class HomepodRadioPlatformConfig {
private config;
readonly name: string;
readonly homepodId: string;
readonly serialNumber: string;
readonly verboseMode: boolean;
readonly radios: RadioConfig[];
readonly audioFiles: AudioConfig[];
readonly mediaPath: string;
readonly httpPort: number;
readonly enableVolumeControl: boolean;
readonly volume: number;
constructor(config: PlatformConfig);
private loadAudioConfigs;
private loadRadioConfigs;
getRadioNames(): string[];
}