Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. history speichern als csv

    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

    history speichern als csv

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

      Hallo.

      Wie erhalte ich eine richtige csv.

      Momentan speicher ich das hier.
      01.jpg

      Und erhalte das hier.
      02.jpg

      bahnuhr 1 Reply Last reply Reply Quote 0
      • bahnuhr
        bahnuhr Forum Testing Most Active @chris47803 last edited by

        @chris47803
        Hast du mal gesucht ?
        Da gibt es zahlreiche Threads wie man Daten als csv speichert.

        C 1 Reply Last reply Reply Quote 0
        • C
          chris47803 @bahnuhr last edited by

          Hallo.

          Ich habe mich anders entschieden.
          Habe den Adapter SQL installiert und logge jetzt darüber.
          Gibt es eine Möglichkeit die Daten aus dem Adapter history in die MySQL DB zu importieren?

          LG Chris

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

            @chris47803

            ja, siehe dokumentation
            https://github.com/ioBroker/ioBroker.history/blob/master/docs/de/README.md#history-daten-in-sql-oder-influxdb-übernehmen

            1 Reply Last reply Reply Quote 0
            • C
              chris47803 last edited by

              Da blicke ich nicht durch. 😞

              Das Script analyzesql.js habe ich nicht gefunden.

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

                @chris47803

                das befindet sich im ordner converter
                https://github.com/ioBroker/ioBroker.history/tree/master/converter

                1 Reply Last reply Reply Quote 0
                • C
                  chris47803 last edited by

                  Okay. Habe nun 2 Dateien erstellt.
                  earliestDBValues.json und existingDBTypes.json
                  In diesen Datein steht aber sehr wenig drin und nicht die Daten, die ich möchte.

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

                    @chris47803

                    ich habe das selbst nie gemacht.
                    ich wusste nur, das das beschrieben ist.
                    schau mal in den anderen beiträgen im forum

                    https://www.google.com/search?q=iobroker+analyzesql.js+site%3Aforum.iobroker.net

                    https://www.google.com/search?q=iobroker+history2db.js+site%3Aforum.iobroker.net

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

                      @oliverio sagte in history speichern als csv:

                      ich habe das selbst nie gemacht.

                      Habe mich da länger mit beschäftigt und fand den Weg unnötig kompliziert. Daher habe ich das Script hier geschrieben: https://github.com/haus-automation/iobroker-script-examples/blob/main/logging/migrate-all-history-to-influxdb.md

                      OliverIO 1 Reply Last reply Reply Quote 0
                      • OliverIO
                        OliverIO @haus-automatisierung last edited by

                        @haus-automatisierung
                        ist aber für influx.
                        er hat sql

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

                          @oliverio Die Aufrufe für storeState sollten identisch sein, oder? Also nur die Ziel-Instanz austauschen (sql.0 statt influxdb.0).

                          OliverIO 1 Reply Last reply Reply Quote 0
                          • OliverIO
                            OliverIO @haus-automatisierung last edited by

                            @haus-automatisierung

                            keine Ahnung. ich benötige es nicht.

                            ich fürchte nur, wenn ihm die doku schon zu kompliziert ist,
                            bekommt er diese Überleitung nicht hin.

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

                              @oliverio Den einen String im Script zu tauschen ist deutlich einfacher als diese Converter-Scripts in der richtigen Reihenfolge auszuführen denke ich 🙂

                              C 1 Reply Last reply Reply Quote 0
                              • C
                                chris47803 @haus-automatisierung last edited by

                                @haus-automatisierung

                                wie benenne ich das Script und in welchem Ordner muss ich es ausführen?

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

                                  @chris47803 sagte in history speichern als csv:

                                  wie benenne ich das Script

                                  Hans-Jochen (der Name ist total egal)

                                  @chris47803 sagte in history speichern als csv:

                                  in welchem Ordner muss ich es ausführen

                                  • Nicht direkt auf der Festplatte ablegen o.ä.
                                  • Ganz normal als neues JavaScript im JavaScript-Adapter.
                                  • Ordner egal. Hauptsache nicht in global (sieht man eh nur im Expertenmodus).

                                  Screenshot 2025-05-08 at 17.06.01.png

                                  1 Reply Last reply Reply Quote 0
                                  • C
                                    chris47803 last edited by

                                    Ich meinte eher die Dateiendung. 🙂

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

                                      @chris47803 sagte in history speichern als csv:

                                      Ich meinte eher die Dateiendung. 🙂

                                      Datei-Endungen gibt es im JavaScript-Adapter nicht. Das sind ja nur Objekte in der Objekt-Datenbank. Siehe Antwort 2.

                                      C 1 Reply Last reply Reply Quote 0
                                      • C
                                        chris47803 @haus-automatisierung last edited by

                                        @haus-automatisierung

                                        Scheint funktioniert zu haben. Danke.

                                        In welcher Tabelle finde ich denn jetzt die Daten?

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

                                          @chris47803

                                          das hängt vom datentyp ab

                                          der sql adapter legt mehrere tabellen an.
                                          mehr dazu
                                          https://github.com/ioBroker/ioBroker.sql?tab=readme-ov-file#structure-of-the-dbs

                                          hast du einen mysql client mit dem du drauf schauen kannst?
                                          ich verwende phpmyadmin
                                          heidisql geht aber auch.

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            chris47803 last edited by

                                            Ich nutze phpmyadmin.

                                            Im objekt das ich logge stehen nun Einträge drin, aber es fehlen ohne Ende.

                                            OliverIO 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

                                            919
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            26
                                            808
                                            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