Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Local angelegte Datei bei Adapter-Update gelöscht. Normal?

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Local angelegte Datei bei Adapter-Update gelöscht. Normal?

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Guest last edited by

      @iwg sagte in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

      Zertifikat ist ja auch nur ein Beispiel. Es ist eher eine generelle Frage, wo ein Adapter irgendwelche Dateien ablegen sollte/dürfte.

      der Adapter oder du?
      was der Adapter darf muss der Entwickler wissen.

      crunchip 1 Reply Last reply Reply Quote 0
      • crunchip
        crunchip Forum Testing Most Active @Homoran last edited by

        @homoran das ist er doch selbst

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

          @crunchip sagte in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

          @homoran das ist er doch selbst

          dann gehört so was in die DEV Ecke, nicht unter iob allgemein

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User last edited by

            @homoran said in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

            der Adapter oder du?

            Wo ich, als Adapter-Entwickler, Dateien anlegen sollte

            Homoran haus-automatisierung 3 Replies Last reply Reply Quote 0
            • Homoran
              Homoran Global Moderator Administrators @Guest last edited by

              @iwg soll ich das Thema dann nicht besser verschieben?

              ? 1 Reply Last reply Reply Quote 0
              • ?
                A Former User @Homoran last edited by

                @homoran
                Das wäre nett. Ich wüsste nicht wie das geht bzw. darf wahrscheinlich nicht

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

                  @iwg erledigt

                  1 Reply Last reply Reply Quote 0
                  • haus-automatisierung
                    haus-automatisierung Developer Most Active @Guest last edited by haus-automatisierung

                    @iwg sagte in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

                    Wo ich, als Adapter-Entwickler, Dateien anlegen sollte

                    const utils = require('@iobroker/adapter-core');
                    utils.getAbsoluteInstanceDataDir(this)
                    

                    Das sollte Dir /opt/iobroker/iobroker-data/<adapterName>.<instanceNr> liefern (unter Linux).

                    Alternativ direkt mit adapter.writeFile(...). Dafür muss man aber ein Meta-Objekt anlegen.

                    Oder in einem Binary-State.

                    ? 1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User @haus-automatisierung last edited by

                      @haus-automatisierung

                      Vielen Dank! Werde sofort ausprobieren.

                      Noch eine Frage... heisst das, dass die Variante #1 unter Windows nicht geht? Oder ist das OS-agnostic?

                      haus-automatisierung 1 Reply Last reply Reply Quote 0
                      • haus-automatisierung
                        haus-automatisierung Developer Most Active @Guest last edited by haus-automatisierung

                        @iwg sagte in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

                        Oder ist das OS-agnostic?

                        Hoffentlich 🙂 Gehe ich aber stark von aus.

                        1 Reply Last reply Reply Quote 0
                        • haus-automatisierung
                          haus-automatisierung Developer Most Active @Guest last edited by

                          @iwg sagte in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

                          Wo ich, als Adapter-Entwickler, Dateien anlegen sollte

                          Ich habe gerade nochmal ein paar Beispiele zusammengeschrieben:

                          https://iobroker.readthedocs.io/de/latest/bestpractice/storefiles.html

                          ? 1 Reply Last reply Reply Quote 0
                          • ?
                            A Former User @haus-automatisierung last edited by

                            @haus-automatisierung said in Local angelegte Datei bei Adapter-Update gelöscht. Normal?:

                            https://iobroker.readthedocs.io/de/latest/bestpractice/storefiles.html

                            danke nochmals. Habe bereits in meinen Adapter eingebaut

                            1 Reply Last reply Reply Quote 1
                            • First post
                              Last post

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            761
                            Online

                            31.7k
                            Users

                            79.8k
                            Topics

                            1.3m
                            Posts

                            4
                            19
                            475
                            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