Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. JavaScript
  5. HowTo: Zusatz-Programme fuer jarvis v3

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.7k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.1k

HowTo: Zusatz-Programme fuer jarvis v3

Scheduled Pinned Locked Moved JavaScript
javascript
889 Posts 33 Posters 214.2k Views 37 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • icebearI icebear

    @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

    Ich dachte nur die Kurven mit der Soll-temp-Einstellung.

    Ah ich verstehe, ja so wär es eigentlich für mich perfekt.

    Und beim Klick auf die Gauge kommt dann
    details.png

    M Online
    M Online
    MCU
    wrote on last edited by
    #420

    @icebear So ein Schritt weiter
    Für FritzDect
    b109649a-6167-471c-a20c-7e693bcaca57-image.png

    Für hm-rpc
    3067cbee-e5e1-4b5b-8f59-8af505745b89-image.png

    NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
    Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

    icebearI 1 Reply Last reply
    1
    • M MCU

      @icebear So ein Schritt weiter
      Für FritzDect
      b109649a-6167-471c-a20c-7e693bcaca57-image.png

      Für hm-rpc
      3067cbee-e5e1-4b5b-8f59-8af505745b89-image.png

      icebearI Offline
      icebearI Offline
      icebear
      wrote on last edited by
      #421

      @mcu

      Das sieht ja schonmal vielversprechend aus

      M 1 Reply Last reply
      0
      • icebearI icebear

        @mcu

        Das sieht ja schonmal vielversprechend aus

        M Online
        M Online
        MCU
        wrote on last edited by
        #422

        @icebear Wann ist die Batterie leer?

        Voll: 3,0 V
        Leer: 1,5V

        NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
        Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

        1 Reply Last reply
        0
        • icebearI Offline
          icebearI Offline
          icebear
          wrote on last edited by
          #423

          @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

          Wann ist die Batterie leer?

          Kann man in der CCU einstellen ab wann eine Meldund kommen soll (Standard ist 2,4 für LowBat)

          M 1 Reply Last reply
          0
          • icebearI icebear

            @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

            Wann ist die Batterie leer?

            Kann man in der CCU einstellen ab wann eine Meldund kommen soll (Standard ist 2,4 für LowBat)

            M Online
            M Online
            MCU
            wrote on last edited by
            #424

            @icebear Was muss noch mit rein?
            82f5514e-4a59-4647-989b-95af3d2bda77-image.png

            NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
            Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

            icebearI 1 Reply Last reply
            0
            • M MCU

              @icebear Was muss noch mit rein?
              82f5514e-4a59-4647-989b-95af3d2bda77-image.png

              icebearI Offline
              icebearI Offline
              icebear
              wrote on last edited by
              #425

              @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

              Was muss noch mit rein?

              Also mir würde das so erstmal reichen, meist fällt einem ja beim Betrieb dann nochwas ein.

              Allerdings weiß ich das vielen wollen da noch den WiFi Status sehen.

              M 1 Reply Last reply
              0
              • icebearI icebear

                @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

                Was muss noch mit rein?

                Also mir würde das so erstmal reichen, meist fällt einem ja beim Betrieb dann nochwas ein.

                Allerdings weiß ich das vielen wollen da noch den WiFi Status sehen.

                M Online
                M Online
                MCU
                wrote on last edited by MCU
                #426

                @icebear Modus einstellbar?

                Was soll bei 0 angezeigt werden, bei 1?
                Automatik / Manuell Umschalter?
                sonst noch spezielle Schalter?

                d149c43f-c58c-4dba-886e-be285bc3d0d3-image.png

                NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                icebearI 1 Reply Last reply
                0
                • M MCU

                  @icebear Modus einstellbar?

                  Was soll bei 0 angezeigt werden, bei 1?
                  Automatik / Manuell Umschalter?
                  sonst noch spezielle Schalter?

                  d149c43f-c58c-4dba-886e-be285bc3d0d3-image.png

                  icebearI Offline
                  icebearI Offline
                  icebear
                  wrote on last edited by
                  #427

                  @mcu

                  Was soll bei 0 angezeigt werden, bei 1?

                  Ich denke das bezieht sich auf Automatic/Manuell? Dann 'A' und 'M'

                  Automatik / Manuell Umschalter? Umschalter

                  sonst noch spezielle Schalter?

                  Nicht direkt ein Schalter, aber bei HMIP Thermostaten ist die Boostdauer einstellbar und laüft dann runter wenn der Modus aktiviert wurde, hier wäre interessant als 'sekundärer Wert' die 'Boost-Time' ist bei den Thermostat DP's

                  boost.png

                  boost2.png

                  M 1 Reply Last reply
                  0
                  • icebearI icebear

                    @mcu

                    Was soll bei 0 angezeigt werden, bei 1?

                    Ich denke das bezieht sich auf Automatic/Manuell? Dann 'A' und 'M'

                    Automatik / Manuell Umschalter? Umschalter

                    sonst noch spezielle Schalter?

                    Nicht direkt ein Schalter, aber bei HMIP Thermostaten ist die Boostdauer einstellbar und laüft dann runter wenn der Modus aktiviert wurde, hier wäre interessant als 'sekundärer Wert' die 'Boost-Time' ist bei den Thermostat DP's

                    boost.png

                    boost2.png

                    M Online
                    M Online
                    MCU
                    wrote on last edited by
                    #428

                    @icebear Welche Einheit bei der BoostTime?

                    NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                    Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                    icebearI 1 Reply Last reply
                    0
                    • M MCU

                      @icebear Welche Einheit bei der BoostTime?

                      icebearI Offline
                      icebearI Offline
                      icebear
                      wrote on last edited by
                      #429

                      @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

                      Welche Einheit bei der BoostTime?

                      'min' = Minuten

                      M 1 Reply Last reply
                      0
                      • icebearI icebear

                        @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

                        Welche Einheit bei der BoostTime?

                        'min' = Minuten

                        M Online
                        M Online
                        MCU
                        wrote on last edited by MCU
                        #430

                        @icebear Muss nochmal nachfragen wegen der Batterie.
                        max Voltzahl ist ?
                        Bereich ist dann von 3V - 2.4V -> 100% - 0%?

                        365b5bce-ad3d-4d02-bf95-7256285e05bc-image.png

                        Fällt Dir so noch was auf? Wünsche?

                        NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                        Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                        1 Reply Last reply
                        0
                        • icebearI Offline
                          icebearI Offline
                          icebear
                          wrote on last edited by
                          #431

                          @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

                          Bereich ist dann von 3V - 2.4V -> 100% - 0%?

                          Also so hab ich es aus der Doku rausgelesen, wobei die LowBat Schwelle wie gesagt in der CCU eingestellt werden kann (Standardmäßig ist das aber 2,4V).

                          Wir sollten es dabei belassen, 3V - 2.4V = 100% - 0%

                          Sonst ist mir erstmal nix mehr eingefallen.

                          1 Reply Last reply
                          0
                          • M Online
                            M Online
                            MCU
                            wrote on last edited by MCU
                            #432

                            @icebear Bitte durchlesen.
                            https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/scripts-3.1.x-pro/sonstige-skripte/kombinationsskripte/thermostat-gauge-mit-history

                            Fehlen Infos?

                            NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                            Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                            icebearI 1 Reply Last reply
                            0
                            • M MCU

                              @icebear Bitte durchlesen.
                              https://mcuiobroker.gitbook.io/jarvis-infos/jarvis-v3/besonderheiten-v3/scripts-3.1.x-pro/sonstige-skripte/kombinationsskripte/thermostat-gauge-mit-history

                              Fehlen Infos?

                              icebearI Offline
                              icebearI Offline
                              icebear
                              wrote on last edited by
                              #433

                              @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

                              Fehlen Infos?

                              Klingt für mich erstmal schlüssig. Ich habs mal soweit wie es ging, versucht zu erstellen und ich denke ich bin erstmal soweit klargekommen.

                              M 1 Reply Last reply
                              0
                              • M MCU

                                @meikie Nimm das Log raus da ist deine Id drin.
                                Die Fehler sind sehr wahrscheinlich da, weil bestimmte Daten jetzt nicht verfügbar sind und erst ab 14:00 Uhr eingestellt werden.
                                Melde Dich heute Nachmittag, wie es da aussieht.

                                M Offline
                                M Offline
                                Meikie
                                wrote on last edited by Meikie
                                #434

                                @mcu Also ich habe jetzt heute mal wieder probiert. In der Konsole sind immer noch folgende Warnungen:

                                12:58:41.884	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:231:43)
                                12:58:41.884	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.888	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:233:43)
                                12:58:41.888	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.890	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:234:44)
                                12:58:41.891	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.893	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:235:41)
                                12:58:41.893	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.895	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:243:43)
                                12:58:41.896	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.898	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:245:43)
                                12:58:41.898	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.900	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:246:44)
                                12:58:41.900	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.902	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:247:41)
                                12:58:41.902	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.908	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:313:20)
                                12:58:41.908	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.908	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.910	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:316:20)
                                12:58:41.910	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.910	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.912	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:317:23)
                                12:58:41.913	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.913	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.915	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:319:23)
                                12:58:41.915	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.915	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.922	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:231:43)
                                12:58:41.922	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.924	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:233:43)
                                12:58:41.924	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.926	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:234:44)
                                12:58:41.927	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.929	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:235:41)
                                12:58:41.930	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.933	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:243:43)
                                12:58:41.934	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.937	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:245:43)
                                12:58:41.938	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.941	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:246:44)
                                12:58:41.941	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.948	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:247:41)
                                12:58:41.948	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.952	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:313:20)
                                12:58:41.952	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.952	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.954	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:316:20)
                                12:58:41.954	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.954	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.956	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:317:23)
                                12:58:41.956	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.956	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                12:58:41.958	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:319:23)
                                12:58:41.958	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                12:58:41.959	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                

                                Unter Objekten ist im
                                0_userdata.0.Strom.tibberHistory.htmlToday etwas drin.

                                <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Tibber-Tageswert</title><script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script></head><body><div id="chart-container" style="width: 100%; height:400px;"></div><script>    var data = [{"time":1704668400000,"value":0.2954,"tax":0.2084,"energy":0.087,"level":"NORMAL"},{"time":1704672000000,"value":0.2922,"tax":0.2079,"energy":0.0843,"level":"NORMAL"},{"time":1704675600000,"value":0.2892,"tax":0.2074,"energy":0.0818,"level":"NORMAL"},{"time":1704679200000,"value":0.286,"tax":0.2069,"energy":0.0791,"level":"NORMAL"},{"time":1704682800000,"value":0.2852,"tax":0.2067,"energy":0.0785,"level":"NORMAL"},{"time":1704686400000,"value":0.2895,"tax":0.2074,"energy":0.0821,"level":"NORMAL"},{"time":1704690000000,"value":0.3041,"tax":0.2098,"energy":0.0943,"level":"NORMAL"},{"time":1704693600000,"value":0.324,"tax":0.2129,"energy":0.1111,"level":"NORMAL"},{"time":1704697200000,"value":0.336,"tax":0.2149,"energy":0.1211,"level":"NORMAL"},{"time":1704700800000,"value":0.3321,"tax":0.2143,"energy":0.1178,"level":"NORMAL"},{"time":1704704400000,"value":0.3235,"tax":0.2129,"energy":0.1106,"level":"NORMAL"},{"time":1704708000000,"value":0.3144,"tax":0.2114,"energy":0.103,"level":"NORMAL"},{"time":1704711600000,"value":0.3055,"tax":0.21,"energy":0.0955,"level":"NORMAL"},{"time":1704715200000,"value":0.302,"tax":0.2094,"energy":0.0926,"level":"NORMAL"},{"time":1704718800000,"value":0.3108,"tax":0.2108,"energy":0.1,"level":"NORMAL"},{"time":1704722400000,"value":0.3203,"tax":0.2123,"energy":0.108,"level":"NORMAL"},{"time":1704726000000,"value":0.3309,"tax":0.214,"energy":0.1169,"level":"NORMAL"},{"time":1704729600000,"value":0.3455,"tax":0.2164,"energy":0.1291,"level":"NORMAL"},{"time":1704733200000,"value":0.3466,"tax":0.2166,"energy":0.13,"level":"EXPENSIVE"},{"time":1704736800000,"value":0.3372,"tax":0.2151,"energy":0.1221,"level":"NORMAL"},{"time":1704740400000,"value":0.3277,"tax":0.2135,"energy":0.1142,"level":"NORMAL"},{"time":1704744000000,"value":0.3142,"tax":0.2114,"energy":0.1028,"level":"NORMAL"},{"time":1704747600000,"value":0.3108,"tax":0.2108,"energy":0.1,"level":"NORMAL"},{"time":1704751200000,"value":0.3007,"tax":0.2092,"energy":0.0915,"level":"NORMAL"}];    var chartContainer = document.getElementById("chart-container");    var myChart = echarts.init(chartContainer);    function formatTime(time) {        return moment(time).format("HH");    }    function calculateArrowPosition(hour){       return (hour / 24) * 100 +1 + "%";    }    function updateChart() {        var minValue = Math.min.apply(null, data.map(function (item) {          return item.value;        }));        var yAxisMin = -0.02;        var maxValue = null;        let avgValue = 0.313;        var visualMapPieces =[{"gt":0,"lte":0.15,"color":"lightgreen"},{"gt":0.15,"lte":0.22,"color":"green"},{"gt":0.22,"lte":0.29,"color":"yellow"},{"gt":0.29,"lte":0.35,"color":"orange"},{"gt":0.35,"color":"red"}];        var values = data.map(item => (item.value-minValue).toFixed(2));        var maxLineValue = Math.max.apply(null, values);        var maxLineIndex = values.indexOf(maxLineValue);        var maxLineData = {time:0,value:null};        var currentHour = new Date().getHours() ;        var colorStops = [];        visualMapPieces.map(piece => {          if(piece["lte"] >=yAxisMin && piece["gt"]<=maxValue){             if(piece["gt"]>=yAxisMin){             colorStops.push({              offset:  ((piece["gt"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color             });            }            if(piece["lte"]<=maxValue){             colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color             });            }            if(piece["lte"]>maxValue ){            colorStops.push({              offset:  1,              color: piece.color             });           };          }else{           if(piece["lte"]>=maxValue && piece["gt"]<=maxValue ){            colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color            });           }else if(piece["lte"]>=maxValue && piece["gt"] <= maxValue){            colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color            });           }          };         });        colorStops.push({            offset: 1,            color: colorStops[colorStops.length-1].color        });        colorStops.splice(0, 0, {offset: 0,color:colorStops[0].color});        myChart.setOption({            title: {                text: "Today-Tageswerte",                show: false            },            visualMap: {              type: "piecewise",              pieces: visualMapPieces,              dimension: 1,              showLabel: true,              precision: 2,              itemWidth: 6,              orient: "horizontal",              left: "center", calculable: true,selectedMode: "multiple",              bottom: 10,              text: ["High", "Low"],              textStyle: {                color: "black"              },            },            grid: {              right: 10,              left: 10,              containLabel: true            },            areaStyle: {              color: colorStops            },            toolbox: {              feature: {                saveAsImage: {                   backgroundColor: "rgba(38, 37, 37, 1)",                   title: "Speichern",                   name: "TibberHTML Today 08.01.2024"                },                magicType: {                  type: ["line", "bar"],                  title:{                     line: "Line-Chart",                     bar: "Bar-Chart",                  }                },                dataView: {                  title: "Daten aus der Serie",                  lang: ["Daten der Kurve", "Schließen", "Aktualisieren"],                  optionToContent: function (opt) {                      var table = '<table style="width:100%;"><tbody><tr style="text-align: left;"><th>Stunde</th><th>Wert</th><th>Energie</th><th>Steuer</th><th>Level</th></tr>';                      for (var i = 0; i< opt.series[0].data.length;i++) {                          table += "<tr>";                         for(let x =0; x < opt.series[0].data[i].value.length; x++){                            if(x==0){                               table +=  "<td>" + ("0"+new Date(opt.series[0].data[i].value[x]).getHours()).slice(-2) + "</td>";                            }else{                               table +=  "<td>" + opt.series[0].data[i].value[x] + "</td>";                            }                          }                           table += "</tr>";                      }                      table += "</tbody></table>";                      return table;                  },                  readOnly: true                },              }            },            xAxis: {                type: "time",                axisLabel: {                    show: true,                    formatter: function (value) {                        return formatTime(value);                    }                },                splitNumber: 10,            },            yAxis: {                type: "value",                axisLabel: {                  formatter: function (value) {                     return value.toFixed(3) + " €";                  }                },               min: -0.02,               max: 0.01,            },            series: [{                data: data.map(function (item) {                    var hour = new Date(item.time).getHours();                    return {                       value: [item.time, item.value, item.energy, item.tax, item.level],                        symbol: "circle",                        emphasis: {                          itemStyle: {                            color: "white"                           },                          label: {                            show: true,                            formatter: function (params) {                               return params.data.value[1].toFixed(3) + " €";                            },                            color: "black",                            fontWeight: "bold",                             backgroundColor: "white"                          }                        }                     }                 }),                type: "bar",                markLine: {                  symbol: "none",                  lineStyle: {                    color: "red",                    type: "dashed"                  },                  data: [                   {yAxis: minValue ,name: "MIN", lineStyle: { color: "lime" },label: { show: false, position: "end", formatter: "Min\n\n"+ minValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } }  },                   {yAxis: maxValue,name: "MAX", lineStyle: { color: "red" },label: { show: false, position: "end", formatter: "Max\n\n"+ maxValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } } },                   {yAxis: avgValue ,name: "AVG", lineStyle: { color: "blue" },label: { show: false, position: "end", formatter: "Avg\n\n"+ avgValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } } }                  ],                 }            }],            tooltip: {              trigger: "axis",              axisPointer: {               type: "shadow"              },              textStyle: {                fontFamily: "Courier",                fontWeight: "bold"              },              formatter: function (params) {                let time = "Start ab: "+ moment(params[0].axisValue).format("HH:mm")+ " Uhr";                let value = "Preis:&nbsp&nbsp&nbsp&nbsp"+params[0].value[1].toFixed(4) + " €";            let energy = "Energie:&nbsp&nbsp"+params[0].value[2].toFixed(4) + " €";            let tax    = "Steuer:&nbsp&nbsp&nbsp"+params[0].value[3].toFixed(4) + " €";            let lev    = "Level:&nbsp&nbsp&nbsp&nbsp"+ params[0].value[4];            return  `${time}<br/>${value}<br/>${energy}<br/>${tax}<br/>${lev}` ;              }            },        })     }    updateChart();      var updateInterval = setInterval(updateChart, 3600000);</script></body></html>
                                

                                Leider wird in Jarvis nichts angezeigt. Woran könnte das liegen?

                                Bildschirmfoto 2024-01-08 um 16.46.14.png Bildschirmfoto 2024-01-08 um 16.10.03.png Bildschirmfoto 2024-01-08 um 16.09.49.png

                                Irgend eine Idee? Vielen Dank.

                                icebearI M 2 Replies Last reply
                                0
                                • M Meikie

                                  @mcu Also ich habe jetzt heute mal wieder probiert. In der Konsole sind immer noch folgende Warnungen:

                                  12:58:41.884	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:231:43)
                                  12:58:41.884	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.888	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:233:43)
                                  12:58:41.888	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.890	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:234:44)
                                  12:58:41.891	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.893	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:235:41)
                                  12:58:41.893	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.895	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:243:43)
                                  12:58:41.896	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.898	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:245:43)
                                  12:58:41.898	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.900	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:246:44)
                                  12:58:41.900	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.902	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:247:41)
                                  12:58:41.902	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.908	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:313:20)
                                  12:58:41.908	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.908	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.910	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:316:20)
                                  12:58:41.910	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.910	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.912	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:317:23)
                                  12:58:41.913	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.913	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.915	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:319:23)
                                  12:58:41.915	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.915	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.922	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:231:43)
                                  12:58:41.922	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.924	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:233:43)
                                  12:58:41.924	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.926	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:234:44)
                                  12:58:41.927	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.929	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:235:41)
                                  12:58:41.930	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.933	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:243:43)
                                  12:58:41.934	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.937	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:245:43)
                                  12:58:41.938	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.941	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:246:44)
                                  12:58:41.941	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.948	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:247:41)
                                  12:58:41.948	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.952	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:313:20)
                                  12:58:41.952	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.952	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.954	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:316:20)
                                  12:58:41.954	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.954	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.956	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:317:23)
                                  12:58:41.956	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.956	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  12:58:41.958	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:319:23)
                                  12:58:41.958	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                  12:58:41.959	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                  

                                  Unter Objekten ist im
                                  0_userdata.0.Strom.tibberHistory.htmlToday etwas drin.

                                  <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Tibber-Tageswert</title><script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script></head><body><div id="chart-container" style="width: 100%; height:400px;"></div><script>    var data = [{"time":1704668400000,"value":0.2954,"tax":0.2084,"energy":0.087,"level":"NORMAL"},{"time":1704672000000,"value":0.2922,"tax":0.2079,"energy":0.0843,"level":"NORMAL"},{"time":1704675600000,"value":0.2892,"tax":0.2074,"energy":0.0818,"level":"NORMAL"},{"time":1704679200000,"value":0.286,"tax":0.2069,"energy":0.0791,"level":"NORMAL"},{"time":1704682800000,"value":0.2852,"tax":0.2067,"energy":0.0785,"level":"NORMAL"},{"time":1704686400000,"value":0.2895,"tax":0.2074,"energy":0.0821,"level":"NORMAL"},{"time":1704690000000,"value":0.3041,"tax":0.2098,"energy":0.0943,"level":"NORMAL"},{"time":1704693600000,"value":0.324,"tax":0.2129,"energy":0.1111,"level":"NORMAL"},{"time":1704697200000,"value":0.336,"tax":0.2149,"energy":0.1211,"level":"NORMAL"},{"time":1704700800000,"value":0.3321,"tax":0.2143,"energy":0.1178,"level":"NORMAL"},{"time":1704704400000,"value":0.3235,"tax":0.2129,"energy":0.1106,"level":"NORMAL"},{"time":1704708000000,"value":0.3144,"tax":0.2114,"energy":0.103,"level":"NORMAL"},{"time":1704711600000,"value":0.3055,"tax":0.21,"energy":0.0955,"level":"NORMAL"},{"time":1704715200000,"value":0.302,"tax":0.2094,"energy":0.0926,"level":"NORMAL"},{"time":1704718800000,"value":0.3108,"tax":0.2108,"energy":0.1,"level":"NORMAL"},{"time":1704722400000,"value":0.3203,"tax":0.2123,"energy":0.108,"level":"NORMAL"},{"time":1704726000000,"value":0.3309,"tax":0.214,"energy":0.1169,"level":"NORMAL"},{"time":1704729600000,"value":0.3455,"tax":0.2164,"energy":0.1291,"level":"NORMAL"},{"time":1704733200000,"value":0.3466,"tax":0.2166,"energy":0.13,"level":"EXPENSIVE"},{"time":1704736800000,"value":0.3372,"tax":0.2151,"energy":0.1221,"level":"NORMAL"},{"time":1704740400000,"value":0.3277,"tax":0.2135,"energy":0.1142,"level":"NORMAL"},{"time":1704744000000,"value":0.3142,"tax":0.2114,"energy":0.1028,"level":"NORMAL"},{"time":1704747600000,"value":0.3108,"tax":0.2108,"energy":0.1,"level":"NORMAL"},{"time":1704751200000,"value":0.3007,"tax":0.2092,"energy":0.0915,"level":"NORMAL"}];    var chartContainer = document.getElementById("chart-container");    var myChart = echarts.init(chartContainer);    function formatTime(time) {        return moment(time).format("HH");    }    function calculateArrowPosition(hour){       return (hour / 24) * 100 +1 + "%";    }    function updateChart() {        var minValue = Math.min.apply(null, data.map(function (item) {          return item.value;        }));        var yAxisMin = -0.02;        var maxValue = null;        let avgValue = 0.313;        var visualMapPieces =[{"gt":0,"lte":0.15,"color":"lightgreen"},{"gt":0.15,"lte":0.22,"color":"green"},{"gt":0.22,"lte":0.29,"color":"yellow"},{"gt":0.29,"lte":0.35,"color":"orange"},{"gt":0.35,"color":"red"}];        var values = data.map(item => (item.value-minValue).toFixed(2));        var maxLineValue = Math.max.apply(null, values);        var maxLineIndex = values.indexOf(maxLineValue);        var maxLineData = {time:0,value:null};        var currentHour = new Date().getHours() ;        var colorStops = [];        visualMapPieces.map(piece => {          if(piece["lte"] >=yAxisMin && piece["gt"]<=maxValue){             if(piece["gt"]>=yAxisMin){             colorStops.push({              offset:  ((piece["gt"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color             });            }            if(piece["lte"]<=maxValue){             colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color             });            }            if(piece["lte"]>maxValue ){            colorStops.push({              offset:  1,              color: piece.color             });           };          }else{           if(piece["lte"]>=maxValue && piece["gt"]<=maxValue ){            colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color            });           }else if(piece["lte"]>=maxValue && piece["gt"] <= maxValue){            colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color            });           }          };         });        colorStops.push({            offset: 1,            color: colorStops[colorStops.length-1].color        });        colorStops.splice(0, 0, {offset: 0,color:colorStops[0].color});        myChart.setOption({            title: {                text: "Today-Tageswerte",                show: false            },            visualMap: {              type: "piecewise",              pieces: visualMapPieces,              dimension: 1,              showLabel: true,              precision: 2,              itemWidth: 6,              orient: "horizontal",              left: "center", calculable: true,selectedMode: "multiple",              bottom: 10,              text: ["High", "Low"],              textStyle: {                color: "black"              },            },            grid: {              right: 10,              left: 10,              containLabel: true            },            areaStyle: {              color: colorStops            },            toolbox: {              feature: {                saveAsImage: {                   backgroundColor: "rgba(38, 37, 37, 1)",                   title: "Speichern",                   name: "TibberHTML Today 08.01.2024"                },                magicType: {                  type: ["line", "bar"],                  title:{                     line: "Line-Chart",                     bar: "Bar-Chart",                  }                },                dataView: {                  title: "Daten aus der Serie",                  lang: ["Daten der Kurve", "Schließen", "Aktualisieren"],                  optionToContent: function (opt) {                      var table = '<table style="width:100%;"><tbody><tr style="text-align: left;"><th>Stunde</th><th>Wert</th><th>Energie</th><th>Steuer</th><th>Level</th></tr>';                      for (var i = 0; i< opt.series[0].data.length;i++) {                          table += "<tr>";                         for(let x =0; x < opt.series[0].data[i].value.length; x++){                            if(x==0){                               table +=  "<td>" + ("0"+new Date(opt.series[0].data[i].value[x]).getHours()).slice(-2) + "</td>";                            }else{                               table +=  "<td>" + opt.series[0].data[i].value[x] + "</td>";                            }                          }                           table += "</tr>";                      }                      table += "</tbody></table>";                      return table;                  },                  readOnly: true                },              }            },            xAxis: {                type: "time",                axisLabel: {                    show: true,                    formatter: function (value) {                        return formatTime(value);                    }                },                splitNumber: 10,            },            yAxis: {                type: "value",                axisLabel: {                  formatter: function (value) {                     return value.toFixed(3) + " €";                  }                },               min: -0.02,               max: 0.01,            },            series: [{                data: data.map(function (item) {                    var hour = new Date(item.time).getHours();                    return {                       value: [item.time, item.value, item.energy, item.tax, item.level],                        symbol: "circle",                        emphasis: {                          itemStyle: {                            color: "white"                           },                          label: {                            show: true,                            formatter: function (params) {                               return params.data.value[1].toFixed(3) + " €";                            },                            color: "black",                            fontWeight: "bold",                             backgroundColor: "white"                          }                        }                     }                 }),                type: "bar",                markLine: {                  symbol: "none",                  lineStyle: {                    color: "red",                    type: "dashed"                  },                  data: [                   {yAxis: minValue ,name: "MIN", lineStyle: { color: "lime" },label: { show: false, position: "end", formatter: "Min\n\n"+ minValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } }  },                   {yAxis: maxValue,name: "MAX", lineStyle: { color: "red" },label: { show: false, position: "end", formatter: "Max\n\n"+ maxValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } } },                   {yAxis: avgValue ,name: "AVG", lineStyle: { color: "blue" },label: { show: false, position: "end", formatter: "Avg\n\n"+ avgValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } } }                  ],                 }            }],            tooltip: {              trigger: "axis",              axisPointer: {               type: "shadow"              },              textStyle: {                fontFamily: "Courier",                fontWeight: "bold"              },              formatter: function (params) {                let time = "Start ab: "+ moment(params[0].axisValue).format("HH:mm")+ " Uhr";                let value = "Preis:&nbsp&nbsp&nbsp&nbsp"+params[0].value[1].toFixed(4) + " €";            let energy = "Energie:&nbsp&nbsp"+params[0].value[2].toFixed(4) + " €";            let tax    = "Steuer:&nbsp&nbsp&nbsp"+params[0].value[3].toFixed(4) + " €";            let lev    = "Level:&nbsp&nbsp&nbsp&nbsp"+ params[0].value[4];            return  `${time}<br/>${value}<br/>${energy}<br/>${tax}<br/>${lev}` ;              }            },        })     }    updateChart();      var updateInterval = setInterval(updateChart, 3600000);</script></body></html>
                                  

                                  Leider wird in Jarvis nichts angezeigt. Woran könnte das liegen?

                                  Bildschirmfoto 2024-01-08 um 16.46.14.png Bildschirmfoto 2024-01-08 um 16.10.03.png Bildschirmfoto 2024-01-08 um 16.09.49.png

                                  Irgend eine Idee? Vielen Dank.

                                  icebearI Offline
                                  icebearI Offline
                                  icebear
                                  wrote on last edited by
                                  #435

                                  @meikie said in HowTo: Zusatz-Programme fuer jarvis v3:

                                  Irgend eine Idee?

                                  Also ich will mich ja nich einmischen, aber soweit wie ich es verstanden hab hast du das Script ein bischen angepasst?

                                  Also an deiner Stelle würde ich alles nochmal löschen, dann von vorne, gemäß der Anleitung alles neu erstellen, und vor allen Dingen das Script so belassen wie es ist.

                                  Das Problem ist, wenn du etwas an dem Script veränderst oder anpasst, wie soll der Ersteller dann wirklich nachvollziehen wo der Fehler genau ist.

                                  M 1 Reply Last reply
                                  0
                                  • icebearI icebear

                                    @meikie said in HowTo: Zusatz-Programme fuer jarvis v3:

                                    Irgend eine Idee?

                                    Also ich will mich ja nich einmischen, aber soweit wie ich es verstanden hab hast du das Script ein bischen angepasst?

                                    Also an deiner Stelle würde ich alles nochmal löschen, dann von vorne, gemäß der Anleitung alles neu erstellen, und vor allen Dingen das Script so belassen wie es ist.

                                    Das Problem ist, wenn du etwas an dem Script veränderst oder anpasst, wie soll der Ersteller dann wirklich nachvollziehen wo der Fehler genau ist.

                                    M Offline
                                    M Offline
                                    Meikie
                                    wrote on last edited by
                                    #436

                                    @icebear ja, das habe ich mir auch schon überlegt. Allerdings habe ich nicht viel angepasst im Script. Nur den Pfad, damit ich mehr Ordnung bei mir im System habe.Ich habe quasi noch ein Unterordner eingebaut. Und es werden ja Daten in die Objekte geschrieben.

                                    Werde es aber mal ohne meine Änderungen probieren und schauen ob es geht.
                                    LG

                                    1 Reply Last reply
                                    0
                                    • icebearI icebear

                                      @mcu said in HowTo: Zusatz-Programme fuer jarvis v3:

                                      Fehlen Infos?

                                      Klingt für mich erstmal schlüssig. Ich habs mal soweit wie es ging, versucht zu erstellen und ich denke ich bin erstmal soweit klargekommen.

                                      M Online
                                      M Online
                                      MCU
                                      wrote on last edited by
                                      #437

                                      @icebear Habe die scripts-Datei eingefügt. Probier mal.

                                      NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                                      Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                                      icebearI 1 Reply Last reply
                                      1
                                      • M Meikie

                                        @mcu Also ich habe jetzt heute mal wieder probiert. In der Konsole sind immer noch folgende Warnungen:

                                        12:58:41.884	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:231:43)
                                        12:58:41.884	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.888	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:233:43)
                                        12:58:41.888	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.890	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:234:44)
                                        12:58:41.891	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.893	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:235:41)
                                        12:58:41.893	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.895	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:243:43)
                                        12:58:41.896	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.898	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:245:43)
                                        12:58:41.898	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.900	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:246:44)
                                        12:58:41.900	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.902	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:247:41)
                                        12:58:41.902	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.908	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:313:20)
                                        12:58:41.908	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.908	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.910	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:316:20)
                                        12:58:41.910	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.910	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.912	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:317:23)
                                        12:58:41.913	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.913	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.915	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:319:23)
                                        12:58:41.915	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.915	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.922	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:231:43)
                                        12:58:41.922	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.924	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:233:43)
                                        12:58:41.924	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.926	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:234:44)
                                        12:58:41.927	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.929	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:235:41)
                                        12:58:41.930	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.933	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:243:43)
                                        12:58:41.934	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.937	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:245:43)
                                        12:58:41.938	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.941	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:246:44)
                                        12:58:41.941	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.948	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:247:41)
                                        12:58:41.948	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.952	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:313:20)
                                        12:58:41.952	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.952	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.954	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:316:20)
                                        12:58:41.954	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.954	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.956	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:317:23)
                                        12:58:41.956	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.956	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        12:58:41.958	warn	javascript.0 (1020035) at setHTML (script.js.Strom.tibberHTML:319:23)
                                        12:58:41.958	warn	javascript.0 (1020035) at getTibberData (script.js.Strom.tibberHTML:266:13)
                                        12:58:41.959	warn	javascript.0 (1020035) at Object.<anonymous> (script.js.Strom.tibberHTML:96:5)
                                        

                                        Unter Objekten ist im
                                        0_userdata.0.Strom.tibberHistory.htmlToday etwas drin.

                                        <!DOCTYPE html><html lang="en"><head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Tibber-Tageswert</title><script src="https://cdn.jsdelivr.net/npm/echarts@5.4.3/dist/echarts.min.js"></script><script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.1/moment.min.js"></script></head><body><div id="chart-container" style="width: 100%; height:400px;"></div><script>    var data = [{"time":1704668400000,"value":0.2954,"tax":0.2084,"energy":0.087,"level":"NORMAL"},{"time":1704672000000,"value":0.2922,"tax":0.2079,"energy":0.0843,"level":"NORMAL"},{"time":1704675600000,"value":0.2892,"tax":0.2074,"energy":0.0818,"level":"NORMAL"},{"time":1704679200000,"value":0.286,"tax":0.2069,"energy":0.0791,"level":"NORMAL"},{"time":1704682800000,"value":0.2852,"tax":0.2067,"energy":0.0785,"level":"NORMAL"},{"time":1704686400000,"value":0.2895,"tax":0.2074,"energy":0.0821,"level":"NORMAL"},{"time":1704690000000,"value":0.3041,"tax":0.2098,"energy":0.0943,"level":"NORMAL"},{"time":1704693600000,"value":0.324,"tax":0.2129,"energy":0.1111,"level":"NORMAL"},{"time":1704697200000,"value":0.336,"tax":0.2149,"energy":0.1211,"level":"NORMAL"},{"time":1704700800000,"value":0.3321,"tax":0.2143,"energy":0.1178,"level":"NORMAL"},{"time":1704704400000,"value":0.3235,"tax":0.2129,"energy":0.1106,"level":"NORMAL"},{"time":1704708000000,"value":0.3144,"tax":0.2114,"energy":0.103,"level":"NORMAL"},{"time":1704711600000,"value":0.3055,"tax":0.21,"energy":0.0955,"level":"NORMAL"},{"time":1704715200000,"value":0.302,"tax":0.2094,"energy":0.0926,"level":"NORMAL"},{"time":1704718800000,"value":0.3108,"tax":0.2108,"energy":0.1,"level":"NORMAL"},{"time":1704722400000,"value":0.3203,"tax":0.2123,"energy":0.108,"level":"NORMAL"},{"time":1704726000000,"value":0.3309,"tax":0.214,"energy":0.1169,"level":"NORMAL"},{"time":1704729600000,"value":0.3455,"tax":0.2164,"energy":0.1291,"level":"NORMAL"},{"time":1704733200000,"value":0.3466,"tax":0.2166,"energy":0.13,"level":"EXPENSIVE"},{"time":1704736800000,"value":0.3372,"tax":0.2151,"energy":0.1221,"level":"NORMAL"},{"time":1704740400000,"value":0.3277,"tax":0.2135,"energy":0.1142,"level":"NORMAL"},{"time":1704744000000,"value":0.3142,"tax":0.2114,"energy":0.1028,"level":"NORMAL"},{"time":1704747600000,"value":0.3108,"tax":0.2108,"energy":0.1,"level":"NORMAL"},{"time":1704751200000,"value":0.3007,"tax":0.2092,"energy":0.0915,"level":"NORMAL"}];    var chartContainer = document.getElementById("chart-container");    var myChart = echarts.init(chartContainer);    function formatTime(time) {        return moment(time).format("HH");    }    function calculateArrowPosition(hour){       return (hour / 24) * 100 +1 + "%";    }    function updateChart() {        var minValue = Math.min.apply(null, data.map(function (item) {          return item.value;        }));        var yAxisMin = -0.02;        var maxValue = null;        let avgValue = 0.313;        var visualMapPieces =[{"gt":0,"lte":0.15,"color":"lightgreen"},{"gt":0.15,"lte":0.22,"color":"green"},{"gt":0.22,"lte":0.29,"color":"yellow"},{"gt":0.29,"lte":0.35,"color":"orange"},{"gt":0.35,"color":"red"}];        var values = data.map(item => (item.value-minValue).toFixed(2));        var maxLineValue = Math.max.apply(null, values);        var maxLineIndex = values.indexOf(maxLineValue);        var maxLineData = {time:0,value:null};        var currentHour = new Date().getHours() ;        var colorStops = [];        visualMapPieces.map(piece => {          if(piece["lte"] >=yAxisMin && piece["gt"]<=maxValue){             if(piece["gt"]>=yAxisMin){             colorStops.push({              offset:  ((piece["gt"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color             });            }            if(piece["lte"]<=maxValue){             colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color             });            }            if(piece["lte"]>maxValue ){            colorStops.push({              offset:  1,              color: piece.color             });           };          }else{           if(piece["lte"]>=maxValue && piece["gt"]<=maxValue ){            colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color            });           }else if(piece["lte"]>=maxValue && piece["gt"] <= maxValue){            colorStops.push({              offset:  ((piece["lte"]-yAxisMin)/(maxValue-yAxisMin)),              color: piece.color            });           }          };         });        colorStops.push({            offset: 1,            color: colorStops[colorStops.length-1].color        });        colorStops.splice(0, 0, {offset: 0,color:colorStops[0].color});        myChart.setOption({            title: {                text: "Today-Tageswerte",                show: false            },            visualMap: {              type: "piecewise",              pieces: visualMapPieces,              dimension: 1,              showLabel: true,              precision: 2,              itemWidth: 6,              orient: "horizontal",              left: "center", calculable: true,selectedMode: "multiple",              bottom: 10,              text: ["High", "Low"],              textStyle: {                color: "black"              },            },            grid: {              right: 10,              left: 10,              containLabel: true            },            areaStyle: {              color: colorStops            },            toolbox: {              feature: {                saveAsImage: {                   backgroundColor: "rgba(38, 37, 37, 1)",                   title: "Speichern",                   name: "TibberHTML Today 08.01.2024"                },                magicType: {                  type: ["line", "bar"],                  title:{                     line: "Line-Chart",                     bar: "Bar-Chart",                  }                },                dataView: {                  title: "Daten aus der Serie",                  lang: ["Daten der Kurve", "Schließen", "Aktualisieren"],                  optionToContent: function (opt) {                      var table = '<table style="width:100%;"><tbody><tr style="text-align: left;"><th>Stunde</th><th>Wert</th><th>Energie</th><th>Steuer</th><th>Level</th></tr>';                      for (var i = 0; i< opt.series[0].data.length;i++) {                          table += "<tr>";                         for(let x =0; x < opt.series[0].data[i].value.length; x++){                            if(x==0){                               table +=  "<td>" + ("0"+new Date(opt.series[0].data[i].value[x]).getHours()).slice(-2) + "</td>";                            }else{                               table +=  "<td>" + opt.series[0].data[i].value[x] + "</td>";                            }                          }                           table += "</tr>";                      }                      table += "</tbody></table>";                      return table;                  },                  readOnly: true                },              }            },            xAxis: {                type: "time",                axisLabel: {                    show: true,                    formatter: function (value) {                        return formatTime(value);                    }                },                splitNumber: 10,            },            yAxis: {                type: "value",                axisLabel: {                  formatter: function (value) {                     return value.toFixed(3) + " €";                  }                },               min: -0.02,               max: 0.01,            },            series: [{                data: data.map(function (item) {                    var hour = new Date(item.time).getHours();                    return {                       value: [item.time, item.value, item.energy, item.tax, item.level],                        symbol: "circle",                        emphasis: {                          itemStyle: {                            color: "white"                           },                          label: {                            show: true,                            formatter: function (params) {                               return params.data.value[1].toFixed(3) + " €";                            },                            color: "black",                            fontWeight: "bold",                             backgroundColor: "white"                          }                        }                     }                 }),                type: "bar",                markLine: {                  symbol: "none",                  lineStyle: {                    color: "red",                    type: "dashed"                  },                  data: [                   {yAxis: minValue ,name: "MIN", lineStyle: { color: "lime" },label: { show: false, position: "end", formatter: "Min\n\n"+ minValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } }  },                   {yAxis: maxValue,name: "MAX", lineStyle: { color: "red" },label: { show: false, position: "end", formatter: "Max\n\n"+ maxValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } } },                   {yAxis: avgValue ,name: "AVG", lineStyle: { color: "blue" },label: { show: false, position: "end", formatter: "Avg\n\n"+ avgValue.toFixed(3)+" €",textStyle: { fontSize: 12,fontWeight: "bold", color:"white"  } } }                  ],                 }            }],            tooltip: {              trigger: "axis",              axisPointer: {               type: "shadow"              },              textStyle: {                fontFamily: "Courier",                fontWeight: "bold"              },              formatter: function (params) {                let time = "Start ab: "+ moment(params[0].axisValue).format("HH:mm")+ " Uhr";                let value = "Preis:&nbsp&nbsp&nbsp&nbsp"+params[0].value[1].toFixed(4) + " €";            let energy = "Energie:&nbsp&nbsp"+params[0].value[2].toFixed(4) + " €";            let tax    = "Steuer:&nbsp&nbsp&nbsp"+params[0].value[3].toFixed(4) + " €";            let lev    = "Level:&nbsp&nbsp&nbsp&nbsp"+ params[0].value[4];            return  `${time}<br/>${value}<br/>${energy}<br/>${tax}<br/>${lev}` ;              }            },        })     }    updateChart();      var updateInterval = setInterval(updateChart, 3600000);</script></body></html>
                                        

                                        Leider wird in Jarvis nichts angezeigt. Woran könnte das liegen?

                                        Bildschirmfoto 2024-01-08 um 16.46.14.png Bildschirmfoto 2024-01-08 um 16.10.03.png Bildschirmfoto 2024-01-08 um 16.09.49.png

                                        Irgend eine Idee? Vielen Dank.

                                        M Online
                                        M Online
                                        MCU
                                        wrote on last edited by
                                        #438

                                        @meikie
                                        Wo hast denn negative Werte eingestellt?
                                        Habe kein tibber, kann man in dem Adapter tibberlink besondere Mittelwert, min, max auswählen?
                                        Die scheinen bei Dir zu fehlen.

                                        NUC i7 64GB mit Proxmox ---- Jarvis Infos Aktualisierungen der Doku auf Instagram verfolgen -> mcuiobroker Instagram
                                        Wenn Euch mein Vorschlag geholfen hat, bitte rechts "^" klicken.

                                        M 1 Reply Last reply
                                        0
                                        • M MCU

                                          @meikie
                                          Wo hast denn negative Werte eingestellt?
                                          Habe kein tibber, kann man in dem Adapter tibberlink besondere Mittelwert, min, max auswählen?
                                          Die scheinen bei Dir zu fehlen.

                                          M Offline
                                          M Offline
                                          Meikie
                                          wrote on last edited by
                                          #439

                                          @mcu Danke für die Anregung. Ich musste im Adapter von Tibberlink noch 2 Häkchen machen.
                                          Jetzt gehts. TOP und danke für die HILFE.

                                          M 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate

                                          788

                                          Online

                                          32.4k

                                          Users

                                          81.5k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe