From 29ece100ebc6aa59e0f123b6099d565f4c0d2018 Mon Sep 17 00:00:00 2001 From: Thomas <101348966+tt-tom17@users.noreply.github.com> Date: Tue, 18 Apr 2023 13:21:08 +0200 Subject: [PATCH] v.4.0.5.7 Fix function check_updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit durch Änderung des Trigger von PopupNotifyPage (v4.0.5.5) muss die Reihenfolge zum Setzen der Datenpunkte angepasst werden --- ioBroker/NsPanelTs.ts | 11 ++++++----- ioBroker/NsPanelTs_without_Examples.ts | 12 +++++++----- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ioBroker/NsPanelTs.ts b/ioBroker/NsPanelTs.ts index 87eaf94d..3052da06 100644 --- a/ioBroker/NsPanelTs.ts +++ b/ioBroker/NsPanelTs.ts @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------- -TypeScript v4.0.5.6 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom +TypeScript v4.0.5.7 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom - abgestimmt auf TFT 50 / v4.0.5 / BerryDriver 8 / Tasmota 12.4.0 @joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts @@ -129,7 +129,8 @@ ReleaseNotes: - 03.04.2023 - v4.0.5.4 Fix HandleScreensaverStatusIcons - 09.04.2023 - v4.0.5.5 Add new Role "timeTable" to function CreateEntity for Adapter "Fahrplan" - 09.04.2023 - v4.0.5.5 Fix trigger popupNotifypage - - 11.04.2023 - v4.0.5.6 Fix function InitDimmode + - 11.04.2023 - v4.0.5.6 Fix function InitDimmode + - 18.04.2023 - v4.0.5.7 Fix Function check_updates *********************************************************************************************************** * Für die Erstellung der Aliase durch das Skript, muss in der JavaScript Instanz "setObect" gesetzt sein! * @@ -2317,11 +2318,11 @@ async function check_updates() { const Timeout = 0; await setStateAsync(popupNotifyHeading, { val: Headline, ack: false }); - await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); await setStateAsync(popupNotifyButton1Text, { val: Button1, ack: false }); await setStateAsync(popupNotifyButton2Text, { val: Button2, ack: false }); await setStateAsync(popupNotifySleepTimeout, { val: Timeout, ack: false }); await setStateAsync(popupNotifyInternalName, { val: InternalName, ack: false }); + await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); } } } else { @@ -2358,11 +2359,11 @@ async function check_updates() { const Timeout = 0; await setStateAsync(popupNotifyHeading, { val: Headline, ack: false }); - await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); await setStateAsync(popupNotifyButton1Text, { val: Button1, ack: false }); await setStateAsync(popupNotifyButton2Text, { val: Button2, ack: false }); await setStateAsync(popupNotifySleepTimeout, { val: Timeout, ack: false }); await setStateAsync(popupNotifyInternalName, { val: InternalName, ack: false }); + await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); } } } else { @@ -2399,11 +2400,11 @@ async function check_updates() { const Timeout = 0; await setStateAsync(popupNotifyHeading, { val: Headline, ack: false }); - await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); await setStateAsync(popupNotifyButton1Text, { val: Button1, ack: false }); await setStateAsync(popupNotifyButton2Text, { val: Button2, ack: false }); await setStateAsync(popupNotifySleepTimeout, { val: Timeout, ack: false }); await setStateAsync(popupNotifyInternalName, { val: InternalName, ack: false }); + await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); } } } else { diff --git a/ioBroker/NsPanelTs_without_Examples.ts b/ioBroker/NsPanelTs_without_Examples.ts index 9ce78373..b99edf6a 100644 --- a/ioBroker/NsPanelTs_without_Examples.ts +++ b/ioBroker/NsPanelTs_without_Examples.ts @@ -1,5 +1,5 @@ /*----------------------------------------------------------------------- -TypeScript v4.0.5.6 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom +TypeScript v4.0.5.7 zur Steuerung des SONOFF NSPanel mit dem ioBroker by @Armilar / @Sternmiere / @Britzelpuf / @ravenS0ne / @TT-Tom - abgestimmt auf TFT 50 / v4.0.5 / BerryDriver 8 / Tasmota 12.4.0 @joBr99 Projekt: https://github.com/joBr99/nspanel-lovelace-ui/tree/main/ioBroker NsPanelTs.ts (dieses TypeScript in ioBroker) Stable: https://github.com/joBr99/nspanel-lovelace-ui/blob/main/ioBroker/NsPanelTs.ts @@ -129,7 +129,8 @@ ReleaseNotes: - 03.04.2023 - v4.0.5.4 Fix HandleScreensaverStatusIcons - 09.04.2023 - v4.0.5.5 Add new Role "timeTable" to function CreateEntity for Adapter "Fahrplan" - 09.04.2023 - v4.0.5.5 Fix trigger popupNotifypage - - 11.04.2023 - v4.0.5.6 Fix function InitDimmode + - 11.04.2023 - v4.0.5.6 Fix function InitDimmode + - 18.04.2023 - v4.0.5.7 Fix Function check_updates *********************************************************************************************************** * Für die Erstellung der Aliase durch das Skript, muss in der JavaScript Instanz "setObect" gesetzt sein! * @@ -1525,6 +1526,7 @@ async function InitDimmode() { } else { ScreensaverDimmode(timeDimMode); } + } catch (err) { console.warn('error at function InitDimmode: ' + err.message); } @@ -1806,11 +1808,11 @@ async function check_updates() { const Timeout = 0; await setStateAsync(popupNotifyHeading, { val: Headline, ack: false }); - await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); await setStateAsync(popupNotifyButton1Text, { val: Button1, ack: false }); await setStateAsync(popupNotifyButton2Text, { val: Button2, ack: false }); await setStateAsync(popupNotifySleepTimeout, { val: Timeout, ack: false }); await setStateAsync(popupNotifyInternalName, { val: InternalName, ack: false }); + await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); } } } else { @@ -1847,11 +1849,11 @@ async function check_updates() { const Timeout = 0; await setStateAsync(popupNotifyHeading, { val: Headline, ack: false }); - await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); await setStateAsync(popupNotifyButton1Text, { val: Button1, ack: false }); await setStateAsync(popupNotifyButton2Text, { val: Button2, ack: false }); await setStateAsync(popupNotifySleepTimeout, { val: Timeout, ack: false }); await setStateAsync(popupNotifyInternalName, { val: InternalName, ack: false }); + await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); } } } else { @@ -1888,11 +1890,11 @@ async function check_updates() { const Timeout = 0; await setStateAsync(popupNotifyHeading, { val: Headline, ack: false }); - await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); await setStateAsync(popupNotifyButton1Text, { val: Button1, ack: false }); await setStateAsync(popupNotifyButton2Text, { val: Button2, ack: false }); await setStateAsync(popupNotifySleepTimeout, { val: Timeout, ack: false }); await setStateAsync(popupNotifyInternalName, { val: InternalName, ack: false }); + await setStateAsync(popupNotifyText, { val: [formatDate(getDateObject((new Date().getTime())), 'TT.MM.JJJJ SS:mm:ss'), '\r\n', '\r\n', Text].join(''), ack: false }); } } } else {