Navigation

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

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    F
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 6
    • Best 0
    • Groups 1

    Fischler

    @Fischler

    0
    Reputation
    16
    Profile views
    6
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Fischler Follow
    Starter

    Latest posts made by Fischler

    • RE: TESTER: Neuer Adapter Webuntis

      Moin moin,
      ich bin Lehrer an einem Berufsbildungszentrum und wir benutzen ebenfalls Untis und WebUntis.
      Erst einmal DANKE für den tollen Adapter.

      Mich würde interessieren ob es irgendwie möglich ist auch die Klassenbezeichnung angezeigt zu bekommen.
      Die Lehrkraft wäre mir persönlich egal, weil diese sich in meinem Fall nie ändert.

      Zusätzlich wäre es toll wenn man die aktuelle und die nächste Woche als Datenpunkt bekommen könnte.

      Lieben Gruß
      Dennis

      posted in Tester
      F
      Fischler
    • RE: Text2command + Telegrambot - "künstliche Intelligenz" scripten?

      Moin moin,

      In dem Script von dslRaser:

      on({id: 'telegram.0.communicate.request', change: 'any'}, function (obj) {
          var stateval = getState('telegram.0.communicate.request').val;              // Statevalue in Variable schreiben
          var benutzer = stateval.substring(1,stateval.indexOf("]"));                 // Benutzer aus Statevalue extrahieren
          var befehl = stateval.substring(stateval.indexOf("]")+1,stateval.length);   // Befehl/Text aus Statevalue extrahieren
      
           if (befehl.search(/(?=.*(\bBATTERIE\b|\bVOLL\b|\bLEER\b|\bVOLT\b)).+/ig) != -1) {
              sendTo('telegram', {
                  user: benutzer,
                  text: 'Für welchen Raum möchtest du die Batterie abfragen?',
                  reply_markup: {
                      inline_keyboard: [
                          [{ text: 'Flur', callback_data: '%BatFlur'}],
                          [{ text: 'Wohnzimmer', callback_data: '%BatWohnzimmer'}],
                          [{ text: 'Badezimmer', callback_data: '%BatBadezimmer'}], 
                          [{ text: 'Gästezimmer', callback_data: '%BatGaestezimmer'}],
                          [{ text: 'Schlafzimmer', callback_data: '%BatSchlafzimmer'}],
                      ]
                   }
              });
          }    
      
          ......
      
      

      gibt es eine RegExp mommt

      kann mir vielleicht jemand kurz die RegExp erklären?

      /(?=.(\bBATTERIE\b|\bVOLL\b|\bLEER\b|\bVOLT\b)).+/ig*

      Einiges habe ich schon selber heraus gefunden:

      .* -> kein oder mehrere beliebige Zeichen

      (\bBatterie\b|\bSpannung\b) -> allein stehendes Wort Batterie oder Spannung

      .+ -> Ein oder mehrere beliebige Zeichen

      i -> insensitiv (Klein und Großschreibung wird nicht beachtet)

      g -> globale Suche

      Wofür wird das ?= und das .+ benötigt ?

      Da die Wörter Batterie, Voll, Leer und Volt ja alleine stehen (\bVoll\b) warum soll dann noch ein beliebiges Zeichen folgen?

      Das ?= ist ja eine lookahead Anweisung aber davor steht ja nichts.

      Ich hoffe Ihr könnt meinen Knoten im Kopf etwas lösen.

      Danke schon mal.

      posted in ioBroker Allgemein
      F
      Fischler
    • RE: MQTT Adapter macht Probleme

      Ich habe Tasmota Version 6.4.1 installiert und es läuft mittlerweile ohne Probleme.

      Laut dem Debug scheint das Prefix und Topic noch vertauscht zu sein.

      > stateChange mqtt.0.cmnd.sonoff3.POWER

      richtig wäre allerdings:

      > stateChange mqtt.0.sonoff3.cmnd.POWER

      Postet doch mal das gesamte "aufgeklappte" Objekt <u>eines</u> Sonoff-Devices und die Infoseite von dem Sonoff-Device Hauptmenü -> Informationen

      posted in ioBroker Allgemein
      F
      Fischler
    • RE: MQTT Adapter macht Probleme

      Es liegt an den Clients. Im Tasmota-Wiki ist beschrieben wie man die Prefixe richtig verwendet.

      https://github.com/arendst/Sonoff-Tasmo … T-Features

      MQTT Topic definition

      Until version 5.0.5 the MQTT topic was defined rigidly by using the commands Prefix <x>and Topic resulting in a command topic string like cmnd/sonoff/Power.

      Starting with version 5.0.5 the MQTT topic is more flexible using command FullTopic and tokens to be placed within the user definable string up to 100 characters in size. The provided tokens are:

      %prefix% to be dynamically substituted by one of three prefixes as defined by commands Prefix1 (default: "cmnd"), Prefix2 (default: "stat") and Prefix3 (default: "tele").

      %topic% to be dynamically substituted by one of five topics as defined by commands Topic, GroupTopic, ButtonTopic, SwitchTopic and MqttClient.

      Using the tokens the following example topics can be made:

      FullTopic %prefix%/%topic%/ being the legacy situation up to version 5.0.5

      FullTopic tasmota/%topic%/%prefix%/

      FullTopic tasmota/bedroom/%topic%/%prefix%/

      FullTopic penthouse/bedroom1/bathroom2/%topic%/%prefix%/

      To solve possible MQTT topic loops I strongly suggest to use the %prefix% token in all of your FullTopics. It may work without %prefix% as I implemented some validation by forcing the use of a prefix in commands send to the device but status and telemetry do not need a prefix. Just play with it and report strange problems I might solve in the future.

      The use of the %topic% token is also mandatory in case you want to use ButtonTopic and/or SwitchTopic. It also provides for grouptopic and fallback topic functionality.

      <size size="150">Recommendation: Use both tokens at all time within your FullTopic string</size></x>

      posted in ioBroker Allgemein
      F
      Fischler
    • RE: IoBroker Autostart unter Ubuntu 16.04.5

      Nein, leider nicht.

      Ich habe jetzt Debian installiert, da funktioniert es ohne Probleme.

      Allerdings bleibt nun der NUC bei einem Reboot hängen, da die Treiber fehlen….

      Also auch suboptimal.

      posted in ioBroker Allgemein
      F
      Fischler
    • IoBroker Autostart unter Ubuntu 16.04.5

      Moin moin,

      ich habe leider ein Problem mit dem Autostart von ioBroker.

      Wenn der Rechner neustartet (Stromausfall etc.) wird ioBroker nicht gestartet.

      Ich habe schon einige Forenbeiträge gelesen und leider keine Antwort auf mein Problem finden können….

      Vielleicht kann mir ja jemand helfen. 😉

      Zur Rechner Umgebung:

      • Intel NUC

      • Ubuntu 16.04.5

      • npm 4.6.1

      • node v8.12.0

      Ich kann ioBroker manuell starten

      iobroker start
      

      funktioniert. Allerdings kann ioBroker dann z.B. keine Netzlaufwerke mounten

      starte ich iobroker mit

      sudo iobroker start
      

      Funktioniert alles ohne Probleme.

      Ich denke es scheint also irgendwo eine Rechteproblem beim Autostart zugeben.

      Hier noch einige Auszüge aus meiner Konfiguration:

      iobroker@iobroker:/etc/init.d$ systemctl status iobroker.service
      ● iobroker.service - LSB: starts ioBroker
         Loaded: loaded (/etc/init.d/iobroker.sh; bad; vendor preset: enabled)
         Active: active (exited) since Fr 2018-10-19 15:48:18 CEST; 35min ago
           Docs: man:systemd-sysv-generator(8)
        Process: 1143 ExecStart=/etc/init.d/iobroker.sh start (code=exited, status=0/SUCCESS)
          Tasks: 0
         Memory: 0B
            CPU: 0
      
      Okt 19 15:48:18 iobroker systemd[1]: Starting LSB: starts ioBroker...
      Okt 19 15:48:18 iobroker sudo[1148]:     root : TTY=unknown ; PWD=/ ; USER=iobroker ; COMMAND=/usr/bin/node /opt/iobroker/node_modules/iobroker.js-controller/iobroker.js st
      Okt 19 15:48:18 iobroker sudo[1148]: pam_unix(sudo:session): session opened for user iobroker by (uid=0)
      Okt 19 15:48:18 iobroker iobroker.sh[1143]: Starting ioBrokerStarting iobroker controller daemon...
      Okt 19 15:48:18 iobroker iobroker.sh[1143]: iobroker controller daemon failed to start:  Failed to write pidfile (EACCES)
      Okt 19 15:48:18 iobroker iobroker.sh[1143]: Error: Failed to write pidfile (EACCES)
      Okt 19 15:48:18 iobroker sudo[1148]: pam_unix(sudo:session): session closed for user iobroker
      Okt 19 15:48:18 iobroker systemd[1]: Started LSB: starts ioBroker.
      
      
      iobroker@iobroker:/opt/iobroker$ ls -l
      total 64
      drwxrwxrwx   2 root     root      4096 Okt 19 15:19 backups
      drwxrwxrwx   2 root     root      4096 Sep 13 14:14 etc
      -rwxrwxrwx   1 root     root       297 Sep 13 14:02 install.sh
      -rwxrwxrwx   1 root     root        67 Sep 13 14:02 iobroker
      drwxrwxrwx   6 root     root      4096 Sep 13 21:25 iobroker-data
      -rwxrwxrwx   1 root     root        92 Okt  1 20:30 killall.sh
      drwxrwxrwx   2 root     root      4096 Okt 19 02:12 log
      drwxrwxrwx 828 root     root     24576 Okt 19 14:47 node_modules
      -rwxrwxrwx   1 iobroker iobroker  1361 Okt 19 14:47 package.json
      -rwxrwxrwx   1 root     root       709 Okt  1 20:30 reinstall.sh
      iobroker@iobroker:/opt/iobroker$
      
      
      [sudo] 
      GNU nano 2.5.3                                            File: /etc/sudoers
      
      #
      # This file MUST be edited with the 'visudo' command as root.
      #
      # Please consider adding local content in /etc/sudoers.d/ instead of
      # directly modifying this file.
      #
      # See the man page for details on how to write a sudoers file.
      #
      Defaults        env_reset
      Defaults        mail_badpass
      Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
      
      # Host alias specification
      
      # User alias specification
      
      # Cmnd alias specification
      
      # User privilege specification
      root    ALL=(ALL:ALL) ALL
      
      # Members of the admin group may gain root privileges
      %admin ALL=(ALL) ALL
      
      # Allow members of group sudo to execute any command
      %sudo   ALL=(ALL:ALL) ALL
      
      # See sudoers(5) for more information on "#include" directives:
      
      #includedir /etc/sudoers.d
      
      
      posted in ioBroker Allgemein
      F
      Fischler
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
    The ioBroker Community 2014-2023
    logo