Brandon Watson 9cb85f6b78
All checks were successful
continuous-integration/drone/push Build is passing
Making default cron schedule configurable
2022-09-07 21:55:39 -05:00

69 lines
1.3 KiB
TypeScript

export interface IConfig {
platform: string;
ipAddress: string;
userName?: string;
clientKey?: string;
/**
* Latitude
*/
latitude: number;
/**
* Longitute
*/
longitude: number;
/**
* The list of lights to affect
*/
hueLights: Array<{ name: string; cron?: string }>;
/**
* The list of wiz lights to affect
*/
wizLights: Array<{ ip: string; mac: string; cron?: string }>;
wizDiscoveryEnabled: boolean;
/**
* The name of the enable switch in homekit
*/
name: string;
/**
* The color temperature at the start of sunset transition
*/
ceilingColorTemp: number;
/**
* The color temp during the night
*/
floorColorTemp: number;
/**
* The color temp at sunet
*/
sunsetColorTemp: number;
/**
* The time in milliseconds the lights should remain at sunset temperature.
*/
sunsetDuration: number;
/**
* The number of milliseconds the lights take to transition
*/
transition?: number;
/**
* The number of milliseconds to wait btw updates
*/
cron?: string;
/**
* The current formatted date and time to use with testing
*/
testNowDateString?: string;
}