Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. ente34

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 16
    • Posts 248
    • Best 14
    • Groups 2

    ente34

    @ente34

    Starter

    16
    Reputation
    34
    Profile views
    248
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ente34 Follow
    Pro Starter

    Best posts made by ente34

    • RE: [gelöst] das leidige Thema "Stromausfall"

      @homoran
      Im Handbuch steht aber auch:

      HINWEIS: Zur Vermeidung von Elektronikschrott und zum Schutz der
      Umwelt werden grundsätzlich keine USB-Kabel mehr mitgeliefert. Sie können
      das Kabel kostenlos unter https://www.apc.com/usbcable bestellen

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Gelöschtes (Blockly) Script wiederherstellen?

      @nik82
      Ich habe hier einen Beitrag gesehen

      posted in Skripten / Logik
      E
      ente34
    • RE: [Gelöst] Datenwert wird nur einmal ausgelesen?

      @nordischerjung
      Also so:
      trigger.PNG

      posted in Blockly
      E
      ente34
    • RE: einfaches Script will nicht.... [solved]

      @johannes-bauerstatter sagte in einfaches Script will nicht....:

      if (Warmwasser = true)                                                                    
      

      Vergleiche mit "==" oder bei bool ganz weglassen:

      if (Warmwasser) {
          setState('sonoff.0.S4 Warmwasser.POWER', true);
          sendTo('telegram.0', 'send', {text: 'Wasser ein'})
      } else {
          setState('sonoff.0.S4 Warmwasser.POWER', false);
          sendTo('telegram.0', 'send', {text: 'Wasser aus'})
      }
      
      
      posted in ioBroker Allgemein
      E
      ente34
    • RE: Statische Variable in Funktionen

      @hanss
      siehe hier

      Gut gefallen hat mir

      function countMyself() {
          // Check to see if the counter has been initialized
          if ( typeof countMyself.counter == 'undefined' ) {
              // It has not... perform the initialization
              countMyself.counter = 0;
          }
      
          // Do something stupid to indicate the value
          alert(++countMyself.counter);
      }
      
      posted in JavaScript
      E
      ente34
    • RE: [gelöst] JSON erstellen und filtern

      @opossum
      Das ist doch dieser Block:

      dp1.PNG

      posted in Blockly
      E
      ente34
    • RE: [gelöst] das leidige Thema "Stromausfall"

      @homoran
      Noch einen kurzer Bericht zur Lage.
      APC BE850G2-GR heute angekommen. Im Manual ... (Kabel nicht mitgeliefert). Am Gerät ein orangener Aufkleber ...Kabel kostenfrei bestellen unter ...
      Außerdem lag ein Kabel dabei!
      Da weiß wohl die rechte Hand nicht, was die linke tut.
      Software nach dieser Anleitung installiert - läuft.
      Danke für den Tipp, ich sehe jetzt Stromausfällen gelassener entgegen.

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Betatester für Backitup 2.0.0 gesucht

      @jan1
      Das hat geholfen!

      posted in Tester
      E
      ente34
    • RE: [gelöst] JSON erstellen und filtern

      @opossum
      Etwa so:
      (Ich bin mir nicht sicher, ob Du das JSON.stringify benötigst, habe es mal weggelassen)

      dp.PNG

      posted in Blockly
      E
      ente34
    • RE: IoBroker-Pro Fernzugriff auf Scripte geht nicht

      @glasfaser
      @all Vielen Dank!

      posted in Error/Bug
      E
      ente34

    Latest posts made by ente34

    • RE: Javascript: Probleme mit readdir : feature oder bug?

      @haus-automatisierung sagte in Javascript: Probleme mit readdir : feature oder bug?:

      @ente34 sagte in Javascript: Probleme mit readdir : feature oder bug?:

      const my_readdir = util.promisify(fs.readdir);

      Dafür gibt es eigentlich fs/promises. https://nodejs.org/api/fs.html#fspromisesreaddirpath-options

      Im Adapter wird fs vom node core überschrieben, damit man in manche Verzeichnisse nicht manuell schreibt (wie iobroker-data/files). Mit einem einfachen Beispiel als Bug melden (bist ja Beta-Tester).

      Danke für die schnelle Antwort!
      Wo genau melden, javascript-Adapter, js-controller, ...?

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Javascript: Probleme mit readdir : feature oder bug?

      @homoran Alles klar, danke für den Hinweis!

      posted in ioBroker Allgemein
      E
      ente34
    • Javascript: Probleme mit readdir : feature oder bug?

      Ich habe alle Adapter von stable auf latest ge-updated.
      Dabei ist mir aufgefallen, dass in Scripts das 'readdir' Fehler wirft

      const fs = require('fs');
      const util = require('util');
      const my_readdir = util.promisify(fs.readdir);
      
      const searchDir = '/tmp';
      
      async function FindFile(dir) {
          let rc = '';
          //console.log('### '+dir);
          try {
              let files = [];
              files = await my_readdir(dir);
              for (let file of files) {
                  let fullpath = dir + '/' + file;
                  rc = fullpath;
              }
          } catch (e) {
              console.log(e);
          } finally {
              return rc;
          }
      }
      
      function execPromise(command) {
          return new Promise(function(resolve, reject) {
              exec(command, (error, stdout, stderr) => {
                  if (error) {
                      //console.log(stderr);
                      reject(error);
                      return;
                  }
                  resolve(stdout.trim());
              });
          });
      }
      
      
      
      try {
          let result = FindFile(searchDir);
          //let result = await execPromise(`find ${searchDir} -type f `);
          log(result);
      } catch (e) {
          console.error(e.message);
      }
      

      Es gibt die folgende log-Meldung:

      javascript.0
      	2025-07-27 11:42:01.749	info	script.js.Test.readdir: TypeError: Cannot read properties of undefined (reading 'ProtectFs') at readdir (/opt/iobroker/node_modules/iobroker.javascript/src/lib/protectFs.ts:625:14) at node:internal/util:438:7 at new Promise (<anonymous>) at readdir (node:internal/util:424:12) at FindFile (script.js.Test.readdir:114:23) at script.js.Test.readdir:142:18 at script.js.Test.readdir:152:3 at Script.runInContext (node:vm:149:12) at Script.runInNewContext (node:vm:154:17) at JavaScript.execute (/opt/iobroker/node_modules/iobroker.javascript/src/main.ts:2203:27)
      

      Die Alternative mit exec funktioniert.

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Alexa2 3.25.x (Beta) - jetzt wieder mit History :-)

      @apollon77 Nur zur Info:
      Heute Nacht war bei mir die Internet-Verbindung für ca. eine Stunde unterbrochen (geplante Wartung des Providers),
      der Alexa-Adapter hat danach ständig log-Meldungen ausgegeben, erst ein manueller Restart hat ihn beruhigt.
      Fehlfunktionen außer den Logs habe ich nicht beobachtet.

      P.S Sorry für die Formatierung unten, bin gerade gezwungen, ein iPad zu benutzen, keine Ahnung wo in der iOS-Welt die newlines verschwunden sind …

      
      info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:49:03.926 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:50:03.879 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:50:05.183 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:51:05.140 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:51:06.457 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:52:06.412 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:52:07.753 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:53:00.049 - info: host.raspi-iobroker instance system.adapter.openweathermap.0 started with pid 8669 2023-09-12 01:53:07.702 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:53:09.322 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:53:23.944 - info: host.raspi-iobroker instance system.adapter.openweathermap.0 terminated with code 0 (NO_ERR 2023-09-12 01:54:09.278 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:54:10.595 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:55:10.551 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:55:11.880 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:56:11.837 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:56:13.172 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:57:13.125 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:57:14.456 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:58:14.412 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:58:15.738 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 01:59:15.692 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 01:59:17.008 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 02:00:13.071 - info: influxdb.0 (30877) Store 115 buffered influxDB history points
      2023-09-12 02:00:16.963 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 02:00:18.281 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 02:01:18.236 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 02:01:19.559 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 02:02:19.514 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 02:02:20.838 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 02:03:20.793 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 02:03:22.135 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 02:04:22.085 - info: alexa2.0 (11588) Alexa-Push-Connection disconnected - retry: Retry Connection in 1s 2023-09-12 02:04:23.414 - info: alexa2.0 (11588) Alexa-Push-Connection (macDms = true) established. Disable Polling 2023-09-12 02:05:01.648 - info: ja
      
      
      posted in ioBroker Allgemein
      E
      ente34
    • RE: Alexa2 Version 3.24.+

      @apollon77
      Bei mir sieht es auch gut aus,
      Vielen Dank!

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Trashschedule Adapter läuft nach update nicht mehr

      @thomas-braun sagte in Trashschedule Adapter läuft nach update nicht mehr:

      Strg-Umschalt-X ist der Zaubertrick. Dann kann man das dem Image gleich mitgeben.

      Geil, man lernt doch immer noch was dazu!
      Dann muss man nur noch das root-Filesystem erweitern

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Stromzähler auslesen

      @tege0
      Für Deinen Zähler Apator Norax 3 D lt. Datenblatt

      posted in ioBroker Allgemein
      E
      ente34
    • Raspi 4 mit SSD

      Hallo Forenmitglieder,

      ich habe einen Raspi 4 mit SSD, Bootreihenfolge USB, dann Micro-SD.
      Wie macht ihr das, lasst ihr die Micro-SD Karte im Slot stecken oder entfernt ihr sie?
      Begründung?

      posted in Hardware
      E
      ente34
    • RE: [gelöst] das leidige Thema "Stromausfall"

      @homoran
      Noch einen kurzer Bericht zur Lage.
      APC BE850G2-GR heute angekommen. Im Manual ... (Kabel nicht mitgeliefert). Am Gerät ein orangener Aufkleber ...Kabel kostenfrei bestellen unter ...
      Außerdem lag ein Kabel dabei!
      Da weiß wohl die rechte Hand nicht, was die linke tut.
      Software nach dieser Anleitung installiert - läuft.
      Danke für den Tipp, ich sehe jetzt Stromausfällen gelassener entgegen.

      posted in ioBroker Allgemein
      E
      ente34
    • RE: Stromzähler auslesen

      @tege0
      Smartmeter Adapter reicht für den Einstieg aus.
      Die Parameter sind 9600 Baud 8N1.
      Wenn das läuft, kannst Du später mit Source-Analytix Auswertungen machen

      posted in ioBroker Allgemein
      E
      ente34
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo