Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Praktische Anwendungen (Showcase)
    4. E-INK Display OpenEPaperLink - Blockly, Java-Skripte usw.

    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

    E-INK Display OpenEPaperLink - Blockly, Java-Skripte usw.

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

      Hallo zusammen,

      das andere Thema

      https://forum.iobroker.net/topic/66380/e-ink-display-openepaperlink-displayanzeige-mit-batterie

      hat jetzt schon an die 900 Beiträge.

      Da wäre es doch etwas übersichtlicher wenn wir hier alles an Blocklys, Java-Skipte usw. posten.

      Grüße
      Manfred

      1 Reply Last reply Reply Quote 1
      • B
        Beowolf last edited by Beowolf

        Ich mache mal den Anfang.

        <xml xmlns="https://developers.google.com/blockly/xml">
          <variables>
            <variable id="e.-?J1RG(1E03apliOsd">url</variable>
            <variable id="eMqV!m8?ZCdqN2].w`xb">TagMini1</variable>
            <variable id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</variable>
          </variables>
          <block type="procedures_defcustomreturn" id="Q)=N/g,e;;C$aa#GZ/g6" x="738" y="388">
            <mutation statements="false">
              <arg name="url" varid="e.-?J1RG(1E03apliOsd"></arg>
            </mutation>
            <field name="NAME">encodeURL</field>
            <field name="SCRIPT">dXJsID0gZW5jb2RlVVJJQ29tcG9uZW50KHVybCk7DQpyZXR1cm4gdXJsOw==</field>
            <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
          </block>
          <block type="on_ext" id="P$af/8byEUS#qCA]5B-P" x="738" y="413">
            <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation>
            <field name="CONDITION">ne</field>
            <field name="ACK_CONDITION"></field>
            <value name="OID0">
              <shadow type="field_oid" id="qKgG$O[{3RUIQEMyX@84">
                <field name="oid">hm-rpc.0.KEQ0908967.4.ACTUAL_TEMPERATURE</field>
              </shadow>
            </value>
            <value name="OID1">
              <shadow type="field_oid" id="1=$zeB_8NZ{``1IKhA@;">
                <field name="oid">hm-rpc.0.KEQ0908967.4.SET_TEMPERATURE</field>
              </shadow>
            </value>
            <value name="OID2">
              <shadow type="field_oid" id="3xv_){1%Z-Px_oc=|ee]">
                <field name="oid">hm-rpc.0.KEQ0908967.4.VALVE_STATE</field>
              </shadow>
            </value>
            <value name="OID3">
              <shadow type="field_oid" id="1%z%;+tP3g0pYuG^87_*">
                <field name="oid">hm-rpc.0.KEQ0908967.4.BATTERY_STATE</field>
              </shadow>
            </value>
            <statement name="STATEMENT">
              <block type="controls_if" id="?`c`Nn3U3V@~!c@vILtF">
                <value name="IF0">
                  <block type="time_compare" id="7~bZxST63%E#3wG~e~C$">
                    <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                    <field name="OPTION">between</field>
                    <field name="START_TIME">9:00</field>
                    <field name="END_TIME">20:00</field>
                  </block>
                </value>
                <statement name="DO0">
                  <block type="variables_set" id="}kvQ}B#.rViPjfKc-HTi">
                    <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                    <value name="VALUE">
                      <block type="text" id="AS0{YNAIOlM%S|LO,c(?">
                        <field name="TEXT">0000050CE8EFB29E</field>
                      </block>
                    </value>
                    <next>
                      <block type="variables_set" id="k02GjbFfyHgTN`gcO-Da">
                        <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                        <value name="VALUE">
                          <block type="procedures_callcustomreturn" id="m+$OB%}5|)Pwa;Sp_8Xz">
                            <mutation name="encodeURL">
                              <arg name="url"></arg>
                            </mutation>
                            <value name="ARG0">
                              <block type="text_join" id="%7M,-4ru#q{/k6KDWMHm">
                                <mutation items="11"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="KG:U*zHU9}`ZAfY=W0tK">
                                    <field name="TEXT">[    {"text": [10,10,"Arbeitszimmer","fonts/bahnschrift30",2]},</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="text" id="J8kE(`F|;UG(UnXYIXH/">
                                    <field name="TEXT">{"line": [10,35,374,35,1]},</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="n|(:Q;;@|/rl*,,eDMQ0">
                                    <field name="TEXT">{"text": [10,50,"Aktuelle Temperatur:","fonts/bahnschrift20",1]},     {"text": [240,50,"</field>
                                  </block>
                                </value>
                                <value name="ADD3">
                                  <block type="get_value" id="Ivop[TTx6k8izC(a}Lh$">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.KEQ0908967.4.ACTUAL_TEMPERATURE</field>
                                  </block>
                                </value>
                                <value name="ADD4">
                                  <block type="text" id=".;[edg]Q8Y}~9~$]`WGh">
                                    <field name="TEXT">°C","fonts/bahnschrift20",2]},     {"text": [10,80,"Eingestellte Temperatur:","fonts/bahnschrift20",1]},   {"text": [240,80,"</field>
                                  </block>
                                </value>
                                <value name="ADD5">
                                  <block type="get_value" id="!vH6u](8OPQ3|j4+-R0`">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.KEQ0908967.4.SET_TEMPERATURE</field>
                                  </block>
                                </value>
                                <value name="ADD6">
                                  <block type="text" id="10FFF9ZLy|n:h)tY)c|m">
                                    <field name="TEXT">°C","fonts/bahnschrift20",2]},     {"text": [10,110,"Aktuelle Ventilstellung:","fonts/bahnschrift20",1]},   {"text": [240,110,"</field>
                                  </block>
                                </value>
                                <value name="ADD7">
                                  <block type="get_value" id="N~fNY_bADcQ(?eeOcd70">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.KEQ0908967.4.VALVE_STATE</field>
                                  </block>
                                </value>
                                <value name="ADD8">
                                  <block type="text" id="#7e9sI0@iu:c/+?Dr@Z.">
                                    <field name="TEXT"> %","fonts/bahnschrift20",2]},     {"text": [10,140,"Batteriespannung:","fonts/bahnschrift20",1]},   {"text": [240,140,"</field>
                                  </block>
                                </value>
                                <value name="ADD9">
                                  <block type="get_value" id="M=3Q06RUua?Te,a?1Ui;">
                                    <field name="ATTR">val</field>
                                    <field name="OID">hm-rpc.0.KEQ0908967.4.BATTERY_STATE</field>
                                  </block>
                                </value>
                                <value name="ADD10">
                                  <block type="text" id="8Mjb{3)XGWhzToz{:.]t">
                                    <field name="TEXT"> V","fonts/bahnschrift20",2]}  ]</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </value>
                        <next>
                          <block type="http_post" id="AoQ+~mSdktWzhHgxGz#C">
                            <field name="TIMEOUT">15</field>
                            <field name="UNIT">sec</field>
                            <field name="TYPE">text</field>
                            <value name="URL">
                              <shadow type="text" id="qh|GfefbC0op9nMhC4nk">
                                <field name="TEXT">http://192.168.49.187/jsonupload</field>
                              </shadow>
                            </value>
                            <value name="DATA">
                              <block type="text_join" id="YiM(/:1NU2PK@ysCbT8$">
                                <mutation items="4"></mutation>
                                <value name="ADD0">
                                  <block type="text" id="sY#__Tq@9.DrJShh~Ant">
                                    <field name="TEXT">mac=</field>
                                  </block>
                                </value>
                                <value name="ADD1">
                                  <block type="variables_get" id="^ag2u;YyTY9!dP{tJ|}c">
                                    <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                                  </block>
                                </value>
                                <value name="ADD2">
                                  <block type="text" id="k:I$k7w),ZmO9hEwr:$W">
                                    <field name="TEXT">&amp;json=</field>
                                  </block>
                                </value>
                                <value name="ADD3">
                                  <block type="variables_get" id="MEQ/.CHU]v1WHbuc@`Ly">
                                    <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                                  </block>
                                </value>
                              </block>
                            </value>
                          </block>
                        </next>
                      </block>
                    </next>
                  </block>
                </statement>
              </block>
            </statement>
          </block>
        </xml>
        

        Das ist ein Blockly um eine Anzeige zu erstellen die dann die aktuelle und die eingestellte Temperatur, die Ventilestellung und die Batteriespannung von HM Heizungsstellantrieb anzeigt.

        Natürlich müssen die Datenpunkte, AP-Adresse usw. entsprechend geändert werden. Das sollte aber klar sein.

        Ob das Blockly auch noch besser geht? Kann sein. Hier läuft es ohne Probleme.

        Grüße

        PS
        Bei mir werden die TAGs nur in der Zeit zwischen 9 und 20 Uhr aktualisiert (kann natürlich geändert werden). Später ist keiner mehr da der auf dieTAGs schaut. Das entlastet ein wenig die Batterie in den TAGs.

        Noch was. Hatte ich leider vergessen. Ich möchte mich hier nicht mit fremden Federn schmücken.
        Das ursprüngliche Skript kommt von "ilovegym"

        Siehe:
        https://forum.iobroker.net/topic/66380/e-ink-display-openepaperlink-displayanzeige-mit-batterie/854?_=1739134242327

        Vielen Dank dafür

        1 Reply Last reply Reply Quote 0
        • B
          Beowolf last edited by Beowolf

          Hier ein kleines Blockly, wenn in den TAGs angezeigt werden soll ob etwas eingeschaltet oder ausgeschaltet ist.

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id=".N:Ev).-4-82UMj~s}jT">Uebergabe</variable>
              <variable id=":!8~[_wM)Q:b4Pev1|^x">Search</variable>
              <variable id="8f|o07jxrqx*$7Vx~oCA">Replace</variable>
              <variable id="e.-?J1RG(1E03apliOsd">url</variable>
              <variable id="eMqV!m8?ZCdqN2].w`xb">TagMini1</variable>
              <variable id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</variable>
            </variables>
            <block type="procedures_defcustomreturn" id="X|o`:e#4rUy{jrxDqT0Y" x="738" y="338">
              <mutation statements="false">
                <arg name="Uebergabe" varid=".N:Ev).-4-82UMj~s}jT"></arg>
                <arg name="Search" varid=":!8~[_wM)Q:b4Pev1|^x"></arg>
                <arg name="Replace" varid="8f|o07jxrqx*$7Vx~oCA"></arg>
              </mutation>
              <field name="NAME">Replace Text</field>
              <field name="SCRIPT">bGV0IHN0cl8xID0gVWViZXJnYWJlOw0KbGV0IHN0cl8yID0gU2VhcmNoOw0KbGV0IHN0cl8zID0gUmVwbGFjZTsNCnN0cl8xID0gc3RyXzEucmVwbGFjZShTZWFyY2gsIFJlcGxhY2UpOw0KcmV0dXJuIHN0cl8xOw==</field>
              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            </block>
            <block type="procedures_defcustomreturn" id="Q)=N/g,e;;C$aa#GZ/g6" x="738" y="388">
              <mutation statements="false">
                <arg name="url" varid="e.-?J1RG(1E03apliOsd"></arg>
              </mutation>
              <field name="NAME">encodeURL</field>
              <field name="SCRIPT">dXJsID0gZW5jb2RlVVJJQ29tcG9uZW50KHVybCk7DQpyZXR1cm4gdXJsOw==</field>
              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
            </block>
            <block type="on_ext" id="P$af/8byEUS#qCA]5B-P" x="738" y="438">
              <mutation xmlns="http://www.w3.org/1999/xhtml" items="4"></mutation>
              <field name="CONDITION">ne</field>
              <field name="ACK_CONDITION"></field>
              <value name="OID0">
                <shadow type="field_oid" id="qKgG$O[{3RUIQEMyX@84">
                  <field name="oid">mqtt.0.Heizung.config.HK2_Betriebsart</field>
                </shadow>
              </value>
              <value name="OID1">
                <shadow type="field_oid" id="1=$zeB_8NZ{``1IKhA@;">
                  <field name="oid">mqtt.0.Heizung.config.WW_Betriebsart</field>
                </shadow>
              </value>
              <value name="OID2">
                <shadow type="field_oid" id="3xv_){1%Z-Px_oc=|ee]">
                  <field name="oid">mqtt.0.Heizung.status.HK2_Pumpe</field>
                </shadow>
              </value>
              <value name="OID3">
                <shadow type="field_oid" id="1%z%;+tP3g0pYuG^87_*">
                  <field name="oid">mqtt.0.Heizung.status.Brenner_Ansteuerung</field>
                </shadow>
              </value>
              <statement name="STATEMENT">
                <block type="controls_if" id="cfr[e6_/^LK-t[30k1HG">
                  <value name="IF0">
                    <block type="time_compare" id="7~bZxST63%E#3wG~e~C$">
                      <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true"></mutation>
                      <field name="OPTION">between</field>
                      <field name="START_TIME">9:00</field>
                      <field name="END_TIME">20:00</field>
                    </block>
                  </value>
                  <statement name="DO0">
                    <block type="variables_set" id="}kvQ}B#.rViPjfKc-HTi">
                      <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                      <value name="VALUE">
                        <block type="text" id="AS0{YNAIOlM%S|LO,c(?">
                          <field name="TEXT">00007E1BD7BCB29E</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="k02GjbFfyHgTN`gcO-Da">
                          <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                          <value name="VALUE">
                            <block type="procedures_callcustomreturn" id="m+$OB%}5|)Pwa;Sp_8Xz">
                              <mutation name="encodeURL">
                                <arg name="url"></arg>
                              </mutation>
                              <value name="ARG0">
                                <block type="text_join" id="%7M,-4ru#q{/k6KDWMHm">
                                  <mutation items="7"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="KG:U*zHU9}`ZAfY=W0tK">
                                      <field name="TEXT">[    {"text": [10,10,"Heizung","fonts/bahnschrift30",2]},</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="text" id="J8kE(`F|;UG(UnXYIXH/">
                                      <field name="TEXT">{"line": [10,35,374,35,1]},</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="n|(:Q;;@|/rl*,,eDMQ0">
                                      <field name="TEXT">{"text": [10,50,"Betriebsart Heizung:","fonts/bahnschrift20",1]},     {"text": [250,50,"</field>
                                    </block>
                                  </value>
                                  <value name="ADD3">
                                    <block type="logic_ternary" id="yJ,9[#P7w*KD^#R7%o1p">
                                      <value name="IF">
                                        <block type="logic_compare" id="_nY8e5S_F|Uf*C2U={MR">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="5Z^|9w~(1YmdVJQ7%v$0">
                                              <field name="ATTR">val</field>
                                              <field name="OID">mqtt.0.Heizung.status.HK2_Pumpe</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="text" id="DjlkmM}:zWp9nUl1c#%w">
                                              <field name="TEXT">Tag</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="THEN">
                                        <block type="text" id=".;[edg]Q8Y}~9~$]`WGh">
                                          <field name="TEXT">Tag","fonts/bahnschrift20",2]},     {"text": [10,80,"Betriebsart Warmwasser:","fonts/bahnschrift20",1]},   {"text": [250,80,"</field>
                                        </block>
                                      </value>
                                      <value name="ELSE">
                                        <block type="text" id="qo8G;N~ktlTg~Y,fI|~L">
                                          <field name="TEXT">Nacht","fonts/bahnschrift20",2]},     {"text": [10,80,"Betriebsart Warmwasser:","fonts/bahnschrift20",1]},   {"text": [250,80,"</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="ADD4">
                                    <block type="logic_ternary" id="@@MWpXGPxtivK*HP7FQ5">
                                      <value name="IF">
                                        <block type="logic_compare" id="],Di%nSz6X0:3d?mKs`u">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="%*uWF0=YeiZ7uN[o`X|}">
                                              <field name="ATTR">val</field>
                                              <field name="OID">mqtt.0.Heizung.config.WW_Betriebsart</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="text" id="hPuXlR|41/Yeo$oQ@=HH">
                                              <field name="TEXT">Tag</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="THEN">
                                        <block type="text" id="0xLY3lrDE~(SkKt_f8DH">
                                          <field name="TEXT">Tag","fonts/bahnschrift20",2]},     {"text": [10,110,"Umwälzpumpe:","fonts/bahnschrift20",1]},   {"text": [250,110,"</field>
                                        </block>
                                      </value>
                                      <value name="ELSE">
                                        <block type="text" id="Mm#t/sCT:uXw`)II6s=Y">
                                          <field name="TEXT">Nacht","fonts/bahnschrift20",2]},     {"text": [10,110,"Umwälzpumpe:","fonts/bahnschrift20",1]},   {"text": [250,110,"</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="ADD5">
                                    <block type="logic_ternary" id="xu3kals`NOzfBfKf^UVC">
                                      <value name="IF">
                                        <block type="logic_compare" id="!@n,)^%^oIzm9M$zIT[,">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="N~fNY_bADcQ(?eeOcd70">
                                              <field name="ATTR">val</field>
                                              <field name="OID">mqtt.0.Heizung.status.HK2_Pumpe</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="K0!IMZFfNjD]w1)oD[`[">
                                              <field name="NUM">100</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="THEN">
                                        <block type="text" id=".yP]thn0Q)aA:e5!02ZK">
                                          <field name="TEXT">Eingeschaltet","fonts/bahnschrift20",2]},     {"text": [10,140,"Ölbrenner:","fonts/bahnschrift20",1]},   {"text": [250,140,"</field>
                                        </block>
                                      </value>
                                      <value name="ELSE">
                                        <block type="text" id="d(zc`iTQSg0r.f^FkqK:">
                                          <field name="TEXT">Ausgeschaltet","fonts/bahnschrift20",1]},     {"text": [10,140,"Ölbrenner:","fonts/bahnschrift20",1]},   {"text": [250,140,"</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <value name="ADD6">
                                    <block type="logic_ternary" id="/+tc%%-nw4~=fQaHU,9Q">
                                      <value name="IF">
                                        <block type="logic_compare" id="kcb6qGG2z-7N*~2XYxvy">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="w52ns6N;Fk#N7x]WC6)!">
                                              <field name="ATTR">val</field>
                                              <field name="OID">mqtt.0.Heizung.status.Brenner_Ansteuerung</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="math_number" id="mN;DhZ|;S1bNC5I,OH!m">
                                              <field name="NUM">1</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <value name="THEN">
                                        <block type="text" id="8Mjb{3)XGWhzToz{:.]t">
                                          <field name="TEXT">Eingeschaltet","fonts/bahnschrift20",2]}  ]</field>
                                        </block>
                                      </value>
                                      <value name="ELSE">
                                        <block type="text" id="$l@9YB:|C/ww3ec:AL:8">
                                          <field name="TEXT">Ausgeschaltet","fonts/bahnschrift20",1]}  ]</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </value>
                          <next>
                            <block type="http_post" id="AoQ+~mSdktWzhHgxGz#C">
                              <field name="TIMEOUT">15</field>
                              <field name="UNIT">sec</field>
                              <field name="TYPE">text</field>
                              <value name="URL">
                                <shadow type="text" id="qh|GfefbC0op9nMhC4nk">
                                  <field name="TEXT">http://192.168.49.185/jsonupload</field>
                                </shadow>
                              </value>
                              <value name="DATA">
                                <block type="text_join" id="YiM(/:1NU2PK@ysCbT8$">
                                  <mutation items="4"></mutation>
                                  <value name="ADD0">
                                    <block type="text" id="sY#__Tq@9.DrJShh~Ant">
                                      <field name="TEXT">mac=</field>
                                    </block>
                                  </value>
                                  <value name="ADD1">
                                    <block type="variables_get" id="^ag2u;YyTY9!dP{tJ|}c">
                                      <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                                    </block>
                                  </value>
                                  <value name="ADD2">
                                    <block type="text" id="k:I$k7w),ZmO9hEwr:$W">
                                      <field name="TEXT">&amp;json=</field>
                                    </block>
                                  </value>
                                  <value name="ADD3">
                                    <block type="variables_get" id="MEQ/.CHU]v1WHbuc@`Ly">
                                      <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </statement>
            </block>
          </xml>
          

          Natürlich müssen die Datenpunkte, AP-Adresse usw. entsprechend geändert werden. Das sollte aber klar sein.

          Ob das Blockly auch noch besser geht? Kann sein. Hier läuft es ohne Probleme.

          Grüße

          Noch was. Hatte ich leider vergessen. Ich möchte mich hier nicht mit fremden Federn schmücken.
          Das ursprüngliche Skript kommt von "ilovegym"

          Siehe:
          https://forum.iobroker.net/topic/66380/e-ink-display-openepaperlink-displayanzeige-mit-batterie/854?_=1739134242327

          Vielen Dank dafür

          haselchen 1 Reply Last reply Reply Quote 0
          • haselchen
            haselchen Most Active @Beowolf last edited by haselchen

            Ich mache es wahrscheinlich noch ein wenig anders als Andere hier 🙂
            Über HomeAssistant

            Dort gibt es eine Integration, die den AP und die angeschlossenen Tags erkennt.
            Über Github gibt es verschiedene Anleitungen, was man umsetzen möchte.
            https://github.com/OpenEPaperLink/Home_Assistant_Integration/wiki

            Ich hab einen Xiaomi Temperatur Sensor eingebunden und auf den Tag gebracht.
            Muss sagen, dass hat echt Spass gemacht, dass alles zurecht zu fummeln (x Daten y Daten, Datum....)

            IMG_3132.jpeg

            Für die Experten hier, ist das natürlich nen Witz 😬

            Ich löse das als Automation

            1803c4d9-52a7-4968-8bf8-b0d71adc74fe-grafik.png
            2783807b-8414-424c-9f35-f494bf37c91d-grafik.png

            ? 1 Reply Last reply Reply Quote 1
            • ?
              A Former User @haselchen last edited by

              @haselchen

              Prima! Hatte das vor einem halben Jahr oder so auch mal, zur Zeit aber kein HA mehr in Betrieb.
              Du hast damit aber auch den Xiaomi Sensor in HA drin, richtig?

              haselchen 1 Reply Last reply Reply Quote 0
              • haselchen
                haselchen Most Active @Guest last edited by

                @ilovegym

                War halt mal Neugierig auf HA.
                Und tatsächlich gibt es ganz wenige Dinge , die dort besser funktionieren.
                Den Sensor habe ich da irgendwie manuell reingeklöppelt.
                Ich wollte einfach mal rumtesten und man findet immer mehr , was man ausprobieren möchte .

                1 Reply Last reply Reply Quote 0
                • B
                  Beowolf last edited by Beowolf

                  Hier mal mein Blockly für die Anzeige von drei Wechselrichtern die ich hier in meiner kleinen Solaranlage habe.

                  Anzeige auf einem 800 x 480 TAG-Display.

                  <xml xmlns="https://developers.google.com/blockly/xml">
                    <variables>
                      <variable id="e.-?J1RG(1E03apliOsd">url</variable>
                      <variable id="eMqV!m8?ZCdqN2].w`xb">TagMini1</variable>
                      <variable id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</variable>
                    </variables>
                    <block type="procedures_defcustomreturn" id="Q)=N/g,e;;C$aa#GZ/g6" x="738" y="388">
                      <mutation statements="false">
                        <arg name="url" varid="e.-?J1RG(1E03apliOsd"></arg>
                      </mutation>
                      <field name="NAME">encodeURL</field>
                      <field name="SCRIPT">dXJsID0gZW5jb2RlVVJJQ29tcG9uZW50KHVybCk7DQpyZXR1cm4gdXJsOw==</field>
                      <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                    </block>
                    <block type="comment" id=":1{5ta`)D%sSjgoE=Fi!" x="738" y="413">
                      <field name="COMMENT">Solarertrag grosses Display EG</field>
                      <next>
                        <block type="schedule" id="|O{CP~h._+!v#c9*!LVm">
                          <field name="SCHEDULE">*/10 * * * *</field>
                          <statement name="STATEMENT">
                            <block type="controls_if" id="+eTrP@@x*{)ZhjN2H4Jf">
                              <value name="IF0">
                                <block type="time_compare_ex" id="$t$it-V6B2hU;#k~^cP4">
                                  <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                  <field name="USE_ACTUAL_TIME">TRUE</field>
                                  <field name="OPTION">between</field>
                                  <value name="START_TIME">
                                    <shadow type="text" id="hBM#f+Gd22:2k,$_+t+,">
                                      <field name="TEXT">12:00</field>
                                    </shadow>
                                    <block type="time_astro" id="((+60!hJ,hptfT?5VH.U">
                                      <field name="TYPE">sunrise</field>
                                      <field name="OFFSET">0</field>
                                    </block>
                                  </value>
                                  <value name="END_TIME">
                                    <shadow type="text" id="Dh8jih_mk2:;yR{u2H+n">
                                      <field name="TEXT">18:00</field>
                                    </shadow>
                                    <block type="time_astro" id="LwAhrvt~a790ggE*PiZf">
                                      <field name="TYPE">sunset</field>
                                      <field name="OFFSET">0</field>
                                    </block>
                                  </value>
                                </block>
                              </value>
                              <statement name="DO0">
                                <block type="variables_set" id="}kvQ}B#.rViPjfKc-HTi">
                                  <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                                  <value name="VALUE">
                                    <block type="text" id="AS0{YNAIOlM%S|LO,c(?">
                                      <field name="TEXT">000005EDCEAABC9A</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="variables_set" id="k02GjbFfyHgTN`gcO-Da">
                                      <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                                      <value name="VALUE">
                                        <block type="procedures_callcustomreturn" id="m+$OB%}5|)Pwa;Sp_8Xz">
                                          <mutation name="encodeURL">
                                            <arg name="url"></arg>
                                          </mutation>
                                          <value name="ARG0">
                                            <block type="text_join" id="%7M,-4ru#q{/k6KDWMHm">
                                              <mutation items="33"></mutation>
                                              <value name="ADD0">
                                                <block type="text" id="G2fL:Xxh_e)*]VxFnorb">
                                                  <field name="TEXT">[ { "rotate": 1 },  {"text": [240,10,"Solaranlage","fonts/calibrib50",2,1]}, {"line": [10,75,470,75,1]}, {"text": [10,90,"letzte Aktualisierung","fonts/bahnschrift20",1]},     {"text": [250,90,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="logic_ternary" id="8{w1#^^5;dvTPL+e;YJ~">
                                                  <value name="IF">
                                                    <block type="logic_multi_and" id="}T,NvzNn/+Lg^0WvBwC]">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                                      <value name="AND0">
                                                        <block type="logic_compare" id="2=erH{%MgL5/:iIl`8T5">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="Tpf)^`BWUL|!xG9o@^+5">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">opendtu.0.114190930771.producing</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="*$av63$R-M9D`!g~ZeWf">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="AND1">
                                                        <block type="logic_compare" id="M02=NZJg8/TZ;bG=^~EK">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="tEI3p@a`|h1#gD5ekrKU">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">opendtu.0.114190653534.producing</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="|53x*YF8cIMZ]=cN/qp3">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <value name="AND2">
                                                        <block type="logic_compare" id="Q#[Ufu%Pm9=GzdE@pFPH">
                                                          <field name="OP">EQ</field>
                                                          <value name="A">
                                                            <block type="get_value" id="RdD=%=,z`:diSVyOP/!w">
                                                              <field name="ATTR">val</field>
                                                              <field name="OID">opendtu.0.114172609137.producing</field>
                                                            </block>
                                                          </value>
                                                          <value name="B">
                                                            <block type="logic_boolean" id="(Eqk-Ym(20Q+_,iTt@|w">
                                                              <field name="BOOL">FALSE</field>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="THEN">
                                                    <block type="text" id=",QVHW_uAE@r0f!{)JmYr">
                                                      <field name="TEXT">Ausgeschaltet</field>
                                                    </block>
                                                  </value>
                                                  <value name="ELSE">
                                                    <block type="time_get" id="WDX6z]|S@u;_22cBnV?4">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                      <field name="OPTION">custom</field>
                                                      <field name="FORMAT">TT.MM.JJJJ SS:mm:ss</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="logic_ternary" id="e(0#cb7J0QP//t$A.Sqj">
                                                  <value name="IF">
                                                    <block type="logic_compare" id="/.uFC;4v~QrFr[e~l^4u">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="z^RY8`{4;W+pqvKwa/7U">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190930771.producing</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="*wF4;WgwPbX]0kM|aRv.">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="THEN">
                                                    <block type="text" id="KG:U*zHU9}`ZAfY=W0tK">
                                                      <field name="TEXT">","fonts/bahnschrift20",2]}, {"line": [10,115,470,115,1]},  {"line": [10,117,470,117,1]},  {"text": [10,160,"WR HM800-1","fonts/bahnschrift30",2]}, {"line": [10,185,470,185,1]}, {"text": [10,200,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,200,"</field>
                                                    </block>
                                                  </value>
                                                  <value name="ELSE">
                                                    <block type="text" id="^sCuT(s]f}YnsUhyc@b4">
                                                      <field name="TEXT">","fonts/bahnschrift20",2]}, {"line": [10,115,470,115,1]},  {"line": [10,117,470,117,1]},  {"text": [10,160,"WR HM800-1  -  Ausgeschaltet","fonts/bahnschrift30",2]}, {"line": [10,185,470,185,1]}, {"text": [10,200,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,200,"</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD3">
                                                <block type="get_value" id="Ivop[TTx6k8izC(a}Lh$">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">pvforecast.0.plants.hm800_1.energy.today</field>
                                                </block>
                                              </value>
                                              <value name="ADD4">
                                                <block type="text" id="-TrP7)yat_@i@EoM![@s">
                                                  <field name="TEXT"> kWh","fonts/bahnschrift20",2]},     {"text": [10,230,"aktueller Ertrag","fonts/bahnschrift20",1]},   {"text": [250,230,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD5">
                                                <block type="math_rndfixed" id="QAk.pcIY[:Hq@@iafttG">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="Y4hw6Z6`8P]HU=kQv7.E">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id=",q|-s|A[N!n.HVB![149">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190930771.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="lEzFBL(5bFQIyhjrtXT2">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD6">
                                                <block type="text" id="8Mjb{3)XGWhzToz{:.]t">
                                                  <field name="TEXT"> kWh","fonts/bahnschrift20",2]}, {"text": [10,270,"Panel links","t0_14b_tf",1]},  {"text": [100,270,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD7">
                                                <block type="math_rndfixed" id="6O5o-0crvmw{S]*ouu*{">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="[d|6QKY(-Y~2p1+1KXq6">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="phgTU_Bh-tvt7%,t24y|">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190930771.dc.input_1.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="beaX:Cp~.t27vbLSIXG/">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD8">
                                                <block type="text" id="7nXKqp!cOTMvIDJNbSW5">
                                                  <field name="TEXT"> kWh","t0_14b_tf",2]}, {"text": [250,270,"Panel rechts","t0_14b_tf",1]},  {"text": [350,270,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD9">
                                                <block type="math_rndfixed" id="P}gD4cnRY}-yt`}eIE|{">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="ozAT|J_|^Q$2v^@YN4Ho">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="yKa;IXm+q5ASEgf#O+F[">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190930771.dc.input_2.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="86CE1a5eatiL#AoR]O8m">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD10">
                                                <block type="text" id="xGp/ybNh#GE3P])v]Inw">
                                                  <field name="TEXT"> kWh","t0_14b_tf",2]},  {"line": [10,280,470,280,1]}, {"line": [10,282,470,282,1]},</field>
                                                </block>
                                              </value>
                                              <value name="ADD11">
                                                <block type="logic_ternary" id="@HjbASKU(HaOD^mQ,oWY">
                                                  <value name="IF">
                                                    <block type="logic_compare" id="9{#(Ck6zGJJhZ7F^p==E">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="OSF}iUQ~rSU~5YYAin#F">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190653534.producing</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="V*Uq#xUHylKzFg-G(Q5l">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="THEN">
                                                    <block type="text" id="NJ83/zw??wV}EXLpM@L-">
                                                      <field name="TEXT">{"text": [10,310,"WR HM800-2","fonts/bahnschrift30",2]}, {"line": [10,335,470,335,1]},  {"text": [10,350,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,350,"</field>
                                                    </block>
                                                  </value>
                                                  <value name="ELSE">
                                                    <block type="text" id="(,8mlBH*0JejMqRkxu^Z">
                                                      <field name="TEXT">{"text": [10,310,"WR HM800-2  -  Ausgeschaltet","fonts/bahnschrift30",2]}, {"line": [10,335,470,335,1]},  {"text": [10,350,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,350,"</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD12">
                                                <block type="get_value" id="EeT5/2{=1Pjj98$#_)6X">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">pvforecast.0.plants.hm800_2.energy.today</field>
                                                </block>
                                              </value>
                                              <value name="ADD13">
                                                <block type="text" id="Lq9N4bVbA.B3?#0zbNa!">
                                                  <field name="TEXT"> kWh","fonts/bahnschrift20",2]},     {"text": [10,380,"aktueller Ertrag","fonts/bahnschrift20",1]},   {"text": [250,380,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD14">
                                                <block type="math_rndfixed" id="Zc4Wo*jkd5VH{#}%sePK">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="TTu0Sbuj6d=$A/pZEp5i">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="9aBLuy!78*lXpotau-h8">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190653534.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="RuMYw9r(VN]+:RQ3X0R`">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD15">
                                                <block type="text" id="]Y?pE{T:w[,/]BWN)Xq+">
                                                  <field name="TEXT"> kWh","fonts/bahnschrift20",2]}, {"text": [10,420,"Panel links","t0_14b_tf",1]},  {"text": [100,420,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD16">
                                                <block type="math_rndfixed" id="Lv!##+_-},]dLvood@ZH">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="l};RW#X.f(5h_;Al3Q#F">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="wU(`{rgH%Te%1K!gLE_.">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190653534.dc.input_1.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="f-#~,!P7~dY_{2b]+bZw">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD17">
                                                <block type="text" id="^^K-W;pWK,9o#[dPW~cd">
                                                  <field name="TEXT"> kWh","t0_14b_tf",2]}, {"text": [250,420,"Panel rechts","t0_14b_tf",1]},  {"text": [350,420,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD18">
                                                <block type="math_rndfixed" id="QGt7G0Sl#@a3.5@ADHFT">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="3MtkdH74:boCXRg2pgwj">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="U$_nYTB5?0FU){HAJE(B">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114190653534.dc.input_2.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="[NG_XNI?P4+%/Vj8==}[">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD19">
                                                <block type="text" id="$EisYqD8XD(hY)GBpDD7">
                                                  <field name="TEXT"> kWh","t0_14b_tf",2]}, {"line": [10,430,470,430,1]}, {"line": [10,432,470,432,1]},</field>
                                                </block>
                                              </value>
                                              <value name="ADD20">
                                                <block type="logic_ternary" id="x~0?ARW%*1R.pa^/hko?">
                                                  <value name="IF">
                                                    <block type="logic_compare" id="o|5F4IL8N^5UDxsAGFxg">
                                                      <field name="OP">EQ</field>
                                                      <value name="A">
                                                        <block type="get_value" id="GSedObh37`:,W+yov-zG">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114172609137.producing</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <block type="logic_boolean" id="Y:BJ.M;?tn#S!)7%mN[;">
                                                          <field name="BOOL">TRUE</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <value name="THEN">
                                                    <block type="text" id="KcxMy19JI6~%OX[7y7za">
                                                      <field name="TEXT">{"text": [10,460,"WR HM600","fonts/bahnschrift30",2]}, {"line": [10,485,470,485,1]},  {"text": [10,500,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,500,"</field>
                                                    </block>
                                                  </value>
                                                  <value name="ELSE">
                                                    <block type="text" id="*~KvPLC*POD+g[g1].)U">
                                                      <field name="TEXT">{"text": [10,460,"WR HM600  -  Ausgeschaltet","fonts/bahnschrift30",2]}, {"line": [10,485,470,485,1]},  {"text": [10,500,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,500,"</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD21">
                                                <block type="get_value" id="?=L[IdwDuBQX=-l#f#B/">
                                                  <field name="ATTR">val</field>
                                                  <field name="OID">pvforecast.0.plants.hm600.energy.today</field>
                                                </block>
                                              </value>
                                              <value name="ADD22">
                                                <block type="text" id="@-*Ngc*K=Sp]P,1*M;CY">
                                                  <field name="TEXT"> kWh","fonts/bahnschrift20",2]},     {"text": [10,530,"aktueller Ertrag","fonts/bahnschrift20",1]},   {"text": [250,530,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD23">
                                                <block type="math_rndfixed" id="T0-z;{D5wgX0LrH#9R[Z">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="vs^5Rb_sD8bohnEKn-fv">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="Ob(W-,Pe~q~jy%7r^XW7">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114172609137.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="t0I3hJZuLIHM^|RLd|iv">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD24">
                                                <block type="text" id="@A+vp)63G)$k(=[[*?-F">
                                                  <field name="TEXT"> kWh","fonts/bahnschrift20",2]}, {"text": [10,570,"Panel links","t0_14b_tf",1]},  {"text": [100,570,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD25">
                                                <block type="math_rndfixed" id="jMe%0jtE9~k4s(pZYnc`">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="Z`G.vQb/puMf/f#NWPJ`">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="2yCXTF1Qb84nEUUhMx8$">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114172609137.dc.input_1.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="_u/#Y9.YCwwyW}MR@j8*">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD26">
                                                <block type="text" id="rlvNe?,x+HP[Rx$%DDjb">
                                                  <field name="TEXT"> kWh","t0_14b_tf",2]}, {"text": [250,570,"Panel rechts","t0_14b_tf",1]},  {"text": [350,570,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD27">
                                                <block type="math_rndfixed" id="+QU2)e/xv._D]JaId@CS">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="icpgn}$s~Hp0qqP-y+pZ">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="bf%+QR[inZJC#AAQ@u0R">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.114172609137.dc.input_2.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="27Ai(Ivub(g(8@Xz~03e">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD28">
                                                <block type="text" id="qghl?RN!Na`7!*@Rh%]!">
                                                  <field name="TEXT"> kWh","t0_14b_tf",2]}, {"line": [10,580,470,580,1]}, {"line": [10,582,470,582,1]},</field>
                                                </block>
                                              </value>
                                              <value name="ADD29">
                                                <block type="text" id="t4tfAp2p2KSKGOdksFV*">
                                                  <field name="TEXT">{"text": [240,600,"Gesamtertrag","fonts/calibrib50",1,1]}, {"line": [10,665,470,665,1]}, {"text": [240,690,"</field>
                                                </block>
                                              </value>
                                              <value name="ADD30">
                                                <block type="math_rndfixed" id="HKNDXa}YT2y6W}:;g}*x">
                                                  <field name="n">3</field>
                                                  <value name="x">
                                                    <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                      <field name="NUM">3.1234</field>
                                                    </shadow>
                                                    <block type="math_arithmetic" id="$a(kOL-]3r)4dehKOE6#">
                                                      <field name="OP">DIVIDE</field>
                                                      <value name="A">
                                                        <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                          <field name="NUM">1</field>
                                                        </shadow>
                                                        <block type="get_value" id="vA3:H]EHDmDCIp+bk3;h">
                                                          <field name="ATTR">val</field>
                                                          <field name="OID">opendtu.0.total.yieldday</field>
                                                        </block>
                                                      </value>
                                                      <value name="B">
                                                        <shadow type="math_number" id="OY{OD3uwCS2W3/+FYOOz">
                                                          <field name="NUM">1000</field>
                                                        </shadow>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <value name="ADD31">
                                                <block type="text" id="L[@Q+Cu-y!dxWzKzMZlL">
                                                  <field name="TEXT"> kWh","fonts/calibrib80",2,1]}, {"line": [10,780,470,780,2]}, {"line": [10,782,470,782,2]}, {"line": [10,784,470,784,2]}]</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <next>
                                        <block type="http_post" id="AoQ+~mSdktWzhHgxGz#C">
                                          <field name="TIMEOUT">15</field>
                                          <field name="UNIT">sec</field>
                                          <field name="TYPE">text</field>
                                          <value name="URL">
                                            <shadow type="text" id="qh|GfefbC0op9nMhC4nk">
                                              <field name="TEXT">http://192.168.49.185/jsonupload</field>
                                            </shadow>
                                          </value>
                                          <value name="DATA">
                                            <block type="text_join" id="YiM(/:1NU2PK@ysCbT8$">
                                              <mutation items="4"></mutation>
                                              <value name="ADD0">
                                                <block type="text" id="sY#__Tq@9.DrJShh~Ant">
                                                  <field name="TEXT">mac=</field>
                                                </block>
                                              </value>
                                              <value name="ADD1">
                                                <block type="variables_get" id="^ag2u;YyTY9!dP{tJ|}c">
                                                  <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                                                </block>
                                              </value>
                                              <value name="ADD2">
                                                <block type="text" id="k:I$k7w),ZmO9hEwr:$W">
                                                  <field name="TEXT">&amp;json=</field>
                                                </block>
                                              </value>
                                              <value name="ADD3">
                                                <block type="variables_get" id="MEQ/.CHU]v1WHbuc@`Ly">
                                                  <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                                                </block>
                                              </value>
                                            </block>
                                          </value>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </statement>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </xml>
                  

                  Das Display sieht so aus:

                  solartag.jpg

                  1 Reply Last reply Reply Quote 0
                  • B
                    Beowolf last edited by

                    So,
                    ich habe die Anzeige etwas "verfeinert". Mir ging bei den Werten der Punkt anstelle eines Kommas auf die Nerven.

                    <xml xmlns="https://developers.google.com/blockly/xml">
                      <variables>
                        <variable id="e.-?J1RG(1E03apliOsd">url</variable>
                        <variable id="eMqV!m8?ZCdqN2].w`xb">TagMini1</variable>
                        <variable id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</variable>
                      </variables>
                      <block type="procedures_defcustomreturn" id="Q)=N/g,e;;C$aa#GZ/g6" x="738" y="388">
                        <mutation statements="false">
                          <arg name="url" varid="e.-?J1RG(1E03apliOsd"></arg>
                        </mutation>
                        <field name="NAME">encodeURL</field>
                        <field name="SCRIPT">dXJsID0gZW5jb2RlVVJJQ29tcG9uZW50KHVybCk7DQpyZXR1cm4gdXJsOw==</field>
                        <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
                      </block>
                      <block type="comment" id=":1{5ta`)D%sSjgoE=Fi!" x="738" y="413">
                        <field name="COMMENT">Solarertrag grosses Display EG</field>
                        <next>
                          <block type="schedule" id="|O{CP~h._+!v#c9*!LVm">
                            <field name="SCHEDULE">*/10 * * * *</field>
                            <statement name="STATEMENT">
                              <block type="controls_if" id="+eTrP@@x*{)ZhjN2H4Jf">
                                <value name="IF0">
                                  <block type="time_compare_ex" id="$t$it-V6B2hU;#k~^cP4">
                                    <mutation xmlns="http://www.w3.org/1999/xhtml" end_time="true" actual_time="true"></mutation>
                                    <field name="USE_ACTUAL_TIME">TRUE</field>
                                    <field name="OPTION">between</field>
                                    <value name="START_TIME">
                                      <shadow type="text" id="hBM#f+Gd22:2k,$_+t+,">
                                        <field name="TEXT">12:00</field>
                                      </shadow>
                                      <block type="time_astro" id="((+60!hJ,hptfT?5VH.U">
                                        <field name="TYPE">nauticalDawn</field>
                                        <field name="OFFSET">0</field>
                                      </block>
                                    </value>
                                    <value name="END_TIME">
                                      <shadow type="text" id="Dh8jih_mk2:;yR{u2H+n">
                                        <field name="TEXT">18:00</field>
                                      </shadow>
                                      <block type="time_astro" id="LwAhrvt~a790ggE*PiZf">
                                        <field name="TYPE">nauticalDusk</field>
                                        <field name="OFFSET">0</field>
                                      </block>
                                    </value>
                                  </block>
                                </value>
                                <statement name="DO0">
                                  <block type="variables_set" id="}kvQ}B#.rViPjfKc-HTi">
                                    <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                                    <value name="VALUE">
                                      <block type="text" id="AS0{YNAIOlM%S|LO,c(?">
                                        <field name="TEXT">000005EDCEAABC9A</field>
                                      </block>
                                    </value>
                                    <next>
                                      <block type="variables_set" id="k02GjbFfyHgTN`gcO-Da">
                                        <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                                        <value name="VALUE">
                                          <block type="procedures_callcustomreturn" id="m+$OB%}5|)Pwa;Sp_8Xz">
                                            <mutation name="encodeURL">
                                              <arg name="url"></arg>
                                            </mutation>
                                            <value name="ARG0">
                                              <block type="text_join" id="(xI]C(qn!er+Dx3Kqd{e">
                                                <mutation items="3"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="G2fL:Xxh_e)*]VxFnorb">
                                                    <field name="TEXT">[ { "rotate": 1 },  {"text": [240,10,"Solaranlage","fonts/calibrib50",2,1]}, {"line": [10,75,470,75,1]}, {"text": [10,90,"letzte Aktualisierung","fonts/bahnschrift20",1]},     {"text": [250,90,"</field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="logic_ternary" id="8{w1#^^5;dvTPL+e;YJ~">
                                                    <value name="IF">
                                                      <block type="logic_multi_and" id="}T,NvzNn/+Lg^0WvBwC]">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" items="3"></mutation>
                                                        <value name="AND0">
                                                          <block type="logic_compare" id="2=erH{%MgL5/:iIl`8T5">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="Tpf)^`BWUL|!xG9o@^+5">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">opendtu.0.114190930771.producing</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="*$av63$R-M9D`!g~ZeWf">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="AND1">
                                                          <block type="logic_compare" id="M02=NZJg8/TZ;bG=^~EK">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="tEI3p@a`|h1#gD5ekrKU">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">opendtu.0.114190653534.producing</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="|53x*YF8cIMZ]=cN/qp3">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="AND2">
                                                          <block type="logic_compare" id="Q#[Ufu%Pm9=GzdE@pFPH">
                                                            <field name="OP">EQ</field>
                                                            <value name="A">
                                                              <block type="get_value" id="RdD=%=,z`:diSVyOP/!w">
                                                                <field name="ATTR">val</field>
                                                                <field name="OID">opendtu.0.114172609137.producing</field>
                                                              </block>
                                                            </value>
                                                            <value name="B">
                                                              <block type="logic_boolean" id="(Eqk-Ym(20Q+_,iTt@|w">
                                                                <field name="BOOL">FALSE</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                    <value name="THEN">
                                                      <block type="text" id=",QVHW_uAE@r0f!{)JmYr">
                                                        <field name="TEXT">Ausgeschaltet</field>
                                                      </block>
                                                    </value>
                                                    <value name="ELSE">
                                                      <block type="time_get" id="WDX6z]|S@u;_22cBnV?4">
                                                        <mutation xmlns="http://www.w3.org/1999/xhtml" format="true" language="false"></mutation>
                                                        <field name="OPTION">custom</field>
                                                        <field name="FORMAT">TT.MM.JJJJ SS:mm:ss</field>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                                <value name="ADD2">
                                                  <block type="text_replace" id="9suDhywmn0|S@k%B4tL}">
                                                    <value name="FROM">
                                                      <shadow type="text" id="R@w?w+H}pK1M|yk.4Q,7">
                                                        <field name="TEXT">.</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="TO">
                                                      <shadow type="text" id="PO}quB08Odk-!i13EyAx">
                                                        <field name="TEXT">,</field>
                                                      </shadow>
                                                    </value>
                                                    <value name="TEXT">
                                                      <shadow type="text" id="Q$Af]Md*qL+5@VZ!5E+j">
                                                        <field name="TEXT">text</field>
                                                      </shadow>
                                                      <block type="text_join" id="%7M,-4ru#q{/k6KDWMHm">
                                                        <mutation items="33"></mutation>
                                                        <value name="ADD0">
                                                          <block type="logic_ternary" id="e(0#cb7J0QP//t$A.Sqj">
                                                            <value name="IF">
                                                              <block type="logic_compare" id="/.uFC;4v~QrFr[e~l^4u">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="z^RY8`{4;W+pqvKwa/7U">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.114190930771.producing</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="*wF4;WgwPbX]0kM|aRv.">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="THEN">
                                                              <block type="text" id="KG:U*zHU9}`ZAfY=W0tK">
                                                                <field name="TEXT">","fonts/bahnschrift20",2]}, {"line": [10,115,470,115,1]},  {"line": [10,117,470,117,1]},  {"text": [10,160,"WR1 HM1000","fonts/bahnschrift30",2]}, {"line": [10,185,470,185,1]}, {"text": [10,200,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,200,"</field>
                                                              </block>
                                                            </value>
                                                            <value name="ELSE">
                                                              <block type="text" id="^sCuT(s]f}YnsUhyc@b4">
                                                                <field name="TEXT">","fonts/bahnschrift20",2]}, {"line": [10,115,470,115,1]},  {"line": [10,117,470,117,1]},  {"text": [10,160,"WR1 HM1000  -  Ausgeschaltet","fonts/bahnschrift30",2]}, {"line": [10,185,470,185,1]}, {"text": [10,200,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,200,"</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD1">
                                                          <block type="get_value" id="Ivop[TTx6k8izC(a}Lh$">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">pvforecast.0.plants.wr1Hm1000.energy.today</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD2">
                                                          <block type="text" id="-TrP7)yat_@i@EoM![@s">
                                                            <field name="TEXT"> kWh","fonts/bahnschrift20",2]},     {"text": [10,230,"aktueller Ertrag","fonts/bahnschrift20",1]},   {"text": [250,230,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD3">
                                                          <block type="math_rndfixed" id="QAk.pcIY[:Hq@@iafttG">
                                                            <field name="n">3</field>
                                                            <value name="x">
                                                              <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                                <field name="NUM">3.1234</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="Y4hw6Z6`8P]HU=kQv7.E">
                                                                <field name="OP">DIVIDE</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="get_value" id=",q|-s|A[N!n.HVB![149">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.114190930771.yieldday</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="lEzFBL(5bFQIyhjrtXT2">
                                                                    <field name="NUM">1000</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD4">
                                                          <block type="text" id="8Mjb{3)XGWhzToz{:.]t">
                                                            <field name="TEXT"> kWh","fonts/bahnschrift20",2]}, {"text": [10,270,"Panel links","t0_14b_tf",1]},  {"text": [100,270,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD5">
                                                          <block type="get_value" id="phgTU_Bh-tvt7%,t24y|">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">opendtu.0.114190930771.dc.input_2.power</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD6">
                                                          <block type="text" id="7nXKqp!cOTMvIDJNbSW5">
                                                            <field name="TEXT"> W","t0_14b_tf",2]}, {"text": [250,270,"Panel rechts","t0_14b_tf",1]},  {"text": [350,270,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD7">
                                                          <block type="get_value" id="yKa;IXm+q5ASEgf#O+F[">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">opendtu.0.114190930771.dc.input_1.power</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD8">
                                                          <block type="text" id="xGp/ybNh#GE3P])v]Inw">
                                                            <field name="TEXT"> W","t0_14b_tf",2]},  {"line": [10,280,470,280,1]}, {"line": [10,282,470,282,1]},</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD9">
                                                          <block type="logic_ternary" id="@HjbASKU(HaOD^mQ,oWY">
                                                            <value name="IF">
                                                              <block type="logic_compare" id="9{#(Ck6zGJJhZ7F^p==E">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="OSF}iUQ~rSU~5YYAin#F">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.114190653534.producing</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="V*Uq#xUHylKzFg-G(Q5l">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="THEN">
                                                              <block type="text" id="NJ83/zw??wV}EXLpM@L-">
                                                                <field name="TEXT">{"text": [10,310,"WR2 HM1000","fonts/bahnschrift30",2]}, {"line": [10,335,470,335,1]},  {"text": [10,350,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,350,"</field>
                                                              </block>
                                                            </value>
                                                            <value name="ELSE">
                                                              <block type="text" id="(,8mlBH*0JejMqRkxu^Z">
                                                                <field name="TEXT">{"text": [10,310,"WR2 HM1000  -  Ausgeschaltet","fonts/bahnschrift30",2]}, {"line": [10,335,470,335,1]},  {"text": [10,350,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,350,"</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD10">
                                                          <block type="get_value" id="EeT5/2{=1Pjj98$#_)6X">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">pvforecast.0.plants.wr2Hm1000.energy.today</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD11">
                                                          <block type="text" id="Lq9N4bVbA.B3?#0zbNa!">
                                                            <field name="TEXT"> kWh","fonts/bahnschrift20",2]},     {"text": [10,380,"aktueller Ertrag","fonts/bahnschrift20",1]},   {"text": [250,380,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD12">
                                                          <block type="math_rndfixed" id="Zc4Wo*jkd5VH{#}%sePK">
                                                            <field name="n">3</field>
                                                            <value name="x">
                                                              <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                                <field name="NUM">3.1234</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="TTu0Sbuj6d=$A/pZEp5i">
                                                                <field name="OP">DIVIDE</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="get_value" id="9aBLuy!78*lXpotau-h8">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.114190653534.yieldday</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="RuMYw9r(VN]+:RQ3X0R`">
                                                                    <field name="NUM">1000</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD13">
                                                          <block type="text" id="]Y?pE{T:w[,/]BWN)Xq+">
                                                            <field name="TEXT"> kWh","fonts/bahnschrift20",2]}, {"text": [10,420,"Panel links","t0_14b_tf",1]},  {"text": [100,420,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD14">
                                                          <block type="get_value" id="wU(`{rgH%Te%1K!gLE_.">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">opendtu.0.114190653534.dc.input_2.power</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD15">
                                                          <block type="text" id="^^K-W;pWK,9o#[dPW~cd">
                                                            <field name="TEXT"> W","t0_14b_tf",2]}, {"text": [250,420,"Panel rechts","t0_14b_tf",1]},  {"text": [350,420,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD16">
                                                          <block type="get_value" id="U$_nYTB5?0FU){HAJE(B">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">opendtu.0.114190653534.dc.input_1.power</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD17">
                                                          <block type="text" id="$EisYqD8XD(hY)GBpDD7">
                                                            <field name="TEXT"> W","t0_14b_tf",2]}, {"line": [10,430,470,430,1]}, {"line": [10,432,470,432,1]},</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD18">
                                                          <block type="logic_ternary" id="x~0?ARW%*1R.pa^/hko?">
                                                            <value name="IF">
                                                              <block type="logic_compare" id="o|5F4IL8N^5UDxsAGFxg">
                                                                <field name="OP">EQ</field>
                                                                <value name="A">
                                                                  <block type="get_value" id="GSedObh37`:,W+yov-zG">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.114172609137.producing</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <block type="logic_boolean" id="Y:BJ.M;?tn#S!)7%mN[;">
                                                                    <field name="BOOL">TRUE</field>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                            <value name="THEN">
                                                              <block type="text" id="KcxMy19JI6~%OX[7y7za">
                                                                <field name="TEXT">{"text": [10,460,"WR3 HM1000","fonts/bahnschrift30",2]}, {"line": [10,485,470,485,1]},  {"text": [10,500,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,500,"</field>
                                                              </block>
                                                            </value>
                                                            <value name="ELSE">
                                                              <block type="text" id="*~KvPLC*POD+g[g1].)U">
                                                                <field name="TEXT">{"text": [10,460,"WR3 HM1000  -  Ausgeschaltet","fonts/bahnschrift30",2]}, {"line": [10,485,470,485,1]},  {"text": [10,500,"heutige Vorhersage","fonts/bahnschrift20",1]},     {"text": [250,500,"</field>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD19">
                                                          <block type="get_value" id="?=L[IdwDuBQX=-l#f#B/">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">pvforecast.0.plants.wr3Hm1000.energy.today</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD20">
                                                          <block type="text" id="@-*Ngc*K=Sp]P,1*M;CY">
                                                            <field name="TEXT"> kWh","fonts/bahnschrift20",2]},     {"text": [10,530,"aktueller Ertrag","fonts/bahnschrift20",1]},   {"text": [250,530,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD21">
                                                          <block type="math_rndfixed" id="T0-z;{D5wgX0LrH#9R[Z">
                                                            <field name="n">3</field>
                                                            <value name="x">
                                                              <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                                <field name="NUM">3.1234</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="vs^5Rb_sD8bohnEKn-fv">
                                                                <field name="OP">DIVIDE</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="get_value" id="Ob(W-,Pe~q~jy%7r^XW7">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.114172609137.yieldday</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="t0I3hJZuLIHM^|RLd|iv">
                                                                    <field name="NUM">1000</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD22">
                                                          <block type="text" id="@A+vp)63G)$k(=[[*?-F">
                                                            <field name="TEXT"> kWh","fonts/bahnschrift20",2]}, {"text": [10,570,"Panel links","t0_14b_tf",1]},  {"text": [100,570,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD23">
                                                          <block type="get_value" id="2yCXTF1Qb84nEUUhMx8$">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">opendtu.0.114172609137.dc.input_2.power</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD24">
                                                          <block type="text" id="rlvNe?,x+HP[Rx$%DDjb">
                                                            <field name="TEXT"> W","t0_14b_tf",2]}, {"text": [250,570,"Panel rechts","t0_14b_tf",1]},  {"text": [350,570,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD25">
                                                          <block type="get_value" id="bf%+QR[inZJC#AAQ@u0R">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">opendtu.0.114172609137.dc.input_1.power</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD26">
                                                          <block type="text" id="qghl?RN!Na`7!*@Rh%]!">
                                                            <field name="TEXT"> W","t0_14b_tf",2]}, {"line": [10,580,470,580,1]}, {"line": [10,582,470,582,1]},{"text": [10,600,"heutige Vorhersage </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD27">
                                                          <block type="get_value" id="3]*vljaL09ew4$FO9xPb">
                                                            <field name="ATTR">val</field>
                                                            <field name="OID">pvforecast.0.summary.energy.today</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD28">
                                                          <block type="text" id="IUGBm6dx/gIlfNP}Yt%y">
                                                            <field name="TEXT"> kWh","t0_14b_tf",2]},{"text": [250,600,"Erreichter Ertrag </field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD29">
                                                          <block type="math_rndfixed" id="sZUvOOMh,ha=vZpir=t[">
                                                            <field name="n">2</field>
                                                            <value name="x">
                                                              <shadow type="math_number" id="3BOwPA}*ySU8ZK0Gnl1n">
                                                                <field name="NUM">3.1234</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="wmJ/[`BFPDO7D`A0RgBd">
                                                                <field name="OP">MULTIPLY</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id="l1C4`dT0?s#j@S`rk4f4">
                                                                    <field name="NUM">100</field>
                                                                  </shadow>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id=":Xkz~uu=qr_GYw$jsfL{">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="math_arithmetic" id="!JGoF:`qR,7:r6HfEUkL">
                                                                    <field name="OP">DIVIDE</field>
                                                                    <value name="A">
                                                                      <shadow type="math_number" id="V+z*Pkx6V]nVqtm[{CvF">
                                                                        <field name="NUM">1</field>
                                                                      </shadow>
                                                                      <block type="math_arithmetic" id="uBAX:!#=6J0*[j%6)-?y">
                                                                        <field name="OP">DIVIDE</field>
                                                                        <value name="A">
                                                                          <shadow type="math_number" id="zZh-~A!wYv#8/P.AW6x9">
                                                                            <field name="NUM">1</field>
                                                                          </shadow>
                                                                          <block type="get_value" id=":V1;P-tCQ/Su;UfRcDj[">
                                                                            <field name="ATTR">val</field>
                                                                            <field name="OID">opendtu.0.total.yieldday</field>
                                                                          </block>
                                                                        </value>
                                                                        <value name="B">
                                                                          <shadow type="math_number" id="J$vn}Z+z=TXkY#,6)O%I">
                                                                            <field name="NUM">1000</field>
                                                                          </shadow>
                                                                        </value>
                                                                      </block>
                                                                    </value>
                                                                    <value name="B">
                                                                      <shadow type="math_number" id="Gd_TU(AoI5gK;vD9`wR:">
                                                                        <field name="NUM">1000</field>
                                                                      </shadow>
                                                                      <block type="get_value" id="=[RKv}#j--V|7Tien#0#">
                                                                        <field name="ATTR">val</field>
                                                                        <field name="OID">pvforecast.0.summary.energy.today</field>
                                                                      </block>
                                                                    </value>
                                                                  </block>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD30">
                                                          <block type="text" id="t4tfAp2p2KSKGOdksFV*">
                                                            <field name="TEXT"> %","t0_14b_tf",2]},{"text": [240,610,"Gesamtertrag","fonts/calibrib50",1,1]}, {"line": [10,675,470,675,1]}, {"text": [240,690,"</field>
                                                          </block>
                                                        </value>
                                                        <value name="ADD31">
                                                          <block type="math_rndfixed" id="HKNDXa}YT2y6W}:;g}*x">
                                                            <field name="n">3</field>
                                                            <value name="x">
                                                              <shadow type="math_number" id="mG[a]Hx%os@-@[KTCB6+">
                                                                <field name="NUM">3.1234</field>
                                                              </shadow>
                                                              <block type="math_arithmetic" id="$a(kOL-]3r)4dehKOE6#">
                                                                <field name="OP">DIVIDE</field>
                                                                <value name="A">
                                                                  <shadow type="math_number" id=")F~PE4ejNz6-[9SlDD^r">
                                                                    <field name="NUM">1</field>
                                                                  </shadow>
                                                                  <block type="get_value" id="vA3:H]EHDmDCIp+bk3;h">
                                                                    <field name="ATTR">val</field>
                                                                    <field name="OID">opendtu.0.total.yieldday</field>
                                                                  </block>
                                                                </value>
                                                                <value name="B">
                                                                  <shadow type="math_number" id="OY{OD3uwCS2W3/+FYOOz">
                                                                    <field name="NUM">1000</field>
                                                                  </shadow>
                                                                </value>
                                                              </block>
                                                            </value>
                                                          </block>
                                                        </value>
                                                        <value name="ADD32">
                                                          <block type="text" id="L[@Q+Cu-y!dxWzKzMZlL">
                                                            <field name="TEXT"> kWh","fonts/calibrib80",2,1]}, {"line": [10,780,470,780,2]}, {"line": [10,782,470,782,2]}, {"line": [10,784,470,784,2]}]</field>
                                                          </block>
                                                        </value>
                                                      </block>
                                                    </value>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </value>
                                        <next>
                                          <block type="http_post" id="AoQ+~mSdktWzhHgxGz#C">
                                            <field name="TIMEOUT">15</field>
                                            <field name="UNIT">sec</field>
                                            <field name="TYPE">text</field>
                                            <value name="URL">
                                              <shadow type="text" id="qh|GfefbC0op9nMhC4nk">
                                                <field name="TEXT">http://192.168.49.185/jsonupload</field>
                                              </shadow>
                                            </value>
                                            <value name="DATA">
                                              <block type="text_join" id="YiM(/:1NU2PK@ysCbT8$">
                                                <mutation items="4"></mutation>
                                                <value name="ADD0">
                                                  <block type="text" id="sY#__Tq@9.DrJShh~Ant">
                                                    <field name="TEXT">mac=</field>
                                                  </block>
                                                </value>
                                                <value name="ADD1">
                                                  <block type="variables_get" id="^ag2u;YyTY9!dP{tJ|}c">
                                                    <field name="VAR" id="eMqV!m8?ZCdqN2].w`xb">TagMini1</field>
                                                  </block>
                                                </value>
                                                <value name="ADD2">
                                                  <block type="text" id="k:I$k7w),ZmO9hEwr:$W">
                                                    <field name="TEXT">&amp;json=</field>
                                                  </block>
                                                </value>
                                                <value name="ADD3">
                                                  <block type="variables_get" id="MEQ/.CHU]v1WHbuc@`Ly">
                                                    <field name="VAR" id="*)}|9mHpKcV3YN}|a_t5">jsonMini1</field>
                                                  </block>
                                                </value>
                                              </block>
                                            </value>
                                          </block>
                                        </next>
                                      </block>
                                    </next>
                                  </block>
                                </statement>
                              </block>
                            </statement>
                          </block>
                        </next>
                      </block>
                    </xml>
                    

                    Sieht dann so aus.

                    solar1.jpg

                    Das ist ganz einfach mit dem Blockly-Baustein aus "Text" ersetze-durch-in gemacht.

                    Also ersetze "Punkt" durch "komma" und dann in das letzte Feld eben den kompletten Baustein "erstelle Text aus".

                    Die obere Datumsanzeige muß natürlich auserhalb des "ersetzen" Blocks.

                    In den Haupteinstellungen von ioBroker gibt es zwar eine Auswahl zwischen Komma und Punkt.
                    Auf Zahlenwerte in den Datenpunkten wenn sie in einem Blockly verarbeitet werden hat es leider keinen Einfluss.

                    Grüße

                    Eisbaeeer 1 Reply Last reply Reply Quote 0
                    • Eisbaeeer
                      Eisbaeeer Developer @Beowolf last edited by

                      Java-Script um ein Display mit Puppeteer zu füttern.
                      Benötigt wird der Chrome-Headless + Puppeteer Adapter.
                      In VIS einen View erstellen und diesen hier im Script angeben.
                      Das Script wird einen Screenshot davon machen und auf das Display hochladen.

                      // #############################################
                      // Author:  Eisbaeeer
                      // Date:    20250415
                      // Version  0.2 :   Bugfix async pictures 
                      // Version: 0.1 :   Convert from Blockly to js
                      //
                      // Benötigt: 
                      // - Puppeteer Adapter
                      // - Chrome Headless
                      //
                      // #############################################
                      // Hier die Anpassungen vornehmen!
                       
                      const urlOfVISView = 'http://192.168.1.200:8082/vis/?OpenEpaper#Tag2';	// Eure View oder URL vom Bild						// URL zur View
                      const targetWidth = 296;												// Breite des Displays
                      const targetHeight = 128;												// Höhe des Displays
                      const cutoutX = 0;													    // Abstand Pixel von links für Screenshot
                      const cutoutY = 0;														// Abstand Pixel von oben für Screenshot
                      const pquality = 100;	                                                // Bildqualität
                      const waitForSelector = "#w00017"										// Screenshot Qualität
                      const inputPath = "/tmp/epaperTag01.jpg";								// Screenshot temporär
                      const uploadUrl = 'http://192.168.1.180/imgupload';						// IP-Adresse Accesspoint anpassen
                      const macAddress = '0000021F7E2C3B12';									// MAC-Adresse des Displays anpassen
                      const ditherValue = 1; 												    // Setze den Dither-Wert (Farbanpassungen: 0 = View hat gleiche Farben | 1 = View hat andere Farben als das Display
                       
                      // Hier werden die Trigger eingestellt (wann ein Screenshot erstellt werden soll)
                       
                      // Hier im Beispiel alle 15 Minuten 
                      schedule("*/15 * * * *", async () => {
                          takeScreenshots();
                      });
                          
                      // Hier auf einen STATE im userdata.0
                      on("0_userdata.0.TESTING.STATE",function(obj) {
                          takeScreenshots();
                      });
                       
                      // Hier auf einen STATE von Homematic Türkontakt
                      on("hm-rpc.0.LEQ9129032.1.STATE",function(obj) {
                          takeScreenshots();
                      });    
                       
                      // ENDE Anpassungen! Ab hier nichts mehr ändern!
                      // #############################################
                       
                      // Requirements
                      const puppeteer = require('puppeteer');
                      const axios = require('axios');
                      const fs = require('fs');
                      const FormData = require('form-data');
                       
                      async function takeScreenshots() {
                          console.log("*** function takeScreenshot");
                          sendTo('puppeteer.0', 'screenshot', { 
                            url: urlOfVISView,                     
                              path: inputPath,     
                              width: targetWidth,                      
                              height: targetHeight,                    
                              quality: pquality,                   
                           
                              waitOption: {
                                  waitForSelector: waitForSelector,  
                                  waitForTimeout: 20000              
                              },
                           
                              fullPage: false,                       
                           
                              clip: {         
                                  x: cutoutX,                        
                                  y: cutoutY,                        
                                  width: targetWidth,                
                                  height: targetHeight               
                              }
                          }, obj => {
                            if (obj.error) {
                              log(`Error taking screenshot: ${obj.error.message}`, 'error');
                            } else {
                              // the binary representation of the image is contained in `obj.result`
                              log(`Successfully took screenshot: ${obj.result}`);
                              console.log("*** upload Image");
                              // uploading Screenshot
                              async function uploadImage() {
                      		try {
                      			// Prüfen, ob die Datei existiert
                      			if (!fs.existsSync(inputPath)) {
                      			throw new Error(`Datei nicht gefunden: ${inputPath}`);
                      		}
                      	// FormData erstellen
                      	const form = new FormData();
                      	form.append("mac", macAddress);
                      	form.append("dither", ditherValue); // Dither-Parameter hinzufügen
                      	form.append("file", fs.createReadStream(inputPath));
                      	// POST-Anfrage senden
                      	const response = await axios.post(uploadUrl, form, {
                      	headers: {
                      		...form.getHeaders(),
                      	},
                      	});
                       
                      	console.log('Upload erfolgreich:', response.data);
                      	} catch (error) {
                      	if (error.response) {
                      		console.error('Server-Antwort:', error.response.status, error.response.data);
                      	} else if (error.request) {
                      		console.error('Keine Antwort erhalten:', error.request);
                      	} else {
                      		console.error('Fehler beim Hochladen:', error.message);
                      	}
                      	}
                          }
                          uploadImage();
                          }
                          })
                      }
                      
                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      928
                      Online

                      31.9k
                      Users

                      80.2k
                      Topics

                      1.3m
                      Posts

                      4
                      9
                      599
                      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