if(e?.length==3 && typeof(e[0])=="string" && e[0].match(/-lastFilename$/)) {
Was soll das '?' bewirken (ich habe die Syntax auf die Schnelle nicht gefunden)? if(e.length==3 && typeof(e[0])=="string" && e[0].match(/-lastFilename$/)) { // noansi: e?.lenght corrected?!?
Ohne '?' meckert die Java Konsole jedenfalls nicht mehr. Und die Darstellung im Browser sieht wieder normal aus (keine Soundwiedergabe Nutzung meinerseits).Zitat von: Beta-User am 30 April 2026, 09:26:15Die ganze Konstruktion behagt mir nicht so recht, eigentlich wäre es vermutlich hilfreich, die "start()"-Routine (timer-basiert) aufzurufen und alle relevanten Abfragen darüber (zentral) zu erledigen?Ich bin ganz bei dir, wenn du schreibst, dass dir die ganze Konstruktion nicht recht behagt.
--- 89_FULLY.pm 2026-05-04 13:01:57.486744949 +0200
+++ 89_FULLY_new.pm 2026-05-04 13:01:36.710893212 +0200
@@ -66,7 +66,7 @@
$hash->{ShutdownFn} = "FULLY_Shutdown";
$hash->{FW_detailFn} = "FULLY_Detail";
- $hash->{AttrList} = "pingBeforeCmd:0,1,2 pollInterval:slider,10,10,86400 requestTimeout:slider,1,1,20 repeatCommand:0,1,2 " .
+ $hash->{AttrList} = "pingBeforeCmd:0,1,2 pollInterval:selectnumbers,0,300,86400,0,lin requestTimeout:slider,1,1,20 repeatCommand:0,1,2 " .
"disable:0,1 expert:0,1 waitAfterPing:0,1,2 updateAfterCommand:0,1 STTprocessor " .
$readingFnAttributes;
return;
@@ -154,6 +154,7 @@
if ($cmd eq 'set') {
if ($attrname eq 'pollInterval') {
if ($attrval >= $FULLY_POLL_RANGE[0] && $attrval <= $FULLY_POLL_RANGE[1]) {
+ return if IsDisabled($name);
FULLY_SetPolling ($hash, 1, $attrval);
}
elsif ($attrval == 0) {
@@ -186,6 +187,7 @@
elsif ($cmd eq 'del') {
if ($attrname eq 'pollInterval') {
# Set the polling interval to default
+ return if IsDisabled($name);
FULLY_SetPolling ($hash, 1);
}
elsif ($attrname eq 'disable') {