Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

  1. ioBroker Community Home
  2. English
  3. Development
  4. Files access from adapters settings page (react)

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.4k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.0k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.5k

Files access from adapters settings page (react)

Scheduled Pinned Locked Moved Development
2 Posts 3 Posters 510 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sonusfaber
    wrote on last edited by
    #1

    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

    OliverIOO 1 Reply Last reply
    0
    • S sonusfaber

      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

      OliverIOO Offline
      OliverIOO Offline
      OliverIO
      wrote on last edited by OliverIO
      #2

      @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

      Meine Adapter und Widgets
      TVProgram, SqueezeboxRPC, OpenLiga, RSSFeed, MyTime,, pi-hole2, vis-json-template, skiinfo, vis-mapwidgets, vis-2-widgets-rssfeed
      Links im Profil

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      Support us

      ioBroker
      Community Adapters
      Donate

      513

      Online

      32.4k

      Users

      81.4k

      Topics

      1.3m

      Posts
      Community
      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
      ioBroker Community 2014-2025
      logo
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Home
      • Recent
      • Tags
      • Unread 0
      • Categories
      • Unreplied
      • Popular
      • GitHub
      • Docu
      • Hilfe