Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [gelöst] das leidige Thema "Stromausfall"

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    [gelöst] das leidige Thema "Stromausfall"

    This topic has been deleted. Only users with topic management privileges can see it.
    • BananaJoe
      BananaJoe Most Active @AlCalzone last edited by

      @alcalzone Klingt so als könnte da gerade für die vielen Raspberry Pi Benutzer etwas getan werden könnte mit der JSONL-Variante. Bei denen lese ich - gefühlt - ja öfter "System läuft nicht nach Stromausfall/Neustart/usw."

      Theoretisch könnte man das ja auch auf REDIS umstellen ... macht man aber nicht?

      1 Reply Last reply Reply Quote 0
      • R
        Rushmed Most Active last edited by

        Ich hab noch ne Frage zu writeFileInterval. Wo genau packe ich das in der iobroker.json hin wenn es noch nicht da ist? Einfach bei Objects und States als neue Zeile mit rein also bspw. Zeile 27 und 53?

        {
          "system": {
            "memoryLimitMB": 0,
            "hostname": "",
            "statisticsInterval": 15000,
            "statisticsIntervalComment": "Interval how often the counters for input/output in adapters and controller will be updated",
            "checkDiskInterval": 300000,
            "checkDiskIntervalComment": "Interval how often the disk size will be checked",
            "noChmod": false,
            "instanceStartInterval": 2000,
            "noChmodComment": "Flag to test new feature with no chmod call. Must be deleted later and noChmod must be mainline (2018.06.04)",
            "compact": false,
            "compactComment": "Controller will try to start the instances as a part of the same process. No spawn will be done. Only by adapters that support it and have flag compact flag in io-package.json",
            "allowShellCommands": false,
            "allowShellCommandsComment": "Allow execution of \"shell\" sendToHost commands"
          },
          "multihostService": {
            "enabled": false,
            "secure": true
          },
          "network": {
            "IPv4": true,
            "IPv6": true,
            "bindAddress": null
          },
          "objects": {
            "type": "file",
            "typeComment": "Possible values: 'file' - [port 9001], redis - [port 6379], couch - [port 5984].",
            "host": "127.0.0.1",
            "port": 9001,
            "user": "",
            "pass": "",
            "noFileCache": false,
            "connectTimeout": 2000,
            "options": {
              "auth_pass": null,
              "retry_max_delay": 5000
            },
            "backup": {
              "disabled": false,
              "files": 24,
              "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings",
              "hours": 48,
              "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber",
              "period": 120,
              "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0",
              "path": "",
              "pathComment": "Absolute path to backup directory or empty to backup in data directory"
            },
            "dataDir": "../../iobroker-data/"
          },
          "states": {
            "type": "file",
            "typeComment": "Possible values: 'file' - [port 9000], 'redis' - [port 6379].",
            "host": "127.0.0.1",
            "port": 9000,
            "maxQueue": 1000,
            "user": "",
            "pass": "",
            "connectTimeout": 2000,
            "options": {
              "auth_pass": null,
              "retry_max_delay": 5000
            },
            "backup": {
              "disabled": false,
              "files": 24,
              "filesComment": "Minimal number of backup files, after the deletion will be executed according to backupTime settings",
              "hours": 48,
              "hoursComment": "All backups older than 48 hours will be deleted. But only if the number of files is greater than of backupNumber",
              "period": 120,
              "periodComment": "by default backup every 2 hours. Time is in minutes. To disable backup set the value to 0",
              "path": "",
              "pathComment": "Absolute path to backup directory or empty to backup in data directory"
            },
            "dataDir": "../../iobroker-data/"
          },
          "log": {
            "level": "info",
            "maxDays": 7,
            "noStdout": true,
            "transport": {
              "file1": {
                "type": "file",
                "enabled": true,
                "filename": "log/iobroker",
                "fileext": ".log",
                "maxSize": null,
                "maxFiles": null
              },
              "syslog1": {
                "type": "syslog",
                "enabled": false,
                "host": "localhost",
                "hostComment": "The host running syslogd, defaults to localhost.",
                "portComment": "The port on the host that syslog is running on, defaults to syslogd's default port(514/UDP).",
                "protocol": "udp4",
                "protocolComment": "The network protocol to log over (e.g. tcp4, udp4, unix, unix-connect, etc).",
                "pathComment": "The path to the syslog dgram socket (i.e. /dev/log or /var/run/syslog for OS X).",
                "facilityComment": "Syslog facility to use (Default: local0).",
                "localhost": "iobroker",
                "localhostComment": "Host to indicate that log messages are coming from (Default: localhost).",
                "sysLogTypeComment": "The type of the syslog protocol to use (Default: BSD).",
                "app_nameComment": "The name of the application (Default: process.title).",
                "eolComment": "The end of line character to be added to the end of the message (Default: Message without modifications)."
              }
            }
          },
          "dataDirComment": "Always relative to iobroker.js-controller/",
          "dataDir": "../../iobroker-data/"
        }
        

        Ich nehme an, dass die noch nicht geschriebenen Werte einfach im Ram bleiben. Welche Intervallzeit ist denn hier empfohlen oder was sollte maximal eingestellt werden.
        Schreibt der ioBroker die Files bei "iobroker stop" unabhängig vom Intervall?

        paul53 R 2 Replies Last reply Reply Quote 0
        • paul53
          paul53 @Rushmed last edited by

          @rushmed sagte: Einfach bei Objects und States als neue Zeile mit rein also bspw. Zeile 27 und 53?

          Ja.

          @rushmed sagte in das leidige Thema "Stromausfall":

          Schreibt der ioBroker die Files bei "iobroker stop" unabhängig vom Intervall?

          Ja.

          R 1 Reply Last reply Reply Quote 0
          • R
            Rushmed Most Active @paul53 last edited by

            @paul53 Ok, danke und wie sein die Standardwerte?
            Für die States steht oben 30000 ms und was ist es für die Objects?

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Rushmed last edited by

              @rushmed sagte: was ist es für die Objects?

              5000 ms.

              R 1 Reply Last reply Reply Quote 0
              • R
                Rushmed Most Active @paul53 last edited by

                @paul53 Danke!
                Für mich zum Verständnis, die States enthält die Datenpunkte und doe Objects enthält die Werte, oder?

                Homoran paul53 2 Replies Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @Rushmed last edited by

                  @rushmed sagte in das leidige Thema "Stromausfall":

                  @paul53 Danke!
                  Für mich zum Verständnis, die States enthält die Datenpunkte und doe Objects enthält die Werte, oder?

                  anders herum

                  1 Reply Last reply Reply Quote 1
                  • paul53
                    paul53 @Rushmed last edited by

                    @rushmed sagte: die States enthält die Datenpunkte und doe Objects enthält die Werte, oder?

                    Umgekehrt: States enthält die dynamischen Zustände und Objects enthält die statischen Objekte.

                    1 Reply Last reply Reply Quote 1
                    • R
                      Rushmed Most Active @Rushmed last edited by

                      @rushmed sagte in das leidige Thema "Stromausfall":

                      Welche Intervallzeit ist denn hier empfohlen oder was sollte maximal eingestellt werden.
                      Schreibt der ioBroker die Files bei "iobroker stop" unabhängig vom Intervall?

                      Kann das noch jemand beantworten?

                      Homoran 1 Reply Last reply Reply Quote 0
                      • Homoran
                        Homoran Global Moderator Administrators @Rushmed last edited by

                        @rushmed sagte in das leidige Thema "Stromausfall":

                        Kann das noch jemand beantworten?

                        Noch jemand?

                        @paul53 sagte in das leidige Thema "Stromausfall":

                        kann z.B. die Schreibfrequenz für die states.json vorgegeben werden: "writeFileInterval": 300000 (5 Minuten).

                        @paul53 sagte in das leidige Thema "Stromausfall":

                        @rushmed sagte in das leidige Thema "Stromausfall":

                        Schreibt der ioBroker die Files bei "iobroker stop" unabhängig vom Intervall?

                        Ja.

                        1 Reply Last reply Reply Quote 0
                        • Heimweh
                          Heimweh @OliverIO last edited by

                          @oliverio ich habe auch eine SSD im NUC. Das krasse ist - bisher ist in JEDEM Fall passiert das eine der beiden Dateien zerschossen war... Ich bin gerade am recherchieren was für eine USV ich mir anschaffen werde. Am liebsten eine die auch einbindbar ist - um dann zB im Falle eines Stromausfalls das System kontrolliert runterfahren kann. (das würde ja mit den Proxmox Modulen umsetzbar sein)

                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Heimweh last edited by

                            @heimweh sagte in das leidige Thema "Stromausfall":

                            was für eine USV ich mir anschaffen werde. Am liebsten eine die auch einbindbar ist

                            UPS_APC_700.png

                            Das ist zwar keine Riesen UPS, kostet knapp 100€.
                            ich habe davon 2 Stück eingebunden

                            Für ein ganz paar kleine Rechnerchen hält sie aber auch etwa 1h

                            Heimweh 1 Reply Last reply Reply Quote 0
                            • Heimweh
                              Heimweh @Homoran last edited by

                              @homoran interessant! Vielen Dank! Und ich nehme an mit dem NUT Adapter hast Du die eingebunden? Wie genau heißt das Modell denn? Ich würde maximal den NUC und die Fritzbox ranhängen - dann kann ich mir im Ernstfall auch noch eine Nachricht schicken lassen das der Strom ausgefallen ist

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Heimweh last edited by

                                @heimweh sagte in das leidige Thema "Stromausfall":

                                dann kann ich mir im Ernstfall auch noch eine Nachricht schicken lassen das der Strom ausgefallen ist

                                Aber nur wenn nicht das ganze Dorf inkl. Internet-Infrastruktur ohne Saft ist.

                                Heimweh Homoran 2 Replies Last reply Reply Quote 0
                                • Heimweh
                                  Heimweh @Thomas Braun last edited by

                                  @thomas-braun ja das ist klar! Wobei ich neulich gelesen habe das zB Mobilfunk Sender noch ca. 20 Minuten gepuffert sind... Aber wie auch immer - es ging ja mehr darum das mein IObroker Server "überlebt"...

                                  1 Reply Last reply Reply Quote 0
                                  • Homoran
                                    Homoran Global Moderator Administrators @Thomas Braun last edited by Homoran

                                    @thomas-braun sagte in das leidige Thema "Stromausfall":

                                    @heimweh sagte in das leidige Thema "Stromausfall":

                                    dann kann ich mir im Ernstfall auch noch eine Nachricht schicken lassen das der Strom ausgefallen ist

                                    Aber nur wenn nicht das ganze Dorf inkl. Internet-Infrastruktur ohne Saft ist.

                                    sonst hängt man noch einen Aldi-Stick an den Nuc und schickt ne SMS

                                    @heimweh sagte in das leidige Thema "Stromausfall":

                                    Wie genau heißt das Modell denn?

                                    Back UPS 700
                                    habe gerade gesucht, die scheint es nicht mehr zu geben.
                                    Ersatz ist wohl die 850er

                                    https://www.reichelt.de/back-ups-850va-230v-usb-apc-be850g2-gr-p269971.html

                                    Wobei ich da keine Erfahrung habe ob man diese auch an NUT-server einbinden kann

                                    BananaJoe 1 Reply Last reply Reply Quote 0
                                    • BananaJoe
                                      BananaJoe Most Active @Homoran last edited by BananaJoe

                                      @homoran sagte in das leidige Thema "Stromausfall":

                                      Back UPS 700
                                      habe gerade gesucht, die scheint es nicht mehr zu geben.
                                      Ersatz ist wohl die 850er

                                      https://www.reichelt.de/back-ups-850va-230v-usb-apc-be850g2-gr-p269971.html

                                      Wobei ich da keine Erfahrung habe ob man diese auch an NUT-server einbinden kann

                                      Die APC USV-Anlagen haben in der Regel immer alle ein USB-Kabel dabei (sogar die Server USV Geräte bis 5.000 VA).
                                      Unter Windows wird das dann nach dem einstecken als Batterie gefunden, also auch ein normaler Desktop-PC hat dann eine Batterieanzeige wie ein Notebook, dementsprechend könnte man Ruhemodus etc. wie beim Notebook einstellen.
                                      Man kann aber auch die APC-Software installieren und dort Dinge wie herunterfahren einstellen.
                                      Oder per WMI abfragen: https://znil.net/index.php?title=Windows_Batterie_Akku_Status_per_WMI_abfragen

                                      QNAP und Synologie-NAS Geräte unterstützen APC USVs auch direkt, einfach USB an dem Gerät anschließen und konfigurieren.

                                      Unter Linux wird das zu 100% auch gehen, APC können sie alle.

                                      Was man leider nicht so findet wieviel die Dinger verbraten ohne das etwas dran steckt.

                                      Nachtrag: USV-Anlagen mit Netzwerkschnittstelle lassen sich immer per SNMP abfragen (behaupte ich mal bis das Gegenteil beweisen wurde)

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @BananaJoe last edited by

                                        @bananajoe sagte in das leidige Thema "Stromausfall":

                                        in der Regel immer alle ein USB-Kabel dabei

                                        war bisher so, in der Beschreibung der 850er steht "(nicht enthalten)"
                                        ich weiß nicht wehr sich ein RJ12->USB-Kabel selber basteln kann und will 😞

                                        BananaJoe 1 Reply Last reply Reply Quote 0
                                        • BananaJoe
                                          BananaJoe Most Active @Homoran last edited by BananaJoe

                                          @homoran neulich hatte ich eines verloren und für 10 Euro in der Bucht nachgekauft

                                          Aber ich behaupte das ist bei Neugeräten immer dabei. Ich meine bei USV-Anlagen steht bei Amazon auch "ohne Batterien" 🙂

                                          Homoran 1 Reply Last reply Reply Quote 0
                                          • Homoran
                                            Homoran Global Moderator Administrators @BananaJoe last edited by Homoran

                                            @bananajoe sagte in das leidige Thema "Stromausfall":

                                            Aber ich behaupte

                                            ich weiss es 🙂

                                            Datenanschluss
                                            Schließen Sie ein RJ45-/USB-Kabel (nicht mitgeliefert) an, um die
                                            Back-UPS an einen Computer zur Installation der Software
                                            anzuschließen. Einzelheiten hierzu finden Sie unter
                                            „PowerChute™ Personal Edition Software“ auf Seite 7.

                                            BananaJoe E 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            911
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            12
                                            63
                                            4009
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo