Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. English
    3. Development
    4. Files access from adapters settings page (react)

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    Files access from adapters settings page (react)

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sonusfaber last edited by

      From the adapter settings page (react), I need to create a lookup table, which is only read once and needs to be persisted in the adapter instance file space, but could not find any documentation. Is that possible?
      If not, are there any other means to persist information other than in the 'native' part of the instance object.

      It works from the adapter code with this.readFileAsync(namespace, fileName), but could not find anything similar in GenericApp class.
      Thanks for any recommendation

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

        @sonusfaber

        i see 3 kind of solutions

        1. you can create a normal datapoint with your adapter with permissions only read
        2. you can safe your information in the object data of a datapoint, maybe in the datapoint that represence your instance (adapter.0)
          for example the history adapter safes his data with the object path common.custom.history.0 and the sql adapter safes the data in common.custom.sql.0
          to see this in real life go to a datapoint, enable the logging with the history/and/or the sql-adapter, open the datapoint setting with the pen icon beside and select the object data tab.
        3. you can safe your data as a file below the following path
          /opt/iobroker/data-files/(name of your adapter)
          my adapter tvprogram, the history and the backup adapter also safe also some data here
        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Support us

        ioBroker
        Community Adapters
        Donate

        831
        Online

        31.6k
        Users

        79.4k
        Topics

        1.3m
        Posts

        3
        2
        310
        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