Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Adapter zum Abfragen vom Aktien, Krypto ...

    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

    Adapter zum Abfragen vom Aktien, Krypto ...

    This topic has been deleted. Only users with topic management privileges can see it.
    • TheBam
      TheBam @SMS last edited by

      @sms
      Also ich habe das über den parser Adapter gelöst. Und der wiederum zieht sich die Daten von Finanzen.de usw. Geht aber mit jeder seite

      SMS 1 Reply Last reply Reply Quote 0
      • SMS
        SMS @TheBam last edited by

        @thebam Wie machst du das bzw. was muss ich einstellen?

        TheBam 1 Reply Last reply Reply Quote 0
        • TheBam
          TheBam @SMS last edited by

          @sms
          Hier mal mein beispiel wie ich den aktien kurs von Biontech ermittel.
          biontech.jpg

          URL: https://www.finanzen.net/aktien/biontech-aktie
          regEx: col-xs-5 col-sm-4 text-sm-right text-nowrap">(\d*,\d*)<span>E

          der rest ist normale Parser geschichten.
          der regEx Klappt auch bei anderen Aktien die bei finanzen.net angezeigt werden.

          Hier noch ein regEX für Onvista: <data class="text-nowrap" value="(\d*.\d*)">
          https://www.onvista.de/fonds/ACC-ALPHA-SELECT-AMI-P-EUR-ACC-Fonds-DE0007248643
          Allerdings hier dann bei Type "String" eintragen

          A 1 Reply Last reply Reply Quote 0
          • A
            Andre 2 @TheBam last edited by

            @thebam Funktioniert das auch mit Bitcoin und oder Etherium? Wenn ja, wie?

            Gruß Andre.

            TheBam 1 Reply Last reply Reply Quote 0
            • TheBam
              TheBam @Andre 2 last edited by

              @andre-2
              wenn du eine internetseite hast wo man die werte abholen kann dann ja.
              Sonst schick mal einen beispiel link dann schau ich mal nach dem regEx

              A 1 Reply Last reply Reply Quote 0
              • A
                Andre 2 @TheBam last edited by Andre 2

                @thebam Hier von Ethereum als Beispiel.

                https://www.finanzen.net/devisen/realtimekurs/ethereum-euro-kurs

                Und Cardano:

                https://www.coinbase.com/de/price/cardano

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

                  @andre-2

                  Also: https://www.finanzen.net/devisen/realtimekurs/ethereum-euro-kurs
                  RegEX:(\d*,\d*)<span>EUR
                  Num auf 1
                  ethereum.jpg

                  Bei Coinbase:
                  bin ich mir nicht ganz sicher im RegEX101.com klappt es aber nicht im Adapter theoretisch sollte das aber auch gehen

                  codano.jpg

                  Kannst aber auch gerne selbst mal probieren.
                  Auf der seite wo du den wert entnehmen willst rechtsklick. Seitenquelltext anzeigen dann alles kopieren und bei regex101 einfügen. Danach mit der suchen funktion im Browser nach dem wert den man haben will suchen. Dann den text vor und nach dem wert etwas mit kopieren und bei regex einfügen. Danach den wert den man haben will durch (*d.*d) ersetzen und schon sollte es gehen.

                  A Homoran 2 Replies Last reply Reply Quote 0
                  • A
                    Andre 2 @TheBam last edited by

                    @thebam sagte in Adapter zum Abfragen vom Aktien, Krypto ...:

                    (\d*,\d*)

                    Wenn ich genau das im Parser Adapter für Ethereum eintrage, dann kommt der gestiegene Preis in €. Leider nicht der aktuelle Kurs. Sorry bin da nicht so fit drin.

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

                      @andre-2
                      Hast du auch bei Num eine 1 eingetragen?

                      A 1 Reply Last reply Reply Quote 0
                      • A
                        Andre 2 @TheBam last edited by

                        @thebam Ja

                        TheBam 1 Reply Last reply Reply Quote 0
                        • TheBam
                          TheBam @Andre 2 last edited by

                          @andre-2 probier da mal mit einer 0 oder 2 bei mir hatte das geklappt

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            Andre 2 @TheBam last edited by

                            @thebam So sind meine Einstellungen

                            Unbenannt2.JPG

                            Unbenannt1.JPG

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

                              @thebam sagte in Adapter zum Abfragen vom Aktien, Krypto ...:

                              im RegEX101.com klappt es aber nicht im Adapter

                              der parser Adapter hat da einen eigenen Willen.
                              einige Befehle von Regex101 funktionieren dort nicht genau so.

                              in dem RegEx (\d*,\d*)<span>EUR sehe ich da aber nichts entsprechendes
                              Kommt da eine Zahl mit Komma bei raus?
                              ist der Typ auch so im Adapter eingetragen?
                              Wurde der Typ geändert? - dann ggf. die Regel löschen und neu anlegen

                              TheBam 1 Reply Last reply Reply Quote 0
                              • TheBam
                                TheBam @Homoran last edited by

                                @homoran
                                das ist bisher das erste was nicht geht ansonsten ging bisher alles was ich mit dem adapter versucht habe.

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

                                  @thebam sagte in Adapter zum Abfragen vom Aktien, Krypto ...:

                                  ist bisher das erste was nicht geht

                                  @homoran sagte in Adapter zum Abfragen vom Aktien, Krypto ...:

                                  Kommt da eine Zahl mit Komma bei raus?
                                  ist der Typ auch so im Adapter eingetragen?
                                  Wurde der Typ geändert? - dann ggf. die Regel löschen und neu anlegen

                                  1 Reply Last reply Reply Quote 0
                                  • A
                                    Andre 2 last edited by

                                    Kann man nicht einfach als Beispiel den Ethereum Kurs als URL abfragen und dann über ein Skript ein Datenpunkt anlegen?

                                    TheBam 1 Reply Last reply Reply Quote 0
                                    • TheBam
                                      TheBam @Andre 2 last edited by

                                      @andre-2 ethereum.jpg
                                      welchen wert willst du denn haben? den grünen oder den Rot umrandeten?

                                      Was soll das bringen die URL Abzufragen?

                                      A SMS 2 Replies Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators last edited by

                                        Es gibt noch einen möglichen Grund

                                        Viele Seitenbetreiber verbieten in den Nutzungsbedingungen die automatisierte Abfrage.
                                        Daher wollte ich schon vorhin mal schreiben, dass man die Abfragen besser nicht übertreibt.

                                        Einige Betreiber prüfen daher ob die Anfrage von einem Browser kommt.
                                        Über ein Script könnte man da einen Browser-Header mitgeben, im Adapter aber nicht

                                        P 1 Reply Last reply Reply Quote 0
                                        • A
                                          Andre 2 @TheBam last edited by

                                          @thebam Den Grünen.

                                          TheBam 1 Reply Last reply Reply Quote 0
                                          • P
                                            PatrickFro @Homoran last edited by

                                            @homoran Hast Du ein Tipp für ein Script hierfür? Ich würde auch lieber auf den Parser-Adapter verzichten und per Blockly meine 24 benötigten Kurse abfragen, nur leider scheint der parse-Block in Blockly hierfür nicht ausgelegt zu sein.

                                            Homoran 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

                                            885
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            51
                                            5658
                                            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