Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Visualisierung
    4. formatValue in vis / Nachkommastellen

    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

    formatValue in vis / Nachkommastellen

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

      Ich versuche nun seit einger Zeit, eine .0 hinter meinen Wert im html widget zu bekommen.

      Als HTML habe ich angegeben: {javascript.0.solvis.S17;/(10);formatValue( '#.0')} °C S10
      Mein Beispielwert ist 0, was ich erreichen möchte ist die Ausgabe 0.0

      Hat jemand eine Lösung?

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

        Widget: basic-number

        und dann:
        a349cfd0-ab34-45e5-a62c-64780ccef647-image.png

        1 Reply Last reply Reply Quote 0
        • P
          peak3d last edited by peak3d

          @bahnuhr danke, das hatte ich vorher gehabt, aber ich kann den Wert aus der ObjectId damit nicht /10 teilen, zumindest habe ich das nicht gefunden.

          Lenny.CB 1 Reply Last reply Reply Quote 0
          • Lenny.CB
            Lenny.CB Most Active @peak3d last edited by Lenny.CB

            @peak3d da wo "Wert multiplizieren" steht schreibst 0.1 rein. Bedeutet value × 0.1

            1 Reply Last reply Reply Quote 0
            • P
              peak3d last edited by

              Ooops, das habe ich wohl übersehen, thx!
              Alternativ have ich noch das rausgefunden (im basic HTML):

              {v:javascript.0.solvis.S17;(v/10).toFixed(1)} °C S10

              Röstkartoffel 1 Reply Last reply Reply Quote 0
              • Röstkartoffel
                Röstkartoffel @peak3d last edited by

                @peak3d

                Da du was von "javascript.0.solvis.S17" schreibst, gehe ich davon aus, das du eine Solvis Heizung installiert hast.
                Eine Solvis mit Controller 2 habe ich auch, konnte aber bisher noch nichts auslesen.
                Daher meine Frage, wie du das gemacht hast.

                1 Reply Last reply Reply Quote 0
                • P
                  peak3d last edited by peak3d

                  @Röstkartoffel Ich werde das Script für das javascript modul mal heute zur Diskussion einstellen, das ist mein erster Gehversuch mit iobroker JS, und wahrscheinlich sind einige Punkte noch nicht so gelöst wie es sein soll. Ich melde mich.

                  Edit: SolvisRemote ist hier Voraussetzung

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    peak3d @peak3d last edited by

                    @Röstkartoffel : https://forum.iobroker.net/topic/21414/script-für-solvis-max-solvisremote

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    732
                    Online

                    31.9k
                    Users

                    80.1k
                    Topics

                    1.3m
                    Posts

                    vis
                    4
                    8
                    2647
                    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