Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. history2db "Ignore ID" trotz --processAllDPs Parameter

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    history2db "Ignore ID" trotz --processAllDPs Parameter

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

      Hallo zusammen,

      ich versuche History Adapter Daten zu InfluxDB zu übertragen.

      Ich starte mit einer frisch geleerten InfluxDB, um keine duplikate zu erhalten. Demnach sind dort keine von meinen zum loggen gesetzten 61 Datenpunkten enthalten, was den history2db.js dazu veranlassen würde nicht in der InfluxDB gefundene Datenpunkte zu ignorieren.
      Nun hatte ich es so verstanden, dass der Parameter --processAllDPs genau das aushebeln soll, so dass wirklich alle übertragen wird was an json Files im History Adapter gefunden wird.

      Wie ich es aufrufe:

      node history2db.js influxdb.0 info 20240325 /opt/iobroker/iobroker-data/history --processAllDPs --simulate
      
      Send Data to influxdb.0
      Start at 20240325
      Use historyDir /opt/iobroker/iobroker-data/history
      earliesDBValues initialized from cache 23
      ExistingDBTypes initialized from cache 23
      Started processFiles with 23 known db values
      We start earliest at 20240325
      

      Ein Auszug von dem was passiert

      Day 20240324 - history.powerfox.currentFeedIn.json
        datapoints reduced from 353 --> 353
        sorted out 0 values
        SIMULATE: Not really writing ... 353 values for powerfox.currentFeedIn
      Day 20240324 - history.powerfox.currentPower.json
        datapoints reduced from 850 --> 850
        sorted out 0 values
        SIMULATE: Not really writing ... 850 values for powerfox.currentPower
      Day 20240324 - history.powerfox.feedInMeterReadingKWh.json
          Ignore ID history.powerfox.feedInMeterReadingKWh.json: powerfox.feedInMeterReadingKWh
      Day 20240324 - history.shelly.ArbeitszimmerConsumptionDaily.json
          Ignore ID history.shelly.ArbeitszimmerConsumptionDaily.json: shelly.ArbeitszimmerConsumptionDaily
      Day 20240324 - history.shelly.BalkonkraftwerkProductionDaily.json
          Ignore ID history.shelly.BalkonkraftwerkProductionDaily.json: shelly.BalkonkraftwerkProductionDaily
      Day 20240324 - history.shelly.KinderzimmerConsumptionDaily.json
          Ignore ID history.shelly.KinderzimmerConsumptionDaily.json: shelly.KinderzimmerConsumptionDaily
      Day 20240324 - history.shelly.KuecheConsumptionDaily.json
          Ignore ID history.shelly.KuecheConsumptionDaily.json: shelly.KuecheConsumptionDaily
      Day 20240324 - history.shelly.SchlafzimmerConsumptionDaily.json
          Ignore ID history.shelly.SchlafzimmerConsumptionDaily.json: shelly.SchlafzimmerConsumptionDaily
      Day 20240324 - history.shelly.WohnzimmmerConsumptionDaily.json
          Ignore ID history.shelly.WohnzimmmerConsumptionDaily.json: shelly.WohnzimmmerConsumptionDaily
      Day 20240324 - history.solarmanpv.generatedPower.json
        datapoints reduced from 127 --> 127
        sorted out 0 values
        SIMULATE: Not really writing ... 127 values for solarmanpv.generatedPower
      

      Kann mir jemand sagen, wie ich den Import so hinbiege, dass er ausnahmslos alle history json's mitnimmt?

      1 Reply 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

      861
      Online

      31.9k
      Users

      80.1k
      Topics

      1.3m
      Posts

      1
      1
      84
      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