mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-19 22:24:15 +01:00
some more types
This commit is contained in:
@@ -2768,12 +2768,14 @@ function check_online_display_firmware() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//mqttCallback (topic: string, message: string): Promise<void> {
|
||||||
on({ id: config.panelRecvTopic }, async (obj) => {
|
on({ id: config.panelRecvTopic }, async (obj) => {
|
||||||
if (obj.state.val.startsWith('\{"CustomRecv":')) {
|
if (obj.state.val.startsWith('\{"CustomRecv":')) {
|
||||||
try {
|
try {
|
||||||
|
const json = JSON.parse(obj.state.val);
|
||||||
|
const split = json.CustomRecv.split(',');
|
||||||
if (isSetOptionActive) {
|
if (isSetOptionActive) {
|
||||||
let json = JSON.parse(obj.state.val);
|
|
||||||
let split = json.CustomRecv.split(',');
|
|
||||||
if (split[0] == 'event' && split[1] == 'startup') {
|
if (split[0] == 'event' && split[1] == 'startup') {
|
||||||
await createStateAsync(NSPanel_Path + 'Display_Firmware.currentVersion', <iobJS.StateCommon>{ type: 'string' });
|
await createStateAsync(NSPanel_Path + 'Display_Firmware.currentVersion', <iobJS.StateCommon>{ type: 'string' });
|
||||||
await createStateAsync(NSPanel_Path + 'NSPanel_Version', <iobJS.StateCommon>{ type: 'string' });
|
await createStateAsync(NSPanel_Path + 'NSPanel_Version', <iobJS.StateCommon>{ type: 'string' });
|
||||||
@@ -2789,9 +2791,11 @@ on({ id: config.panelRecvTopic }, async (obj) => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
HandleMessage(split[0], split[1], parseInt(split[2]), split);
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
log('error at trigger rceiving CustomRecv: ' + err.message, 'warn');
|
log('error at trigger rceiving CustomRecv: ' + err.message, 'warn');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -2914,7 +2918,7 @@ function update_tasmota_firmware() {
|
|||||||
log('error request in function update_tasmota_firmware: ' + err.message, 'warn');
|
log('error request in function update_tasmota_firmware: ' + err.message, 'warn');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//mqttCallback (topic: string, message: string): Promise<void> {
|
||||||
on({ id: config.panelRecvTopic.substring(0, config.panelRecvTopic.length - 'RESULT'.length) + 'INFO1', change: 'ne'}, async (obj) => {
|
on({ id: config.panelRecvTopic.substring(0, config.panelRecvTopic.length - 'RESULT'.length) + 'INFO1', change: 'ne'}, async (obj) => {
|
||||||
try {
|
try {
|
||||||
if (getState(NSPanel_Path + 'Config.Update.activ').val == 0) {
|
if (getState(NSPanel_Path + 'Config.Update.activ').val == 0) {
|
||||||
@@ -2935,23 +2939,6 @@ on({ id: config.panelRecvTopic.substring(0, config.panelRecvTopic.length - 'RESU
|
|||||||
|
|
||||||
//------------------End Update Functions
|
//------------------End Update Functions
|
||||||
|
|
||||||
on({ id: config.panelRecvTopic, change: 'any' }, async function (obj) {
|
|
||||||
try {
|
|
||||||
if (obj.state.val.startsWith('\{"CustomRecv":')) {
|
|
||||||
try {
|
|
||||||
let json = JSON.parse(obj.state.val);
|
|
||||||
|
|
||||||
let split = json.CustomRecv.split(',');
|
|
||||||
HandleMessage(split[0], split[1], parseInt(split[2]), split);
|
|
||||||
} catch (err: any) {
|
|
||||||
log('error json.split in Trigger panelRecTopic: ' + err.message, 'warn');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (err: any) {
|
|
||||||
log('error at Trigger panelRecTopic: ' + err.message, 'warn');
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
async function SendToPanel(val: Payload | Payload[]) {
|
async function SendToPanel(val: Payload | Payload[]) {
|
||||||
try {
|
try {
|
||||||
if (Array.isArray(val)) {
|
if (Array.isArray(val)) {
|
||||||
@@ -3315,17 +3302,6 @@ function CreateEntity(pageItem: PageItem, placeId: number, useColors: boolean =
|
|||||||
let buttonText: string = 'PRESS';
|
let buttonText: string = 'PRESS';
|
||||||
let type: string;
|
let type: string;
|
||||||
|
|
||||||
if (pageItem.id && existsState(pageItem.id + '.ACTUAL') == false) {
|
|
||||||
if (pageItem.popupTimerType == 'TimeCard' && pageItem.autoCreateALias == true) {
|
|
||||||
log(NSPanel_Path + 'Userdata.' + pageItem.id + '.Time')
|
|
||||||
createStateAsync(NSPanel_Path + 'Userdata.' + pageItem.id + '.Time', '0', { type: 'number' });
|
|
||||||
createStateAsync(NSPanel_Path + 'Userdata.' + pageItem.id + '.State', 'idle', { type: 'string' });
|
|
||||||
setObject(pageItem.id, { type: 'channel', common: { role: 'value.time', name: 'Time' }, native: {} });
|
|
||||||
createAliasAsync(pageItem.id + '.ACTUAL', NSPanel_Path + 'Userdata.' + pageItem.id + '.Time', true, <iobJS.StateCommon>{ type: 'number', role: 'state', name: 'ACTUAL' });
|
|
||||||
createAliasAsync(pageItem.id + '.STATE', NSPanel_Path + 'Userdata.' + pageItem.id + '.State', true, <iobJS.StateCommon>{ type: 'string', role: 'state', name: 'STATE' });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// ioBroker
|
// ioBroker
|
||||||
if (pageItem.id && existsObject(pageItem.id) || pageItem.navigate === true) {
|
if (pageItem.id && existsObject(pageItem.id) || pageItem.navigate === true) {
|
||||||
|
|
||||||
@@ -8303,62 +8279,64 @@ function HandleScreensaverUpdate(): void {
|
|||||||
if (screensaverAdvanced) {
|
if (screensaverAdvanced) {
|
||||||
let checkpoint = true;
|
let checkpoint = true;
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (i = 0; i < 3; i++) {
|
if (config.leftScreensaverEntity && Array.isArray(config.leftScreensaverEntity)) {
|
||||||
|
for (i = 0; i < 3; i++) {
|
||||||
if (config.leftScreensaverEntity[i] == null || config.leftScreensaverEntity[i] == undefined) {
|
const leftScreensaverEntity = config.leftScreensaverEntity[i]
|
||||||
checkpoint = false;
|
if (leftScreensaverEntity === null || leftScreensaverEntity === undefined) {
|
||||||
break;
|
checkpoint = false;
|
||||||
}
|
break;;
|
||||||
RegisterScreensaverEntityWatcher(config.leftScreensaverEntity[i].ScreensaverEntity)
|
|
||||||
|
|
||||||
let val = getState(config.leftScreensaverEntity[i].ScreensaverEntity).val;
|
|
||||||
let iconColor = rgb_dec565(White);
|
|
||||||
let icon;
|
|
||||||
if (typeof config.leftScreensaverEntity[i].ScreensaverEntityIconOn == 'string' && existsObject(config.leftScreensaverEntity[i].ScreensaverEntityIconOn as string)) {
|
|
||||||
let iconName = getState(config.leftScreensaverEntity[i].ScreensaverEntityIconOn!).val;
|
|
||||||
icon = Icons.GetIcon(iconName);
|
|
||||||
} else {
|
|
||||||
icon = Icons.GetIcon(config.leftScreensaverEntity[i].ScreensaverEntityIconOn);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (parseFloat(val+"") == val) {
|
|
||||||
val = parseFloat(val);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (typeof(val) == 'number') {
|
|
||||||
val = (val * (config.leftScreensaverEntity[i].ScreensaverEntityFactor ? config.leftScreensaverEntity[i].ScreensaverEntityFactor! : 0)).toFixed(config.leftScreensaverEntity[i].ScreensaverEntityDecimalPlaces) + config.leftScreensaverEntity[i].ScreensaverEntityUnitText;
|
|
||||||
iconColor = GetScreenSaverEntityColor(config.leftScreensaverEntity[i]);
|
|
||||||
}
|
|
||||||
else if (typeof(val) == 'boolean') {
|
|
||||||
iconColor = GetScreenSaverEntityColor(config.leftScreensaverEntity[i]);
|
|
||||||
if (!val && config.leftScreensaverEntity[i].ScreensaverEntityIconOff != null) {
|
|
||||||
icon = Icons.GetIcon(config.leftScreensaverEntity[i].ScreensaverEntityIconOff)
|
|
||||||
}
|
}
|
||||||
}
|
RegisterScreensaverEntityWatcher(leftScreensaverEntity.ScreensaverEntity)
|
||||||
else if (typeof(val) == 'string') {
|
|
||||||
iconColor = GetScreenSaverEntityColor(config.leftScreensaverEntity[i]);
|
let val = getState(leftScreensaverEntity.ScreensaverEntity).val;
|
||||||
let pformat = parseFormat(val);
|
let iconColor = rgb_dec565(White);
|
||||||
if (Debug) log('moments.js --> Datum ' + val + ' valid?: ' + moment(val, pformat, true).isValid(), 'info');
|
let icon;
|
||||||
if (moment(val, pformat, true).isValid()) {
|
if (typeof leftScreensaverEntity.ScreensaverEntityIconOn == 'string' && existsObject(leftScreensaverEntity.ScreensaverEntityIconOn as string)) {
|
||||||
let DatumZeit = moment(val, pformat).unix(); // Umwandlung in Unix Time-Stamp
|
let iconName = getState(leftScreensaverEntity.ScreensaverEntityIconOn!).val;
|
||||||
if (config.leftScreensaverEntity[i].ScreensaverEntityDateFormat !== undefined) {
|
icon = Icons.GetIcon(iconName);
|
||||||
val = new Date(DatumZeit * 1000).toLocaleString(getState(NSPanel_Path + 'Config.locale').val, config.leftScreensaverEntity[i].ScreensaverEntityDateFormat);
|
} else {
|
||||||
} else {
|
icon = Icons.GetIcon(leftScreensaverEntity.ScreensaverEntityIconOn);
|
||||||
val = new Date(DatumZeit * 1000).toLocaleString(getState(NSPanel_Path + 'Config.locale').val);
|
}
|
||||||
|
|
||||||
|
if (parseFloat(val + "") == val) {
|
||||||
|
val = parseFloat(val);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (typeof (val) == 'number') {
|
||||||
|
val = (val * (leftScreensaverEntity.ScreensaverEntityFactor ? leftScreensaverEntity.ScreensaverEntityFactor! : 0)).toFixed(leftScreensaverEntity.ScreensaverEntityDecimalPlaces) + leftScreensaverEntity.ScreensaverEntityUnitText;
|
||||||
|
iconColor = GetScreenSaverEntityColor(leftScreensaverEntity);
|
||||||
|
}
|
||||||
|
else if (typeof (val) == 'boolean') {
|
||||||
|
iconColor = GetScreenSaverEntityColor(leftScreensaverEntity);
|
||||||
|
if (!val && leftScreensaverEntity.ScreensaverEntityIconOff != null) {
|
||||||
|
icon = Icons.GetIcon(leftScreensaverEntity.ScreensaverEntityIconOff)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
else if (typeof (val) == 'string') {
|
||||||
const temp = config.leftScreensaverEntity[i].ScreensaverEntityIconColor;
|
iconColor = GetScreenSaverEntityColor(leftScreensaverEntity);
|
||||||
if (temp && typeof temp == 'string' && existsObject(temp)) {
|
let pformat = parseFormat(val);
|
||||||
iconColor = getState(temp).val;
|
if (Debug) log('moments.js --> Datum ' + val + ' valid?: ' + moment(val, pformat, true).isValid(), 'info');
|
||||||
}
|
if (moment(val, pformat, true).isValid()) {
|
||||||
|
let DatumZeit = moment(val, pformat).unix(); // Umwandlung in Unix Time-Stamp
|
||||||
|
if (leftScreensaverEntity.ScreensaverEntityDateFormat !== undefined) {
|
||||||
|
val = new Date(DatumZeit * 1000).toLocaleString(getState(NSPanel_Path + 'Config.locale').val, leftScreensaverEntity.ScreensaverEntityDateFormat);
|
||||||
|
} else {
|
||||||
|
val = new Date(DatumZeit * 1000).toLocaleString(getState(NSPanel_Path + 'Config.locale').val);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
const temp = leftScreensaverEntity.ScreensaverEntityIconColor;
|
||||||
|
if (temp && typeof temp == 'string' && existsObject(temp)) {
|
||||||
|
iconColor = getState(temp).val;
|
||||||
|
}
|
||||||
|
|
||||||
payloadString += '~' +
|
payloadString += '~' +
|
||||||
'~' +
|
'~' +
|
||||||
icon + '~' +
|
icon + '~' +
|
||||||
iconColor + '~' +
|
iconColor + '~' +
|
||||||
config.leftScreensaverEntity[i].ScreensaverEntityText + '~' +
|
leftScreensaverEntity.ScreensaverEntityText + '~' +
|
||||||
val + '~';
|
val + '~';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (checkpoint == false) {
|
if (checkpoint == false) {
|
||||||
for (let j = i; j < 3; j++) {
|
for (let j = i; j < 3; j++) {
|
||||||
@@ -8466,7 +8444,7 @@ function HandleScreensaverUpdate(): void {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Alternativ Layout bekommt zusätzlichen Status
|
//Alternativ Layout bekommt zusätzlichen Status
|
||||||
if (getState(NSPanel_Path + 'Config.Screensaver.alternativeScreensaverLayout').val) {
|
if (config.bottomScreensaverEntity[4] && getState(NSPanel_Path + 'Config.Screensaver.alternativeScreensaverLayout').val) {
|
||||||
let val = getState(config.bottomScreensaverEntity[4].ScreensaverEntity).val;
|
let val = getState(config.bottomScreensaverEntity[4].ScreensaverEntity).val;
|
||||||
if (parseFloat(val+"") == val) {
|
if (parseFloat(val+"") == val) {
|
||||||
val = parseFloat(val);
|
val = parseFloat(val);
|
||||||
@@ -8585,37 +8563,38 @@ function HandleScreensaverUpdate(): void {
|
|||||||
// 5 indicatorScreensaverEntities
|
// 5 indicatorScreensaverEntities
|
||||||
for (let i = 0; i < 5; i++) {
|
for (let i = 0; i < 5; i++) {
|
||||||
let checkpoint = true;
|
let checkpoint = true;
|
||||||
if (config.indicatorScreensaverEntity[i] == null) {
|
const indicatorScreensaverEntity:ScreenSaverElementWithUndefined = config.indicatorScreensaverEntity[i];
|
||||||
|
if (indicatorScreensaverEntity == null) {
|
||||||
checkpoint = false;
|
checkpoint = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
RegisterScreensaverEntityWatcher(config.indicatorScreensaverEntity[i].ScreensaverEntity)
|
RegisterScreensaverEntityWatcher(indicatorScreensaverEntity.ScreensaverEntity)
|
||||||
|
|
||||||
let val = getState(config.indicatorScreensaverEntity[i].ScreensaverEntity).val;
|
let val = getState(indicatorScreensaverEntity.ScreensaverEntity).val;
|
||||||
if (parseFloat(val+"") == val) {
|
if (parseFloat(val+"") == val) {
|
||||||
val = parseFloat(val);
|
val = parseFloat(val);
|
||||||
}
|
}
|
||||||
let iconColor = rgb_dec565(White);
|
let iconColor = rgb_dec565(White);
|
||||||
|
|
||||||
let icon;
|
let icon;
|
||||||
if (config.indicatorScreensaverEntity[i].ScreensaverEntityIconOn && existsObject(config.indicatorScreensaverEntity[i].ScreensaverEntityIconOn!)) {
|
if (indicatorScreensaverEntity.ScreensaverEntityIconOn && existsObject(indicatorScreensaverEntity.ScreensaverEntityIconOn!)) {
|
||||||
let iconName = getState(config.indicatorScreensaverEntity[i].ScreensaverEntityIconOn!).val;
|
let iconName = getState(indicatorScreensaverEntity.ScreensaverEntityIconOn!).val;
|
||||||
icon = Icons.GetIcon(iconName);
|
icon = Icons.GetIcon(iconName);
|
||||||
} else {
|
} else {
|
||||||
icon = Icons.GetIcon(config.indicatorScreensaverEntity[i].ScreensaverEntityIconOn);
|
icon = Icons.GetIcon(indicatorScreensaverEntity.ScreensaverEntityIconOn);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof(val) == 'number') {
|
if (typeof(val) == 'number') {
|
||||||
val = (val * (config.indicatorScreensaverEntity[i].ScreensaverEntityFactor ? config.indicatorScreensaverEntity[i].ScreensaverEntityFactor! : 0)).toFixed(config.indicatorScreensaverEntity[i].ScreensaverEntityDecimalPlaces) + config.indicatorScreensaverEntity[i].ScreensaverEntityUnitText;
|
val = (val * (indicatorScreensaverEntity.ScreensaverEntityFactor ? indicatorScreensaverEntity.ScreensaverEntityFactor! : 0)).toFixed(indicatorScreensaverEntity.ScreensaverEntityDecimalPlaces) + indicatorScreensaverEntity.ScreensaverEntityUnitText;
|
||||||
iconColor = GetScreenSaverEntityColor(config.indicatorScreensaverEntity[i]);
|
iconColor = GetScreenSaverEntityColor(indicatorScreensaverEntity);
|
||||||
}
|
}
|
||||||
else if (typeof(val) == 'boolean') {
|
else if (typeof(val) == 'boolean') {
|
||||||
iconColor = GetScreenSaverEntityColor(config.indicatorScreensaverEntity[i]);
|
iconColor = GetScreenSaverEntityColor(indicatorScreensaverEntity);
|
||||||
if (!val && config.indicatorScreensaverEntity[i].ScreensaverEntityIconOff != null) {
|
if (!val && indicatorScreensaverEntity.ScreensaverEntityIconOff != null) {
|
||||||
icon = Icons.GetIcon(config.indicatorScreensaverEntity[i].ScreensaverEntityIconOff)
|
icon = Icons.GetIcon(indicatorScreensaverEntity.ScreensaverEntityIconOff)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const temp = config.indicatorScreensaverEntity[4].ScreensaverEntityIconColor
|
const temp = indicatorScreensaverEntity.ScreensaverEntityIconColor
|
||||||
if (temp && typeof temp == 'string' && existsObject(temp)) {
|
if (temp && typeof temp == 'string' && existsObject(temp)) {
|
||||||
iconColor = getState(temp).val;
|
iconColor = getState(temp).val;
|
||||||
}
|
}
|
||||||
@@ -8623,7 +8602,7 @@ function HandleScreensaverUpdate(): void {
|
|||||||
'~' +
|
'~' +
|
||||||
icon + '~' +
|
icon + '~' +
|
||||||
iconColor + '~' +
|
iconColor + '~' +
|
||||||
config.indicatorScreensaverEntity[i].ScreensaverEntityText + '~' +
|
indicatorScreensaverEntity.ScreensaverEntityText + '~' +
|
||||||
val + '~';
|
val + '~';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9275,6 +9254,7 @@ function GetDasWetterIconColor(icon: number): number {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//------------------Begin Read Internal Sensor Data
|
//------------------Begin Read Internal Sensor Data
|
||||||
|
//mqttCallback (topic: string, message: string): Promise<void> {
|
||||||
on({ id: config.panelRecvTopic.substring(0, config.panelRecvTopic.length - 'RESULT'.length) + 'SENSOR' }, async (obj) => {
|
on({ id: config.panelRecvTopic.substring(0, config.panelRecvTopic.length - 'RESULT'.length) + 'SENSOR' }, async (obj) => {
|
||||||
try {
|
try {
|
||||||
const Tasmota_Sensor = JSON.parse(obj.state.val);
|
const Tasmota_Sensor = JSON.parse(obj.state.val);
|
||||||
@@ -9613,7 +9593,7 @@ type PageBaseItem = {
|
|||||||
unit?: string,
|
unit?: string,
|
||||||
navigate?: boolean,
|
navigate?: boolean,
|
||||||
colormode?: string,
|
colormode?: string,
|
||||||
colorScale?: any,
|
colorScale?: IconScaleElement,
|
||||||
//adapterPlayerInstance?: adapterPlayerInstanceType,
|
//adapterPlayerInstance?: adapterPlayerInstanceType,
|
||||||
mediaDevice?: string,
|
mediaDevice?: string,
|
||||||
targetPage?: string,
|
targetPage?: string,
|
||||||
@@ -9641,15 +9621,12 @@ type PageBaseItem = {
|
|||||||
yAxis?: string,
|
yAxis?: string,
|
||||||
yAxisTicks?: number[] | string,
|
yAxisTicks?: number[] | string,
|
||||||
xAxisDecorationId?: string,
|
xAxisDecorationId?: string,
|
||||||
popupType?: string,
|
|
||||||
popupOptions?: string[],
|
|
||||||
useValue?: boolean,
|
useValue?: boolean,
|
||||||
monobutton?: boolean,
|
monobutton?: boolean,
|
||||||
inSel_ChoiceState?: boolean,
|
inSel_ChoiceState?: boolean,
|
||||||
iconArray?: string[],
|
iconArray?: string[],
|
||||||
fontSize?: number,
|
fontSize?: number,
|
||||||
actionStringArray?: string[],
|
actionStringArray?: string[],
|
||||||
popupTimerType?: string,
|
|
||||||
alwaysOnDisplay?: boolean,
|
alwaysOnDisplay?: boolean,
|
||||||
crossfade?: boolean,
|
crossfade?: boolean,
|
||||||
}
|
}
|
||||||
@@ -9673,9 +9650,9 @@ type Config = {
|
|||||||
panelRecvTopic: string,
|
panelRecvTopic: string,
|
||||||
panelSendTopic: string,
|
panelSendTopic: string,
|
||||||
weatherEntity: string,
|
weatherEntity: string,
|
||||||
leftScreensaverEntity: ScreenSaverElement[],
|
leftScreensaverEntity: leftScreensaverEntityType
|
||||||
bottomScreensaverEntity: ScreenSaverElement[],
|
bottomScreensaverEntity: ScreenSaverElement[],
|
||||||
indicatorScreensaverEntity: ScreenSaverElement[],
|
indicatorScreensaverEntity: indicatorScreensaverEntityType
|
||||||
mrIcon1ScreensaverEntity: ScreenSaverMRElement,
|
mrIcon1ScreensaverEntity: ScreenSaverMRElement,
|
||||||
mrIcon2ScreensaverEntity: ScreenSaverMRElement,
|
mrIcon2ScreensaverEntity: ScreenSaverMRElement,
|
||||||
defaultColor: RGB,
|
defaultColor: RGB,
|
||||||
@@ -9687,16 +9664,18 @@ type Config = {
|
|||||||
button1: ConfigButtonFunction,
|
button1: ConfigButtonFunction,
|
||||||
button2: ConfigButtonFunction
|
button2: ConfigButtonFunction
|
||||||
}
|
}
|
||||||
|
type leftScreensaverEntityType = [ScreenSaverElementWithUndefined, ScreenSaverElementWithUndefined, ScreenSaverElementWithUndefined] | [];
|
||||||
|
type indicatorScreensaverEntityType = [ScreenSaverElementWithUndefined, ScreenSaverElementWithUndefined, ScreenSaverElementWithUndefined, ScreenSaverElementWithUndefined, ScreenSaverElementWithUndefined] | [];
|
||||||
|
type ScreenSaverElementWithUndefined = null | undefined | ScreenSaverElement
|
||||||
type ScreenSaverElement = {
|
type ScreenSaverElement = {
|
||||||
ScreensaverEntity: string,
|
ScreensaverEntity: string,
|
||||||
|
ScreensaverEntityText: string,
|
||||||
ScreensaverEntityFactor?: number,
|
ScreensaverEntityFactor?: number,
|
||||||
ScreensaverEntityDecimalPlaces?: number,
|
ScreensaverEntityDecimalPlaces?: number,
|
||||||
ScreensaverEntityDateFormat?: any | null,
|
ScreensaverEntityDateFormat?: Intl.DateTimeFormatOptions,
|
||||||
ScreensaverEntityIconOn?: string | null,
|
ScreensaverEntityIconOn?: string | null,
|
||||||
ScreensaverEntityIconOff?: string | null,
|
ScreensaverEntityIconOff?: string | null,
|
||||||
ScreensaverEntityText: string,
|
ScreensaverEntityUnitText?: string,
|
||||||
ScreensaverEntityUnitText?: string | null,
|
|
||||||
ScreensaverEntityIconColor?: RGB | IconScaleElement | string
|
ScreensaverEntityIconColor?: RGB | IconScaleElement | string
|
||||||
ScreensaverEntityOnColor?: RGB
|
ScreensaverEntityOnColor?: RGB
|
||||||
ScreensaverEntityOffColor?: RGB
|
ScreensaverEntityOffColor?: RGB
|
||||||
|
|||||||
Reference in New Issue
Block a user