Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Adapter Paketverfolgung DHL, Briefe, Amazon, DPD,GLS,UPS,17T

    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

    Adapter Paketverfolgung DHL, Briefe, Amazon, DPD,GLS,UPS,17T

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

      Hier der Block

      <block xmlns="https://developers.google.com/blockly/xml" type="on_ext" id="[r[D[:dmo^mZ|:+5T)#2" x="-187" y="-212">
        <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="cd_~w+HXC:oN}GnG$o}T">
            <field name="oid">parcel.0.dhl.briefe.currentAdvice.date</field>
          </shadow>
          <block type="get_value_var" id="wm#OlZ1PZAxoZ`etX5/%">
            <field name="ATTR">val</field>
            <value name="OID">
              <shadow type="text" id="YLc~8|ubcCak2hxLdT|A">
                <field name="TEXT"></field>
              </shadow>
              <block type="text" id="ISBH/I#kRq,5t4EhLd`*">
                <field name="TEXT">parcel.0.dhl.briefe.currentAdvice.image</field>
              </block>
            </value>
          </block>
        </value>
        <statement name="STATEMENT">
          <block type="controls_if" id="Hgq8d#ta/@PPg}^2)kDF">
            <value name="IF0">
              <block type="logic_compare" id="ftq%31z~7+j-uo)_HmE=">
                <field name="OP">NEQ</field>
                <value name="A">
                  <block type="on_source" id="Iy)[C|;c`sKxJs2UEgJ|">
                    <field name="ATTR">state.val</field>
                  </block>
                </value>
                <value name="B">
                  <block type="text" id="1mE|q{-`z[o:-;pkiII7">
                    <field name="TEXT"></field>
                  </block>
                </value>
              </block>
            </value>
            <statement name="DO0">
              <block type="control" id="9wxaA9mjU:S^_GPJ;J^l">
                <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                <field name="OID">0_userdata.0.DHL.Briefe.Brief1</field>
                <field name="WITH_DELAY">FALSE</field>
                <value name="VALUE">
                  <block type="on_source" id="a2wjaWZk.c=dufyY}L4B">
                    <field name="ATTR">state.val</field>
                  </block>
                </value>
              </block>
            </statement>
          </block>
        </statement>
      </block>
      
      1 Reply Last reply Reply Quote 0
      • DJMarc75
        DJMarc75 last edited by

        Oder besser noch, man überprüft per Blockly ob der jeweilige Datenpunkt existiert und befüllt den eigenen dann mit dem Wert von diesem...

        <block xmlns="https://developers.google.com/blockly/xml" type="schedule" id="QmW*Cr={}Zcyn$%hP)4T" x="-262" y="-562">
         <field name="SCHEDULE">* * * * *</field>
         <statement name="STATEMENT">
           <block type="variables_set" id="`g+}1z5+cjdZh!zS{aJS">
             <field name="VAR" id="ZItD3U;@9~^9Agn8O0Tv">Brief1</field>
             <value name="VALUE">
               <block type="selector" id="1|g|$D5TcZ_kO}p$])rU">
                 <field name="TEXT">parcel.0.dhl.briefe.currentAdvice.advices01.image</field>
               </block>
             </value>
             <next>
               <block type="controls_if" id="FWWujk3C?k:$W]|1-=ZS">
                 <mutation elseif="1"></mutation>
                 <value name="IF0">
                   <block type="logic_compare" id="%E2%(0dEZO$QF1aQxf2a">
                     <field name="OP">GT</field>
                     <value name="A">
                       <block type="text_length" id="tK*dqCsHKsN*}`aLY]j=">
                         <value name="VALUE">
                           <shadow type="text" id="{CalDV-nBc-;lpwej9Y|">
                             <field name="TEXT">abc</field>
                           </shadow>
                           <block type="variables_get" id="%C_a$NO)qznz3V1s5xEQ">
                             <field name="VAR" id="ZItD3U;@9~^9Agn8O0Tv">Brief1</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="1$k7,;Cp{CBbv7!~GYup">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO0">
                   <block type="control" id="c8-e_,j)#@(A50Wpg532">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">0_userdata.0.DHL.Briefe.Marc.Brief1</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="get_value_var" id="WW;SgXf}-%$Y[eegy~$c">
                         <field name="ATTR">val</field>
                         <value name="OID">
                           <shadow type="text" id="SmV_qdX7AA0[d#p~Fm(8">
                             <field name="TEXT"></field>
                           </shadow>
                           <block type="text" id="=-L-[OhB|F||p|GVD[z+">
                             <field name="TEXT">parcel.0.dhl.briefe.currentAdvice.advices01.image</field>
                           </block>
                         </value>
                       </block>
                     </value>
                   </block>
                 </statement>
                 <value name="IF1">
                   <block type="logic_compare" id="H08lkyo@fm2=AKD*64]#">
                     <field name="OP">EQ</field>
                     <value name="A">
                       <block type="text_length" id="AQod0EO(Tt-R@XqnvMr|">
                         <value name="VALUE">
                           <shadow type="text">
                             <field name="TEXT">abc</field>
                           </shadow>
                           <block type="variables_get" id="A{1|sK~rmPS0UR;6j0hA">
                             <field name="VAR" id="ZItD3U;@9~^9Agn8O0Tv">Brief1</field>
                           </block>
                         </value>
                       </block>
                     </value>
                     <value name="B">
                       <block type="math_number" id="SrdF$X+Gd}p_cd.lz9xv">
                         <field name="NUM">0</field>
                       </block>
                     </value>
                   </block>
                 </value>
                 <statement name="DO1">
                   <block type="control" id="r^!#rQ=1Yc]Zuob6GhRL">
                     <mutation xmlns="http://www.w3.org/1999/xhtml" delay_input="false"></mutation>
                     <field name="OID">0_userdata.0.DHL.Briefe.Marc.Brief1</field>
                     <field name="WITH_DELAY">FALSE</field>
                     <value name="VALUE">
                       <block type="text" id="YT?THEk?3u3{H||IpK+S">
                         <field name="TEXT"></field>
                       </block>
                     </value>
                   </block>
                 </statement>
               </block>
             </next>
           </block>
         </statement>
        </block>
        

        1 Reply Last reply Reply Quote 0
        • DJMarc75
          DJMarc75 @tombox last edited by

          @tombox said in Test Adapter Paketverfolgung DHL, Amazon, DPD, 17Track:

          @djmarc75 Ich habe mal eine Idee für Telegram in Beitrag #1 geschrieben aber da die Datenpunkte immer wieder gelöscht werden kann es sein das in jedem Interval die nachricht kommt, habe aber derzeit keine briefe zum testen

          Bekomme wenn das Skript ausgeführt wird im Log folgende Fehler:

          javascript.0
          	2022-02-12 06:29:00.048	error	at processImmediate (internal/timers.js:464:21)
          javascript.0
          	2022-02-12 06:29:00.048	error	at Immediate._onImmediate (/opt/iobroker/node_modules/@iobroker/js-controller-adapter/src/lib/adapter/adapter.js:5902:56)
          javascript.0
          	2022-02-12 06:29:00.047	error	at Object.stateChange (/opt/iobroker/node_modules/iobroker.javascript/main.js:530:29)
          javascript.0
          	2022-02-12 06:29:00.047	error	at Object.callback (/opt/iobroker/node_modules/iobroker.javascript/lib/sandbox.js:1082:38)
          javascript.0
          	2022-02-12 06:29:00.046	error	at Object.<anonymous> (script.js.common.DHL.Telegram1:5:5)
          javascript.0
          	2022-02-12 06:29:00.046	error	Error in callback: ReferenceError: fs is not defined
          
          DJMarc75 1 Reply Last reply Reply Quote 0
          • DJMarc75
            DJMarc75 @DJMarc75 last edited by

            @Olli_M
            @tombox
            Habe den Code erweitert in Zeile 1 und 2 ... der Datenpunkt im Skript ist ein eigener welcher per Blockly vom Datenpunkt "parcel.0.dhl.briefe.currentAdvice.advices01" befüllt wird, den also anpassen ...

            // Define the `fs` at the beginning of the script
            const fs = require('fs');
            
            on({id:"0_userdata.0.DHL.Briefe.Marc.Brief1", change: "ne"}, function(obj){
            
                const base64Data = obj.state.val.split("base64,")[1]
            
                fs.writeFile("/tmp/snapshot1.jpg", base64Data, 'base64', function(err) {
            
                  if (err) {
            
                    console.error(err);
            
                  } else {
            
                    sendTo('telegram.0', '/tmp/snapshot1.jpg');
            
                  }
            
                });
            
            });
            

            das Skript selbst lasse ich nur von 0 Uhr bis 6 Uhr laufen, da in diesem Zeitraum die aktuellen Briefankündigungen stattfinden.
            Hoffe dies hilft einigen.

            T 1 Reply Last reply Reply Quote 0
            • T
              tombox @DJMarc75 last edited by

              @djmarc75 Ich habe das skript mal angepasst das es generisch für alle bilder geht und man brauch auch kein zwischen state

              DJMarc75 1 Reply Last reply Reply Quote 2
              • T
                tombox @Flexer last edited by

                @flexer Ich habe ein allgemeines Skript zum Telegram versenden hinzugefügt

                Thomas Braun 1 Reply Last reply Reply Quote 0
                • DJMarc75
                  DJMarc75 @tombox last edited by DJMarc75

                  @tombox said in Test Adapter Paketverfolgung DHL, Amazon, DPD, 17Track:

                  @djmarc75 Ich habe das skript mal angepasst das es generisch für alle bilder geht und man brauch auch kein zwischen state

                  Funktioniert soweit, nur werden zumindest beim Neustart des Skripts immer wieder auch die alten Briefe per Telegram gesendet. Für mich wäre es sinnvoll nur die aktuellen zu bekommen, da die von der Vergangenheit ja eh schon aus dem Briefkasten geholt und die Rechnungen darin erfolgreich ignoriert wurden 😂
                  Ich probier mal im Skript den Ordner zu ändern....

                  Zeile 3

                  on({id:/^parcel\.0\.dhl\.briefe.currentAdvice*image$/, change: "ne"}, async function(obj){
                  
                  1 Reply Last reply Reply Quote 0
                  • sigi234
                    sigi234 Forum Testing Most Active @tombox last edited by

                    @tombox

                    Hallo, kann man es konfigurierbar machen , ich möchte nur Amazon verwenden?

                    Chaot 1 Reply Last reply Reply Quote 0
                    • Chaot
                      Chaot @sigi234 last edited by

                      @sigi234 Geht doch, wenn ich mich nicht irre.
                      Zumindest 17Track kann ich an- und Abschalten wenn ich die Zugangsdaten rausnehme.

                      1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @tombox last edited by

                        @tombox

                        Heute mag Amazon nicht mehr:

                        2022-02-15 19:51:02.640  - info: parcel.0 (106558) starting. Version 0.0.1 (non-npm: TA2k/ioBroker.parcel#efe97452da65037ef43987eba5f1dd37fd4b4bff) in /opt/iobroker/node_modules/iobroker.parcel, node: v16.14.0, js-controller: 4.0.9
                        2022-02-15 19:51:02.723  - info: parcel.0 (106558) Login to DHL
                        2022-02-15 19:51:03.493  - info: parcel.0 (106558) Login to DHL successful
                        2022-02-15 19:51:03.526  - info: parcel.0 (106558) Login to DPD
                        2022-02-15 19:51:05.233  - info: parcel.0 (106558) Login to DPD successful
                        2022-02-15 19:51:05.239  - info: parcel.0 (106558) Login to T17 User
                        2022-02-15 19:51:06.144  - info: parcel.0 (106558) Login to 17T successful
                        2022-02-15 19:51:06.151  - info: parcel.0 (106558) Login to Amazon
                        2022-02-15 19:51:39.755  - error: parcel.0 (106558) TimeoutError: waiting for selector `#ordersContainer` failed: timeout 30000ms exceeded
                        2022-02-15 19:51:39.759  - error: parcel.0 (106558) Amazon login failed. Please check your credentials and login manually
                        

                        Login bei Amazon ist unverändert zu den bisherigen Tagen; Neueingabe ändert nichts an der Meldung.

                        T 1 Reply Last reply Reply Quote 0
                        • T
                          tombox @Thomas Braun last edited by

                          @thomas-braun Irgendwas auffälliges auf deiner Bestellübersicht? Keine Bestellungen? Alles auf deutsch?

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @tombox last edited by

                            @tombox
                            Ich bin's, der eine, der gerade keine Bestellung bei Amazon offen hat. Und auch gestern oder heute nichts geliefert bekommen hat.
                            Also keine Änderungen ersichtlich.

                            wendy2702 T 2 Replies Last reply Reply Quote 0
                            • wendy2702
                              wendy2702 @Thomas Braun last edited by

                              @thomas-braun sagte in Test Adapter Paketverfolgung DHL, Amazon, DPD, 17Track:

                              @tombox
                              Ich bin's, der eine, der gerade keine Bestellung bei Amazon offen hat. Und auch gestern oder heute nichts geliefert bekommen hat.

                              Ne, der bin ich… schon seit Tagen 🙂

                              1 Reply Last reply Reply Quote 0
                              • T
                                tombox @Thomas Braun last edited by

                                @thomas-braun Ich habe mal den selector verändert kannst du mal neuinstallieren und schauen ob der funktioniert

                                Thomas Braun 1 Reply Last reply Reply Quote 0
                                • Thomas Braun
                                  Thomas Braun Most Active @tombox last edited by Thomas Braun

                                  @tombox
                                  Nope:

                                  2022-02-15 20:30:17.153  - info: parcel.0 (107452) starting. Version 0.0.2 (non-npm: TA2k/ioBroker.parcel#ad3587a3ea6d5d80cfe97e27ceff87767057a4a7) in /opt/iobroker/node_modules/iobroker.parcel, node: v16.14.0, js-controller: 4.0.9
                                  2022-02-15 20:30:17.218  - info: parcel.0 (107452) Login to DHL
                                  2022-02-15 20:30:18.043  - info: parcel.0 (107452) Login to DHL successful
                                  2022-02-15 20:30:18.060  - info: parcel.0 (107452) Login to DPD
                                  2022-02-15 20:30:19.415  - warn: parcel.0 (107452) Login to DPD failed
                                  2022-02-15 20:30:19.416  - info: parcel.0 (107452) Login to T17 User
                                  2022-02-15 20:30:20.052  - info: parcel.0 (107452) Login to 17T successful
                                  2022-02-15 20:30:20.061  - info: parcel.0 (107452) Login to Amazon
                                  2022-02-15 20:30:53.800  - error: parcel.0 (107452) TimeoutError: waiting for selector `#yourOrdersContent` failed: timeout 30000ms exceeded
                                  2022-02-15 20:30:53.801  - error: parcel.0 (107452) Amazon login failed. Please check your credentials and login manually
                                  
                                  T 1 Reply Last reply Reply Quote 0
                                  • T
                                    tombox @Thomas Braun last edited by

                                    @thomas-braun Kannst du dir selber mal anschauen was in dem html dom von https://www.amazon.de/gp/css/order-history?ref_=nav_orders_first bei dir drin ist irgendwas mit order?

                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • Thomas Braun
                                      Thomas Braun Most Active @tombox last edited by

                                      @tombox sagte in Test Adapter Paketverfolgung DHL, Briefe, Amazon, DPD, 17T:

                                      was in dem html dom

                                      Wenn ich von der Dachterrasse schaue sehe ich den Kölner Dom. Vom html dom hab ich keine Ahnung.

                                      T 1 Reply Last reply Reply Quote 0
                                      • T
                                        tombox @Thomas Braun last edited by

                                        @thomas-braun Dann bitte den debug log output per nachricht zukommen lassen

                                        Thomas Braun 1 Reply Last reply Reply Quote 0
                                        • Thomas Braun
                                          Thomas Braun Most Active @tombox last edited by

                                          @tombox

                                          Ist das mit dom gemeint?

                                          4e8c0edc-afc6-4663-98a4-83896f105c2a-image.png

                                          T 1 Reply Last reply Reply Quote 0
                                          • T
                                            tombox @kiste01 last edited by

                                            @kiste01 Ich habe mal versuch 2FA für amazon eingebaut du kannst jetzt dein OTP Token aus der 2FA App in den Einstellungen eingeben

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            793
                                            Online

                                            31.7k
                                            Users

                                            79.9k
                                            Topics

                                            1.3m
                                            Posts

                                            17track amazon briefe dhl dpd gls ups
                                            122
                                            1534
                                            460706
                                            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