Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. Blockly
    5. IPCam Wget Befehl [gelöst]

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    IPCam Wget Befehl [gelöst]

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

      Hallöchen ich habe Probleme mit dem Wget Befehl, bekomme immer Compile Fehler

      cam.jpg

      SYNO.jpg

      1 Reply Last reply Reply Quote 0
      • Glasfaser
        Glasfaser last edited by Glasfaser

        @idefix01

        Du und deine Screenshot´s .
        Setze den Log in Code Tags </> , dann kann man es besser lesen !!!

        dp2.gif

        Zeige mal dein Script

        I 1 Reply Last reply Reply Quote 0
        • I
          Idefix01 @Glasfaser last edited by Idefix01

          @glasfaser

          sorry wollte das PW aber nicht sichtbar ist

          welches script meinst du, ich habe jetzt nur das Blockly mit dem Exec versucht, da schreibt er schon nicht die Datei

          das komplette Script dafür ist folgendes

          <xml xmlns="https://developers.google.com/blockly/xml">
            <variables>
              <variable id="nQZFTI`Vx%slc@d[00iw">helper</variable>
              <variable type="timeout" id="timeout4">timeout4</variable>
              <variable type="timeout" id="timeout2">timeout2</variable>
              <variable type="timeout" id="timeout3">timeout3</variable>
              <variable id=";MNSQxIJ}/o)bmCP!,xu">result</variable>
              <variable type="timeout" id="timeout">timeout</variable>
            </variables>
            <block type="variables_set" id="RXQ_0dzZh9h=!B%ndc3d" x="-162" y="-87">
              <field name="VAR" id="nQZFTI`Vx%slc@d[00iw">helper</field>
              <value name="VALUE">
                <block type="logic_boolean" id="fU3xS_XnFp!,b-y]yF1!">
                  <field name="BOOL">FALSE</field>
                </block>
              </value>
              <next>
                <block type="on_ext" id="-#M:Rs]6?l(9I#FsBMJk">
                  <mutation xmlns="http://www.w3.org/1999/xhtml" items="1"></mutation>
                  <field name="CONDITION">true</field>
                  <field name="ACK_CONDITION"></field>
                  <value name="OID0">
                    <shadow type="field_oid" id="0rP;QCSQR#y_rL`Sm3*`">
                      <field name="oid">javascript.0.Alarm_Cam_Terrasse</field>
                    </shadow>
                  </value>
                  <statement name="STATEMENT">
                    <block type="controls_if" id="jTnDtM5l#u46p7s4YEKo">
                      <value name="IF0">
                        <block type="logic_negate" id="ev)~E+oQ*;+zBPGT$ci|">
                          <value name="BOOL">
                            <block type="variables_get" id="ykEY}9o0K2wr|KXWeF2{">
                              <field name="VAR" id="nQZFTI`Vx%slc@d[00iw">helper</field>
                            </block>
                          </value>
                        </block>
                      </value>
                      <statement name="DO0">
                        <block type="controls_if" id="hZ`}k^IUG*5#k`Xpjsly">
                          <value name="IF0">
                            <block type="logic_compare" id="NJG)#hAXPv[L+oz=1t]m">
                              <field name="OP">EQ</field>
                              <value name="A">
                                <block type="get_value" id="]mUwf6~uw%G4Jf0_OM,0">
                                  <field name="ATTR">val</field>
                                  <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                </block>
                              </value>
                              <value name="B">
                                <block type="logic_boolean" id="+djhjV]#T?BoaQgI(XT?">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                            </block>
                          </value>
                          <statement name="DO0">
                            <block type="variables_set" id="D1G]0Iv,_$F(|z6#Y__^">
                              <field name="VAR" id="nQZFTI`Vx%slc@d[00iw">helper</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="S/8ehs`StVBBm=AdB4T3">
                                  <field name="BOOL">TRUE</field>
                                </block>
                              </value>
                              <next>
                                <block type="pushover" id="tdK;f9s+e.V|de_K71a+">
                                  <field name="INSTANCE"></field>
                                  <field name="SOUND"></field>
                                  <field name="PRIORITY">0</field>
                                  <field name="LOG"></field>
                                  <value name="MESSAGE">
                                    <shadow type="text" id="@T:ZZ3v0ZM$E,JlM{f]f">
                                      <field name="TEXT">Alarm Bereich Garage</field>
                                    </shadow>
                                  </value>
                                  <next>
                                    <block type="procedures_callnoreturn" id=".]j3$!Fao_sa)Wt;t2na">
                                      <mutation name="Foto senden"></mutation>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </statement>
                      <next>
                        <block type="timeouts_settimeout" id="]o}??DIQY#1Cb@mH2!/G">
                          <field name="NAME">timeout4</field>
                          <field name="DELAY">3000</field>
                          <field name="UNIT">ms</field>
                          <statement name="STATEMENT">
                            <block type="variables_set" id="oW%Dt%Vt52IkBQq!o+^=">
                              <field name="VAR" id="nQZFTI`Vx%slc@d[00iw">helper</field>
                              <value name="VALUE">
                                <block type="logic_boolean" id="EL2X!^xWUVl_afPl9P/Q">
                                  <field name="BOOL">FALSE</field>
                                </block>
                              </value>
                              <next>
                                <block type="controls_if" id="W-M(Sw~Yt]d-}a|!dxZA">
                                  <value name="IF0">
                                    <block type="logic_compare" id="rQ90R}2,K;*5jI1Z;q?y">
                                      <field name="OP">EQ</field>
                                      <value name="A">
                                        <block type="get_value" id="~P5uXY`n_U|`LK=EYe(k">
                                          <field name="ATTR">val</field>
                                          <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                        </block>
                                      </value>
                                      <value name="B">
                                        <block type="logic_boolean" id="Rg*Fm[uG_cbAjhYxmzW4">
                                          <field name="BOOL">TRUE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </value>
                                  <statement name="DO0">
                                    <block type="control" id="-2/5h5,hzC+TYCwu9k6t">
                                      <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                      <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                      <field name="WITH_DELAY">FALSE</field>
                                      <value name="VALUE">
                                        <block type="logic_boolean" id="n:v0k}}^(TI]@b=M-;F5">
                                          <field name="BOOL">FALSE</field>
                                        </block>
                                      </value>
                                    </block>
                                  </statement>
                                </block>
                              </next>
                            </block>
                          </statement>
                        </block>
                      </next>
                    </block>
                  </statement>
                </block>
              </next>
            </block>
            <block type="procedures_defnoreturn" id=".it7FPYX)!K#:BI156_h" x="688" y="38">
              <field name="NAME">Foto senden</field>
              <comment pinned="false" h="80" w="160">Beschreibe diese Funktion …</comment>
              <statement name="STACK">
                <block type="debug" id="xVa+WId1o]7^Bz[`TR(Y">
                  <field name="Severity">log</field>
                  <value name="TEXT">
                    <shadow type="text" id="|kfo~sn|%,C8u69ViR8,">
                      <field name="TEXT">test</field>
                    </shadow>
                  </value>
                  <next>
                    <block type="timeouts_cleartimeout" id="RpY^|@B[ZHYlKZ9zg0!S" disabled="true">
                      <field name="NAME">timeout2</field>
                      <next>
                        <block type="timeouts_settimeout" id="zmR%m:7qSXL=gj{mclSz">
                          <field name="NAME">timeout2</field>
                          <field name="DELAY">100</field>
                          <field name="UNIT">ms</field>
                          <statement name="STATEMENT">
                            <block type="exec" id="jhb,_~)#l?VeG@zTxcJL">
                              <mutation xmlns="http://www.w3.org/1999/xhtml" with_statement="true"></mutation>
                              <field name="WITH_STATEMENT">TRUE</field>
                              <field name="LOG">debug</field>
                              <value name="COMMAND">
                                <shadow type="text" id="F4YX+=L0Rnb;`h48!sc^">
                                  <field name="TEXT">wget --output-document /opt/iobroker/ipcam/alarm.jpg "http://10.1.10.14:80/tmpfs/auto.jpg?usr=Instar&amp;pwd=Terrasse"</field>
                                </shadow>
                              </value>
                              <statement name="STATEMENT">
                                <block type="debug" id="$DmhFB!ix7Zqf(WIb!w)">
                                  <field name="Severity">log</field>
                                  <value name="TEXT">
                                    <shadow type="text" id="!=M-gi{d||KvnM]h6bjB">
                                      <field name="TEXT">test</field>
                                    </shadow>
                                    <block type="variables_get" id="-{cwSJ+Bi{@$+.~U7?TD">
                                      <field name="VAR" id=";MNSQxIJ}/o)bmCP!,xu">result</field>
                                    </block>
                                  </value>
                                </block>
                              </statement>
                            </block>
                          </statement>
                          <next>
                            <block type="timeouts_cleartimeout" id="/wc4X/jye*Ia(5P,hC@I" disabled="true">
                              <field name="NAME">timeout2</field>
                              <next>
                                <block type="timeouts_settimeout" id="(/ZKw;PLTxfo6Xmx~Ay@">
                                  <field name="NAME">timeout3</field>
                                  <field name="DELAY">3</field>
                                  <field name="UNIT">sec</field>
                                  <statement name="STATEMENT">
                                    <block type="telegram" id="uXGT(]trz_c[hJ)Zw?5]">
                                      <field name="INSTANCE">.0</field>
                                      <field name="LOG"></field>
                                      <field name="SILENT">FALSE</field>
                                      <field name="PARSEMODE">default</field>
                                      <value name="MESSAGE">
                                        <shadow type="text" id=",}^Z|O_l!})9x[5JhW:m">
                                          <field name="TEXT">/opt/iobroker/ipcam/alarm.jpg</field>
                                        </shadow>
                                      </value>
                                    </block>
                                  </statement>
                                  <next>
                                    <block type="controls_if" id="[Ms8{X.j#8_+7SJRRj25">
                                      <value name="IF0">
                                        <block type="logic_compare" id="1SV|EktAUsFons|;xjg^">
                                          <field name="OP">EQ</field>
                                          <value name="A">
                                            <block type="get_value" id="UYf$^J:p;`,Y4?]*$#It">
                                              <field name="ATTR">val</field>
                                              <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                            </block>
                                          </value>
                                          <value name="B">
                                            <block type="logic_boolean" id="U@`}`abN!Om04GIA=v-(">
                                              <field name="BOOL">TRUE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </value>
                                      <statement name="DO0">
                                        <block type="control" id="7Uw[6x_]:,n4$mbbah[J">
                                          <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                          <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                          <field name="WITH_DELAY">FALSE</field>
                                          <value name="VALUE">
                                            <block type="logic_boolean" id="=BkCuKTtM5tF4evf=d0]">
                                              <field name="BOOL">FALSE</field>
                                            </block>
                                          </value>
                                        </block>
                                      </statement>
                                      <next>
                                        <block type="timeouts_settimeout" id="~G9n`xXBvF=AAp=uKr)c">
                                          <field name="NAME">timeout</field>
                                          <field name="DELAY">20</field>
                                          <field name="UNIT">sec</field>
                                          <statement name="STATEMENT">
                                            <block type="controls_if" id="5z:YLhzHWw4@2$-3T7;S">
                                              <value name="IF0">
                                                <block type="logic_compare" id="t.5ETkMe!g4rujtLi_rv">
                                                  <field name="OP">EQ</field>
                                                  <value name="A">
                                                    <block type="get_value" id="lO%c2=X8m$iu*?R2nh@s">
                                                      <field name="ATTR">val</field>
                                                      <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                                    </block>
                                                  </value>
                                                  <value name="B">
                                                    <block type="logic_boolean" id="p|u=4v=d/5.2EU+a:,=M">
                                                      <field name="BOOL">TRUE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </value>
                                              <statement name="DO0">
                                                <block type="control" id="!0i+NhqLL/R-]n/VSU^k">
                                                  <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                                                  <field name="OID">javascript.0.Alarm_Cam_Terrasse</field>
                                                  <field name="WITH_DELAY">FALSE</field>
                                                  <value name="VALUE">
                                                    <block type="logic_boolean" id="P2`(+OuK*r2nE**3#,hq">
                                                      <field name="BOOL">FALSE</field>
                                                    </block>
                                                  </value>
                                                </block>
                                              </statement>
                                            </block>
                                          </statement>
                                        </block>
                                      </next>
                                    </block>
                                  </next>
                                </block>
                              </next>
                            </block>
                          </next>
                        </block>
                      </next>
                    </block>
                  </next>
                </block>
              </statement>
            </block>
          </xml>
          
          1 Reply Last reply Reply Quote 0
          • Glasfaser
            Glasfaser last edited by

            @idefix01 sagte in IPCam Wget Befehl:

            sorry wollte das PW aber nicht sichtbar ist

            Das kannst du doch bearbeiten .... dann ein xxxxx xxxx rein .

            I 1 Reply Last reply Reply Quote 0
            • I
              Idefix01 @Glasfaser last edited by

              @glasfaser

              komplette Blockly ist oben drin

              kann es sein das die Schreibberechtigung fehlt?

              I 1 Reply Last reply Reply Quote 0
              • I
                Idefix01 @Idefix01 last edited by

                @Glasfaser

                Danke dir für die Hilfestellung, habe es gefunden, die Berechtigung hat er nicht korrekt genommen gehabt für den Ordner wo die Datei geschrieben wird, Berechtigung war auf 0644 habe diese nun auf 0777 gesetzt und es geht

                I 1 Reply Last reply Reply Quote 0
                • I
                  Idefix01 @Idefix01 last edited by

                  @Glasfaser

                  Jetzt hab ich nur noch Problem das mein Sonoff Adapter gelb bleibt, Benutzer und PW sind beide identisch im Sonoff und MQTT, aber er gibt auch keine Fehlermeldung aus

                  Debug vom Sonoff

                  sonoff.0	2021-04-03 21:05:11.655	debug	(6284) stateChange sonoff.0.info.connection: {"val":"","ack":true,"ts":1617476711651,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1617468444220}
                  sonoff.0	2021-04-03 21:05:11.612	info	(6284) Starting MQTT authenticated server on port 1883
                  sonoff.0	2021-04-03 21:05:11.559	info	(6284) starting. Version 2.4.0 in /opt/iobroker/node_modules/iobroker.sonoff, node: v12.21.0, js-controller: 3.2.16
                  sonoff.0	2021-04-03 21:05:11.145	debug	(6284) statesDB connected
                  sonoff.0	2021-04-03 21:05:11.144	debug	(6284) States connected to redis: 127.0.0.1:9000
                  sonoff.0	2021-04-03 21:05:11.083	debug	(6284) States create User PubSub Client
                  sonoff.0	2021-04-03 21:05:11.082	debug	(6284) States create System PubSub Client
                  sonoff.0	2021-04-03 21:05:11.025	debug	(6284) Redis States: Use Redis connection: 127.0.0.1:9000
                  sonoff.0	2021-04-03 21:05:11.022	debug	(6284) objectDB connected
                  sonoff.0	2021-04-03 21:05:11.014	debug	(6284) Objects connected to redis: 127.0.0.1:9001
                  sonoff.0	2021-04-03 21:05:10.989	debug	(6284) Objects client initialize lua scripts
                  sonoff.0	2021-04-03 21:05:10.983	debug	(6284) Objects create User PubSub Client
                  sonoff.0	2021-04-03 21:05:10.981	debug	(6284) Objects create System PubSub Client
                  sonoff.0	2021-04-03 21:05:10.978	debug	(6284) Objects client ready ... initialize now
                  sonoff.0	2021-04-03 21:05:10.940	debug	(6284) Redis Objects: Use Redis connection: 127.0.0.1:9001
                  host.iobroker	2021-04-03 21:05:10.138	info	instance system.adapter.sonoff.0 started with pid 6284
                  host.iobroker	2021-04-03 21:05:10.026	info	"system.adapter.sonoff.0" enabled
                  host.iobroker	2021-04-03 21:05:09.030	info	instance system.adapter.sonoff.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)
                  host.iobroker	2021-04-03 21:05:08.480	info	stopInstance system.adapter.sonoff.0 send kill signal
                  sonoff.0	2021-04-03 21:05:08.431	info	(2303) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason
                  sonoff.0	2021-04-03 21:05:08.430	info	(2303) terminating
                  sonoff.0	2021-04-03 21:05:08.427	info	(2303) Got terminate signal TERMINATE_YOURSELF
                  host.iobroker	2021-04-03 21:05:08.420	info	stopInstance system.adapter.sonoff.0 (force=false, process=true)
                  host.iobroker	2021-04-03 21:05:08.417	info	"system.adapter.sonoff.0" disabled
                  sonoff.0	2021-04-03 21:05:11.655	debug	(6284) stateChange sonoff.0.info.connection: {"val":"","ack":true,"ts":1617476711651,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1617468444220}
                  sonoff.0	2021-04-03 21:05:11.612	info	(6284) Starting MQTT authenticated server on port 1883
                  sonoff.0	2021-04-03 21:05:11.559	info	(6284) starting. Version 2.4.0 in /opt/iobroker/node_modules/iobroker.sonoff, node: v12.21.0, js-controller: 3.2.16
                  
                  1 Reply Last reply Reply Quote 0
                  • Glasfaser
                    Glasfaser last edited by

                    @idefix01

                    Zeige mal die Sonoff Instanz Einstellungen

                    1 Reply Last reply Reply Quote 0
                    • Glasfaser
                      Glasfaser last edited by Glasfaser

                      @idefix01 sagte in IPCam Wget Befehl:

                      Benutzer und PW sind beide identisch im Sonoff und MQTT

                      Du meinst aber nicht den MQTT Adapter !?

                      I 1 Reply Last reply Reply Quote 0
                      • I
                        Idefix01 @Glasfaser last edited by

                        @glasfaser

                        nein MQTT Adapter läuft und funktioniert auch korrekt nur der Sonoff nicht

                        sonoff.jpg

                        Glasfaser 2 Replies Last reply Reply Quote 0
                        • Glasfaser
                          Glasfaser @Idefix01 last edited by

                          @idefix01 sagte in IPCam Wget Befehl:

                          nein MQTT Adapter läuft

                          Welcher Port ist dort eingestellt

                          1 Reply Last reply Reply Quote 0
                          • Glasfaser
                            Glasfaser @Idefix01 last edited by Glasfaser

                            @idefix01 sagte in IPCam Wget Befehl:

                            @glasfaser

                            sonoff.jpg

                            Stelle mal um auf 0.0.0.0 ( auf alle Hören )

                            und hier die Haken rein :

                            1.JPG

                            I 1 Reply Last reply Reply Quote 0
                            • I
                              Idefix01 @Glasfaser last edited by

                              @glasfaser

                              Port ist 1883

                              so habe es so umgestellt aber ändert sich nichts auch nach neustart weiterhin gelb

                              sonoff.0	2021-04-03 21:17:26.819	debug	(6993) stateChange sonoff.0.info.connection: {"val":"","ack":true,"ts":1617477446813,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1617468444220}
                              sonoff.0	2021-04-03 21:17:26.766	info	(6993) Starting MQTT authenticated server on port 1883
                              sonoff.0	2021-04-03 21:17:26.711	info	(6993) starting. Version 2.4.0 in /opt/iobroker/node_modules/iobroker.sonoff, node: v12.21.0, js-controller: 3.2.16
                              sonoff.0	2021-04-03 21:17:26.355	debug	(6993) statesDB connected
                              sonoff.0	2021-04-03 21:17:26.354	debug	(6993) States connected to redis: 127.0.0.1:9000
                              sonoff.0	2021-04-03 21:17:26.281	debug	(6993) States create User PubSub Client
                              sonoff.0	2021-04-03 21:17:26.280	debug	(6993) States create System PubSub Client
                              sonoff.0	2021-04-03 21:17:26.267	debug	(6993) Redis States: Use Redis connection: 127.0.0.1:9000
                              sonoff.0	2021-04-03 21:17:26.265	debug	(6993) objectDB connected
                              sonoff.0	2021-04-03 21:17:26.257	debug	(6993) Objects connected to redis: 127.0.0.1:9001
                              sonoff.0	2021-04-03 21:17:26.232	debug	(6993) Objects client initialize lua scripts
                              sonoff.0	2021-04-03 21:17:26.226	debug	(6993) Objects create User PubSub Client
                              sonoff.0	2021-04-03 21:17:26.225	debug	(6993) Objects create System PubSub Client
                              sonoff.0	2021-04-03 21:17:26.222	debug	(6993) Objects client ready ... initialize now
                              sonoff.0	2021-04-03 21:17:26.186	debug	(6993) Redis Objects: Use Redis connection: 127.0.0.1:9001
                              host.iobroker	2021-04-03 21:17:25.414	info	instance system.adapter.sonoff.0 started with pid 6993
                              
                              Glasfaser 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @Idefix01 last edited by

                                @idefix01 sagte in IPCam Wget Befehl:

                                Port ist 1883

                                MQTT und SONOFF funktionieren nicht zusammen auf einem Port.

                                Entweder MQTT auf 1883
                                und SONOFF auf 1884

                                I 1 Reply Last reply Reply Quote 0
                                • I
                                  Idefix01 @Glasfaser last edited by

                                  @glasfaser

                                  Danke für die Hilfe habe mein Fehler gefunden, das Stichwort heißt Firewall

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

                                  Support us

                                  ioBroker
                                  Community Adapters
                                  Donate

                                  565
                                  Online

                                  32.0k
                                  Users

                                  80.5k
                                  Topics

                                  1.3m
                                  Posts

                                  blockly
                                  2
                                  15
                                  295
                                  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