Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Unterschied Parser Adapter Default Poll-Intervall vs Intervall

    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

    Unterschied Parser Adapter Default Poll-Intervall vs Intervall

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators @Cinimod last edited by

      @cinimod p_akt">([\-\.\d]+)

      Cinimod 1 Reply Last reply Reply Quote 0
      • Cinimod
        Cinimod Most Active @Homoran last edited by

        @homoran Klappt perfekt, Dankeschön.

        1 Reply Last reply Reply Quote 0
        • Cinimod
          Cinimod Most Active last edited by

          @homoran

          Darf ich direkt noch einen raus hauen ?! ...

          Regex: (\d*.\d*,\d*)<span>EUR
          Ich Parse den den BTC Kurs von dieser Webseite. Quelltext ist leider zu lang zum posten.

          Als string habe ich als Ergebnis eine Zahl mit tausender Trennzeichen und Komma als für die Nachkommastelle.
          Ich würde aber lieber gern einen numerischen Wert raus bekommen, dann fehlt mir irgendwie das tausender Trennzeichen wenn ich "nummer mit komma" nehme, der Wert stimmt aber soweit.

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

            @cinimod sagte in Unterschied Parser Adapter Default Poll-Intervall vs Intervall:

            Quelltext ist leider zu lang zum posten.

            und am Handy komme ich nicht an den Quelltext ran

            Als string habe ich als Ergebnis eine Zahl mit tausender Trennzeichen und Komma als für die Nachkommastelle.
            Ich würde aber lieber gern einen numerischen Wert raus bekommen, dann fehlt mir irgendwie das tausender Trennzeichen wenn ich "nummer mit komma" nehme, der Wert stimmt aber soweit.

            dann zeig das mal
            Screenshot vom Editor

            Cinimod 1 Reply Last reply Reply Quote 0
            • Cinimod
              Cinimod Most Active @Homoran last edited by

              @homoran Reicht dir das so ?

              Bildschirmfoto 2022-12-02 um 06.54.26.png

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

                @cinimod sagte in Unterschied Parser Adapter Default Poll-Intervall vs Intervall:

                Reicht dir das so ?

                nee!

                das Fenster mit dem parser Editor.
                ich hab nicht ganz verstanden was du wann und wie als Ergebnis bekommst.

                Cinimod 1 Reply Last reply Reply Quote 0
                • Cinimod
                  Cinimod Most Active @Homoran last edited by

                  @homoran

                  Ich verstehe nicht genau was du sehen willst. Das ?

                  Bildschirmfoto 2022-12-02 um 21.08.38.png

                  Also das Ergebnis als string ist 16.123,98 und als number mit komma ist es 16123,98, das Tausender Trennzeichen fehlt dann.

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

                    @cinimod sagte in Unterschied Parser Adapter Default Poll-Intervall vs Intervall:

                    Das ?

                    genau das!

                    @cinimod sagte in Unterschied Parser Adapter Default Poll-Intervall vs Intervall:

                    number mit komma ist es 16123,98, das Tausender Trennzeichen fehlt dann.

                    und genau das brauchst du doch wenn du damit irgendetwas anfangen willst.

                    Wo ist das Problem?

                    Cinimod 1 Reply Last reply Reply Quote 0
                    • Cinimod
                      Cinimod Most Active @Homoran last edited by

                      @homoran

                      Ich hatte die ganz lange als string drin stehen, hatte mich aber auch lange nicht befasst mit dem Thema. Hab es jetzt Quasi richtig gestellt, um mit dem Wert numerisch auch was machen zu können, und jetzt bin ich irritiert das dass tausender Trennzeichen weg ist, scheint aber demnach so richtiger zu sein als vorher ja ?!

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

                        @cinimod sagte in Unterschied Parser Adapter Default Poll-Intervall vs Intervall:

                        um mit dem Wert numerisch auch was machen zu können, und jetzt bin ich irritiert das dass tausender Trennzeichen weg ist,

                        So ein Trennzeichen ist mathematisch nicht hilfreich. Das gibt es nur in (text) Formatierungen

                        Cinimod 1 Reply Last reply Reply Quote 0
                        • Cinimod
                          Cinimod Most Active @Homoran last edited by

                          @homoran
                          Ok, dann war der ganze Protest ja unbegründet, sorry.
                          Danke für deine Mühe.

                          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

                          445
                          Online

                          31.9k
                          Users

                          80.2k
                          Topics

                          1.3m
                          Posts

                          4
                          21
                          975
                          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