Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. OctoPrint Enclosure DP erstellen

    NEWS

    • Monatsrückblick - April 2025

    • Minor js-controller 7.0.7 Update in latest repo

    • Save The Date: ioBroker@Smart Living Forum Solingen, 14.06.

    OctoPrint Enclosure DP erstellen

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

      Hallo,

      Ich möchte gerne das Plugin das ich im Octoprint installiert habe entsprechend die DP erstellen lassen in IoBroker.
      API

      Habe es mal so versucht komme aber schon nicht weiter weil ich ein Forbidden als results bekomme! Kann mir einer sagen warum das so ist?

      3ddrucker_enclosure.jpg

      3ddrucker_enclosure2.jpg

      EDIT:

      wenn man den Apikey mit gibt sieht das schon besser aus 🙂

      Habe es mal für mich so hingebastelt!

      enclosureplugin_blockly.jpg enclosureplugin_blockly2.jpg

      <xml xmlns="https://developers.google.com/blockly/xml">
        <variables>
          <variable id="|hc4CR)/AKMW8@9]7l~I">apikey</variable>
          <variable id="Sk_beI}z77n5@Gu0KcqQ">inputs</variable>
          <variable id="9[2L,Dbg?#!WTnVr?N8i">licht aus</variable>
          <variable id="RaaVE.TU;+QeN}hg7CF/">licht an</variable>
          <variable type="interval" id="Intervall">Intervall</variable>
          <variable id="779Cf?!_C,c+m-ABVD0Q">result</variable>
        </variables>
        <block type="create" id="O[~OpsgP=^h}7OLW9p{c" disabled="true" x="338" y="137">
          <field name="NAME">3D-Drucker_Benachrichtigung.Gehäuse_Temperatur-innen</field>
          <value name="VALUE">
            <block type="math_number" id="BZJvKIjKI;?;I@ToqR,U">
              <field name="NUM">0</field>
            </block>
          </value>
          <value name="COMMON">
            <block type="text" id="Z.AQR9)1i`ANl]EP#8},">
              <field name="TEXT">{"type" : "number" , "unit" : "°C"}</field>
            </block>
          </value>
          <next>
            <block type="create" id="}ZpXskh.)vV?L,X_y;Rg" disabled="true">
              <field name="NAME">3D-Drucker_Benachrichtigung.Gehäuse_Luftfeuchtigkeit-innen</field>
              <value name="VALUE">
                <block type="math_number" id="wG0z=k0:-EH(^H9Ob78u">
                  <field name="NUM">0</field>
                </block>
              </value>
              <value name="COMMON">
                <block type="text" id="swY6{78f3Q2VS)YT#Q8H">
                  <field name="TEXT">{"type" : "number" , "unit" : "%"}</field>
                </block>
              </value>
              <next>
                <block type="create" id="r%~ZJp],!kRxkOv@_=(h" disabled="true">
                  <field name="NAME">3D-Drucker_Benachrichtigung.Gehäuse_Licht</field>
                  <value name="VALUE">
                    <block type="logic_boolean" id=")G(m0!%F%xtxb`zeTrsD">
                      <field name="BOOL">FALSE</field>
                    </block>
                  </value>
                  <value name="COMMON">
                    <block type="text" id="N-9hfKvXrNTb@ZH+e+MB">
                      <field name="TEXT">{"type" : "boolean"}</field>
                    </block>
                  </value>
                  <next>
                    <block type="variables_set" id="2F1NXBwTRM%B+KIWRf#H">
                      <field name="VAR" id="|hc4CR)/AKMW8@9]7l~I">apikey</field>
                      <value name="VALUE">
                        <block type="text" id="k4R+eKQiFBvPHQ:`(:?L">
                          <field name="TEXT">000000000000</field>
                        </block>
                      </value>
                      <next>
                        <block type="variables_set" id="[k1L-9fWy$H3p:POm#ST">
                          <field name="VAR" id="Sk_beI}z77n5@Gu0KcqQ">inputs</field>
                          <value name="VALUE">
                            <block type="text" id="~a@F}~R+UaQZ:99HM6/b">
                              <field name="TEXT">inputs/1</field>
                            </block>
                          </value>
                          <next>
                            <block type="variables_set" id="xE=$?iz)@*;J:UI:;Gf)">
                              <field name="VAR" id="9[2L,Dbg?#!WTnVr?N8i">licht aus</field>
                              <value name="VALUE">
                                <block type="text" id="NOdBh-!Ryn*XZfn:big-">
                                  <field name="TEXT">setIO?status=false&amp;index_id=1</field>
                                </block>
                              </value>
                              <next>
                                <block type="variables_set" id="3~kP.y|g!3}.sLqpK*#:">
                                  <field name="VAR" id="RaaVE.TU;+QeN}hg7CF/">licht an</field>
                                  <value name="VALUE">
                                    <block type="text" id="e2=z-xT8:L!{LN=@~ZTs">
                                      <field name="TEXT">setIO?status=true&amp;index_id=1</field>
                                    </block>
                                  </value>
                                  <next>
                                    <block type="on_ext" id=")gK:iGBTNQ|@}8jZdqW.">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                      <field name="CONDITION">ne</field>
                                      <field name="ACK_CONDITION"></field>
                                      <value name="OID0">
                                        <shadow type="field_oid" id="#S6MKE`=K70tI3:Nt?Pn">
                                          <field name="oid">octoprint.0.info.connection</field>
                                        </shadow>
                                      </value>
                                      <statement name="STATEMENT">
                                        <block type="controls_if" id="SEQw}gNbXAM{}[]3_rLL">
                                          <mutation else="1"></mutation>
                                          <value name="IF0">
                                            <block type="on_source" id="e9o#FU-Yx^S{hXOfIKr8">
                                              <field name="ATTR">state.val</field>
                                            </block>
                                          </value>
                                          <statement name="DO0">
                                            <block type="timeouts_setinterval" id="HgE/wquJPph-5uIcp[MX">
                                              <field name="NAME">Intervall</field>
                                              <field name="INTERVAL">2</field>
                                              <field name="UNIT">min</field>
                                              <statement name="STATEMENT">
                                                <block type="request" id="3O~*/Gwa{@#A!)@mTgU?">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
                                                  <field name="WITH_STATEMENT">TRUE</field>
                                                  <field name="LOG"></field>
                                                  <value name="URL">
                                                    <shadow type="text" id="L~ZW2;XvzoaE|ePXS8jY">
                                                      <field name="TEXT">http://192.168.1.90/plugin/enclosure/inputs/1?apikey=9DCDC7E5642B40328B5ABED80A253FA4</field>
                                                    </shadow>
                                                    <block type="text_join" id="$CaS_C?tcuOb-V/KywoK">
                                                      <mutation items="4"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="o$PD]:5^}I+Pz+K{O!s(">
                                                          <field name="TEXT">http://192.168.1.90/plugin/enclosure/</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="variables_get" id="_FHh-mDmul@SB3D([PtK">
                                                          <field name="VAR" id="Sk_beI}z77n5@Gu0KcqQ">inputs</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="text" id="i2H#*zC][Cg$pxY~Si[~">
                                                          <field name="TEXT">?apikey=</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="variables_get" id="Dx%^QO$F7uF@_K%:%S=c">
                                                          <field name="VAR" id="|hc4CR)/AKMW8@9]7l~I">apikey</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                  <statement name="STATEMENT">
                                                    <block type="update" id="YB4HbZ=uqSxV,4IL)aou">
                                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                      <field name="OID">javascript.0.3D-Drucker_Benachrichtigung.Gehäuse_Temperatur-innen</field>
                                                      <field name="WITH_DELAY">FALSE</field>
                                                      <value name="VALUE">
                                                        <block type="get_attr" id="d-sa?q:%hyG-rudVL4UE">
                                                          <value name="PATH">
                                                            <shadow type="text" id="(,WHGlE5s`~us+/P38%M">
                                                              <field name="TEXT">temp_sensor_temp</field>
                                                            </shadow>
                                                          </value>
                                                          <value name="OBJECT">
                                                            <block type="convert_json2object" id="peWp*5xzJBEmTVKansSX">
                                                              <value name="VALUE">
                                                                <block type="variables_get" id="weJ6_X*lAof+lcEx_z,s">
                                                                  <field name="VAR" id="779Cf?!_C,c+m-ABVD0Q">result</field>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </value>
                                                      <next>
                                                        <block type="update" id=",Qw{T#yVf`KdLrbeKwg.">
                                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                          <field name="OID">javascript.0.3D-Drucker_Benachrichtigung.Gehäuse_Luftfeuchtigkeit-innen</field>
                                                          <field name="WITH_DELAY">FALSE</field>
                                                          <value name="VALUE">
                                                            <block type="get_attr" id="{BF/P{9*EN!5xO8|)-Os">
                                                              <value name="PATH">
                                                                <shadow type="text" id="sHIOidNCcPXOb4H]hcg-">
                                                                  <field name="TEXT">temp_sensor_humidity</field>
                                                                </shadow>
                                                              </value>
                                                              <value name="OBJECT">
                                                                <block type="convert_json2object" id="A%/C_KTQ*m#8H`uOc^OB">
                                                                  <value name="VALUE">
                                                                    <block type="variables_get" id="-V/shtTTsc{T==^90GTy">
                                                                      <field name="VAR" id="779Cf?!_C,c+m-ABVD0Q">result</field>
                                                                    </block>
                                                                  </value>
                                                                </block>
                                                              </value>
                                                            </block>
                                                          </value>
                                                        </block>
                                                      </next>
                                                    </block>
                                                  </statement>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                          <statement name="ELSE">
                                            <block type="timeouts_clearinterval" id="uPbx*ieApbn=WeDAC,t5">
                                              <field name="NAME">Intervall</field>
                                            </block>
                                          </statement>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="on_ext" id=")2CMb?YVQ|igqn^W%4HD">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                                          <field name="CONDITION">ne</field>
                                          <field name="ACK_CONDITION"></field>
                                          <value name="OID0">
                                            <shadow type="field_oid" id="707DS6DW;F$2wdNO+r{J">
                                              <field name="oid">javascript.0.3D-Drucker_Benachrichtigung.Gehäuse_Licht</field>
                                            </shadow>
                                          </value>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="{e)!he9ncUVg9A4ug8Hz">
                                              <mutation else="1"></mutation>
                                              <value name="IF0">
                                                <block type="on_source" id="VHHw3us(d[Zo1$-1X6?D">
                                                  <field name="ATTR">state.val</field>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="request" id="1ChLf2Rks8[3vNv8n;pQ">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                  <field name="LOG">log</field>
                                                  <value name="URL">
                                                    <shadow type="text">
                                                      <field name="TEXT">http://192.168.1.90/plugin/enclosure/inputs/1?apikey=9DCDC7E5642B40328B5ABED80A253FA4</field>
                                                    </shadow>
                                                    <block type="text_join" id="4WO4H2@(@jcXc6YQ,9Cr">
                                                      <mutation items="4"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="LIU]rr09gw?)(1t@d8~%">
                                                          <field name="TEXT">http://192.168.1.90/plugin/enclosure/</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="variables_get" id="LqLF;fh.oYu;oaG8y7Jp">
                                                          <field name="VAR" id="RaaVE.TU;+QeN}hg7CF/">licht an</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="text" id="ke(i`_%[nRg58aXgGd`%">
                                                          <field name="TEXT">&amp;apikey=</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="variables_get" id="cBd?C,!X)(v]zo2)AUI;">
                                                          <field name="VAR" id="|hc4CR)/AKMW8@9]7l~I">apikey</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                              <statement name="ELSE">
                                                <block type="request" id="q4:+%Akd=P.CE3n8].]z">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="false"></mutation>
                                                  <field name="WITH_STATEMENT">FALSE</field>
                                                  <field name="LOG">log</field>
                                                  <value name="URL">
                                                    <shadow type="text">
                                                      <field name="TEXT">http://192.168.1.90/plugin/enclosure/inputs/1?apikey=9DCDC7E5642B40328B5ABED80A253FA4</field>
                                                    </shadow>
                                                    <block type="text_join" id="m/aYp3S+C{]+lefG[SI_">
                                                      <mutation items="4"></mutation>
                                                      <value name="ADD0">
                                                        <block type="text" id="fj(4B=HBFYnDJ]kd;#+N">
                                                          <field name="TEXT">http://192.168.1.90/plugin/enclosure/</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD1">
                                                        <block type="variables_get" id="!QOofk0G$xzD4GD]34R(">
                                                          <field name="VAR" id="9[2L,Dbg?#!WTnVr?N8i">licht aus</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD2">
                                                        <block type="text" id=")c20^R8-LVcsH/,G3itz">
                                                          <field name="TEXT">&amp;apikey=</field>
                                                        </block>
                                                      </value>
                                                      <value name="ADD3">
                                                        <block type="variables_get" id=":/~Hp0``o#CmakmvVOKA">
                                                          <field name="VAR" id="|hc4CR)/AKMW8@9]7l~I">apikey</field>
                                                        </block>
                                                      </value>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </next>
            </block>
          </next>
        </block>
      </xml>
      
      haus-automatisierung 1 Reply Last reply Reply Quote 0
      • haus-automatisierung
        haus-automatisierung Developer Most Active @bishop last edited by

        @bishop Da Du mich hier verlinkt hattest - geht jetzt alles? Oder is noch eine Frage offen? Sieht ja erstmal gut aus

        B 1 Reply Last reply Reply Quote 0
        • B
          bishop @haus-automatisierung last edited by

          @haus-automatisierung

          sorry dafür!
          War etwas zu voreilig. Habe alles soweit hinbekommen, mein Ergebins habe ich ja gepostet.
          Vielen Dank

          haus-automatisierung 1 Reply Last reply Reply Quote 1
          • haus-automatisierung
            haus-automatisierung Developer Most Active @bishop last edited by

            @bishop Perfekt - freut mich, dass es klappt

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

            Support us

            ioBroker
            Community Adapters
            Donate

            731
            Online

            31.6k
            Users

            79.4k
            Topics

            1.3m
            Posts

            blockly
            2
            4
            246
            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