Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. PAJ GPS abfragen

    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

    PAJ GPS abfragen

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

      @negalein

      Also Bearer/Token-authentication ist eigentlich gar nicht so schwierig
      und kann mit einem aktuellen node sogar von nicht JS-Kennern erstellt werden.

      Beim Authentifizieren übergibt man dem Service zunächst seine Daten.
      Das kann entweder ID+Passwort oder auch ein API-Token sein.
      Bei PAJ gibt es nur ein einziges Feld, also geh ich mal von einem API-Token aus.

      Wenn man das abgeschickt hat, erhält man vom Server ein sogenanntes Bearer/Session-Token zurück, das meist nur eine gewisse Zeit lang gilt (meist mehrere Minuten), manchmal steht die Zeit in der Anwort auch mit drin.

      Dieses Token muss man für alle nachfolgenden Daten-Abfragen im header mit angeben "Bearer: 0123abd"
      das war es schon.

      Wie ein Anfänger das mit einer Swagger-Seite machen kann:

      über die swagger seite kann man dann jeweils die login abfrage und die datenabfrage machen,
      sich über die web developer tools des browsers die anfrage direkt als node js fetch befehl kopieren.
      dann ein wenig code um den token aus der ersten anfrage zu extrahieren und dann in die nachfolgenden datenabfragen einzufügen, fertig

      1 Reply Last reply Reply Quote 0
      • Rene55
        Rene55 @Negalein last edited by

        @negalein Darf ich mal fragen, wie der Stand ist? Was kannst du alles auslesen? Ich habe auch einen GPS-Tracker im Auto und bin deshalb daran interessiert.

        mickym 1 Reply Last reply Reply Quote 0
        • mickym
          mickym Most Active @Rene55 last edited by mickym

          @rene55 sagte in PAJ GPS abfragen:

          @negalein Darf ich mal fragen, wie der Stand ist? Was kannst du alles auslesen? Ich habe auch einen GPS-Tracker im Auto und bin deshalb daran interessiert.

          Tja wenn man bereit ist, sich auf das beste grafische Entwicklertool einzulassen, dann geht das.

          Die API wurde ja oben verlinkt - und das kann man alles auslesen.

          Rene55 1 Reply Last reply Reply Quote 0
          • Rene55
            Rene55 @mickym last edited by Rene55

            @mickym Ich weiß ja, dass du der absolute Node-Red-Fan bist. Das ist auch gut so. Für mich habe ich das auch mal kurz versucht - und auch wieder aufgegeben. Ich mach halt mehr mit javascript.
            Ich hab auch mitgelesen, dass du einen Crash-Kurs gegeben hast. Ich wollte aktuell nur wissen, was @Negalein bisher schon auslesen kann.

            Negalein 1 Reply Last reply Reply Quote 0
            • Negalein
              Negalein Global Moderator @Rene55 last edited by

              @rene55 sagte in PAJ GPS abfragen:

              was @Negalein bisher schon auslesen kann.

              dies sind für mich die wichtigsten Daten.

              92d4a911-6841-45fd-b702-de2e1af54132-image.png

              Rene55 1 Reply Last reply Reply Quote 0
              • Rene55
                Rene55 @Negalein last edited by

                @negalein Danke für die Rückmeldung. In lat/lng stehen dann die Koordinaten drin. Wie oft rufst du die ab? Ich habe auch Geofences definiert. Gibt es davon auch Meldungen (verlassen/betreten) ?

                Negalein 1 Reply Last reply Reply Quote 0
                • Negalein
                  Negalein Global Moderator @Rene55 last edited by

                  @rene55 sagte in PAJ GPS abfragen:

                  In lat/lng stehen dann die Koordinaten drin.

                  Ja

                  Wie oft rufst du die ab?

                  alle 10 Minuten

                  Ich habe auch Geofences definiert. Gibt es davon auch Meldungen (verlassen/betreten) ?

                  hab keine eingerichtet.
                  Aber ja, müsste gehen.
                  34b53614-f2a4-4fe2-b817-10cd256a45a5-image.png

                  Rene55 1 Reply Last reply Reply Quote 0
                  • Rene55
                    Rene55 @Negalein last edited by

                    @negalein Mercy, dann bastel ich in den nächsten Tagen mal weiter. Müsste ich doch auch hinbekommen, auch wenn es @Mickey etwas schmerzt, dass ich das mit js versuche.

                    mickym 1 Reply Last reply Reply Quote 0
                    • mickym
                      mickym Most Active @Rene55 last edited by

                      @rene55 Ich will doch niemand zum Glück zwingen, auch wenn Du in NodeRed genauso viel JavaScript programmieren kannst (was natürlich nicht nötig ist) und es sogar noch einfacher ist externe Bibliotheken einzubinden. 😉 - Also viel Spaß und ein schönes Wochenende.

                      Rene55 1 Reply Last reply Reply Quote 0
                      • Rene55
                        Rene55 @mickym last edited by

                        @mickym Auch dir Danke und schönes WE.

                        1 Reply Last reply Reply Quote 0
                        • D
                          docsnyder7 last edited by

                          Hallo zusammen.... ich würde mich hier mal anhängen mit der Frage, ob hier eine Lösung für Blockly gefunden wurde, oder wurde das ganze in JS bzw NR umgesetzt?

                          Rene55 Negalein 2 Replies Last reply Reply Quote 0
                          • Rene55
                            Rene55 @docsnyder7 last edited by

                            @docsnyder7 Ich hab mich mal daran versucht, weiß aber noch nicht, was wirklich gebraucht wird und wie ich das darstellen soll. Dann könnte es evtl. dazu einen Adapter geben.

                            1 Reply Last reply Reply Quote 0
                            • D
                              docsnyder7 last edited by

                              @rene55
                              mein Wissen zu Blockly und Scripten steht halt immernoch ziemlich am Anfang... die POST Anfrage mit user und PW klappt.. aber weiter komme ich nicht.. muss ich evt eine 2 GET Anfrage stellen mit dem refresh token und dann eine dritte GET Anfrage für die entsprechenden Daten?

                              1 Reply Last reply Reply Quote 0
                              • Negalein
                                Negalein Global Moderator @docsnyder7 last edited by

                                @docsnyder7

                                bei mir ist es NR geworden.

                                Ich frag diese Punkte ab.

                                2539e4f2-605e-4d14-819b-067d5d22f64c-image.png

                                1 Reply Last reply Reply Quote 0
                                • D
                                  docsnyder7 last edited by

                                  @negalein
                                  das hab ich befürchtet 😖
                                  ist der Ablauf eines NR flows irgendwie auch mit Blockly darstellbar?
                                  ist es möglich deinen Flow mal anzuschauen, ob es sich lohnt auch noch mit NR zu beschäftigen?

                                  Negalein 2 Replies Last reply Reply Quote 0
                                  • Negalein
                                    Negalein Global Moderator @docsnyder7 last edited by

                                    @docsnyder7 sagte in PAJ GPS abfragen:

                                    ist es möglich deinen Flow mal anzuschauen, ob es sich lohnt auch noch mit NR zu beschäftigen?

                                    a0f5897e-a7f1-4a6c-96dd-ba3f8e4c4187-image.png

                                    ich schick dir später einen Export ohne User & PWD

                                    D 1 Reply Last reply Reply Quote 1
                                    • Negalein
                                      Negalein Global Moderator @docsnyder7 last edited by

                                      @docsnyder7

                                      hier der Export.

                                      Flow ist mit viel Hilfe von @mickym entstanden!

                                      [
                                          {
                                              "id": "366db1589150b476",
                                              "type": "tab",
                                              "label": "Flow 3",
                                              "disabled": false,
                                              "info": "",
                                              "env": []
                                          },
                                          {
                                              "id": "4af79641cec29f14",
                                              "type": "inject",
                                              "z": "366db1589150b476",
                                              "name": "Email&PWD",
                                              "props": [
                                                  {
                                                      "p": "Mail",
                                                      "v": "sepp@hias.at",
                                                      "vt": "str"
                                                  },
                                                  {
                                                      "p": "PWD",
                                                      "v": "1234567890",
                                                      "vt": "str"
                                                  }
                                              ],
                                              "repeat": "600",
                                              "crontab": "",
                                              "once": false,
                                              "onceDelay": 0.1,
                                              "topic": "",
                                              "x": 340,
                                              "y": 260,
                                              "wires": [
                                                  [
                                                      "6e95e64b52aa81f8",
                                                      "bb6857e51dcfdc56"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "6e95e64b52aa81f8",
                                              "type": "http request",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "method": "POST",
                                              "ret": "obj",
                                              "paytoqs": "ignore",
                                              "url": "https://connect.paj-gps.de/api/v1/login?email={{{Mail}}}&password={{{PWD}}}",
                                              "tls": "",
                                              "persist": false,
                                              "proxy": "",
                                              "insecureHTTPParser": false,
                                              "authType": "",
                                              "senderr": false,
                                              "headers": [],
                                              "x": 550,
                                              "y": 260,
                                              "wires": [
                                                  [
                                                      "e3e033c87d8fca1f",
                                                      "9acd405710b08de0"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "e3e033c87d8fca1f",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "Payload",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 680,
                                              "y": 180,
                                              "wires": []
                                          },
                                          {
                                              "id": "bb6857e51dcfdc56",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "gesamtes Nachrichtenobjekt",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "true",
                                              "targetType": "full",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 740,
                                              "y": 140,
                                              "wires": []
                                          },
                                          {
                                              "id": "9acd405710b08de0",
                                              "type": "switch",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "property": "payload",
                                              "propertyType": "msg",
                                              "rules": [
                                                  {
                                                      "t": "hask",
                                                      "v": "error",
                                                      "vt": "str"
                                                  },
                                                  {
                                                      "t": "hask",
                                                      "v": "success",
                                                      "vt": "str"
                                                  }
                                              ],
                                              "checkall": "true",
                                              "repair": false,
                                              "outputs": 2,
                                              "x": 710,
                                              "y": 260,
                                              "wires": [
                                                  [
                                                      "9652e333456b6a4f"
                                                  ],
                                                  [
                                                      "2a7dd8193730e3b7",
                                                      "95f3d838df6bcff5"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "9652e333456b6a4f",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "error",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 870,
                                              "y": 220,
                                              "wires": []
                                          },
                                          {
                                              "id": "2a7dd8193730e3b7",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "success",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 880,
                                              "y": 300,
                                              "wires": []
                                          },
                                          {
                                              "id": "95f3d838df6bcff5",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "auth",
                                                      "pt": "msg",
                                                      "to": "\"Bearer \" & payload.success.token",
                                                      "tot": "jsonata"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 900,
                                              "y": 260,
                                              "wires": [
                                                  [
                                                      "4c55ec77e51d5a33",
                                                      "ecc0fbbf0b356e1b",
                                                      "9bc106721918a80e"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "4c55ec77e51d5a33",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "auth",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "auth",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 1070,
                                              "y": 220,
                                              "wires": []
                                          },
                                          {
                                              "id": "ecc0fbbf0b356e1b",
                                              "type": "http request",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "method": "GET",
                                              "ret": "obj",
                                              "paytoqs": "ignore",
                                              "url": "https://connect.paj-gps.de/api/v1/trackerdata/1334450/last_points?lastPoints=1&gps=1&wifi=0",
                                              "tls": "",
                                              "persist": false,
                                              "proxy": "",
                                              "insecureHTTPParser": false,
                                              "authType": "",
                                              "senderr": false,
                                              "headers": [
                                                  {
                                                      "keyType": "Authorization",
                                                      "keyValue": "",
                                                      "valueType": "msg",
                                                      "valueValue": "auth"
                                                  }
                                              ],
                                              "x": 1090,
                                              "y": 260,
                                              "wires": [
                                                  [
                                                      "577e5ae210d71b46",
                                                      "a56964476f0d3e19",
                                                      "66d80557b43b0625",
                                                      "b65946cd8be98aa5",
                                                      "42b564f9743279db"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "577e5ae210d71b46",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "Trackdata",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 1260,
                                              "y": 180,
                                              "wires": []
                                          },
                                          {
                                              "id": "a56964476f0d3e19",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "lat",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.success.0.lat",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1250,
                                              "y": 220,
                                              "wires": [
                                                  [
                                                      "3361ed214f34bdd6",
                                                      "685d70378964b87d"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "66d80557b43b0625",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "lng",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.success.0.lng",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1250,
                                              "y": 260,
                                              "wires": [
                                                  [
                                                      "3680e11dceefba27"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "b65946cd8be98aa5",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "dateunix",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.success.0.dateunix",
                                                      "tot": "msg"
                                                  },
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload * 1000",
                                                      "tot": "jsonata"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1260,
                                              "y": 300,
                                              "wires": [
                                                  [
                                                      "2af2ee756a5560f3",
                                                      "ce20d2958abe4093"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "42b564f9743279db",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "battery",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.success.0.battery",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1250,
                                              "y": 340,
                                              "wires": [
                                                  [
                                                      "2630d566e7c3a9a6"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "3361ed214f34bdd6",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "lat",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 1450,
                                              "y": 140,
                                              "wires": []
                                          },
                                          {
                                              "id": "2af2ee756a5560f3",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "dateunix",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 1460,
                                              "y": 180,
                                              "wires": []
                                          },
                                          {
                                              "id": "ce20d2958abe4093",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.date",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1500,
                                              "y": 300,
                                              "wires": []
                                          },
                                          {
                                              "id": "685d70378964b87d",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.lat",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1500,
                                              "y": 220,
                                              "wires": []
                                          },
                                          {
                                              "id": "3680e11dceefba27",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.lng",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1500,
                                              "y": 260,
                                              "wires": []
                                          },
                                          {
                                              "id": "2630d566e7c3a9a6",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.battery",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "%",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1510,
                                              "y": 340,
                                              "wires": []
                                          },
                                          {
                                              "id": "d2aa4b5c6be175a6",
                                              "type": "ioBroker in",
                                              "z": "366db1589150b476",
                                              "name": "abfrage",
                                              "attrname": "payload",
                                              "topic": "0_userdata.0.PAJ.abfrage",
                                              "payloadType": "value",
                                              "onlyack": "",
                                              "func": "all",
                                              "gap": "",
                                              "fireOnStart": "false",
                                              "outFormat": "MQTT",
                                              "x": 170,
                                              "y": 320,
                                              "wires": [
                                                  [
                                                      "abf2b2c627ef6415",
                                                      "3810a8cc1ec74a9a"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "abf2b2c627ef6415",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "Mail & PWD",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "Mail",
                                                      "pt": "msg",
                                                      "to": "sepp@hias.at",
                                                      "tot": "str"
                                                  },
                                                  {
                                                      "t": "set",
                                                      "p": "PWD",
                                                      "pt": "msg",
                                                      "to": "1234567890",
                                                      "tot": "str"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 330,
                                              "y": 320,
                                              "wires": [
                                                  [
                                                      "6e95e64b52aa81f8"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "3810a8cc1ec74a9a",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "debug 1",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 320,
                                              "y": 400,
                                              "wires": []
                                          },
                                          {
                                              "id": "9bc106721918a80e",
                                              "type": "http request",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "method": "GET",
                                              "ret": "obj",
                                              "paytoqs": "ignore",
                                              "url": "https://connect.paj-gps.de/api/v1/notifications/1334450?alertType=5&isRead=0",
                                              "tls": "",
                                              "persist": false,
                                              "proxy": "",
                                              "insecureHTTPParser": false,
                                              "authType": "",
                                              "senderr": false,
                                              "headers": [
                                                  {
                                                      "keyType": "Authorization",
                                                      "keyValue": "",
                                                      "valueType": "msg",
                                                      "valueValue": "auth"
                                                  }
                                              ],
                                              "x": 730,
                                              "y": 500,
                                              "wires": [
                                                  [
                                                      "e4f021335f336159",
                                                      "c103c2ebb50e3ac7"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "e4f021335f336159",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "Trackdata Alert",
                                              "active": true,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 1020,
                                              "y": 380,
                                              "wires": []
                                          },
                                          {
                                              "id": "02d816e5a1278999",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "lat",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.lat",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1510,
                                              "y": 480,
                                              "wires": [
                                                  [
                                                      "073e30f883884017"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "54837ed0201857a8",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "lng",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.lng",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1510,
                                              "y": 520,
                                              "wires": [
                                                  [
                                                      "e20cb0fccb896d62"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "19db7b1877623df5",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "dateunix",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.dateunix",
                                                      "tot": "msg"
                                                  },
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload * 1000",
                                                      "tot": "jsonata"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1520,
                                              "y": 600,
                                              "wires": [
                                                  [
                                                      "575a4bcf6f9ff5a7"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "0ccecb8f8339ab6b",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "speed",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.speed",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1510,
                                              "y": 560,
                                              "wires": [
                                                  [
                                                      "3e0f256c341d3bf6"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "073e30f883884017",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.Alert.lat",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1770,
                                              "y": 480,
                                              "wires": []
                                          },
                                          {
                                              "id": "e20cb0fccb896d62",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.Alert.lng",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1780,
                                              "y": 520,
                                              "wires": []
                                          },
                                          {
                                              "id": "575a4bcf6f9ff5a7",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.Alert.date",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1780,
                                              "y": 600,
                                              "wires": []
                                          },
                                          {
                                              "id": "3e0f256c341d3bf6",
                                              "type": "ioBroker out",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "topic": "0_userdata.0.PAJ.Alert.speed",
                                              "ack": "true",
                                              "autoCreate": "true",
                                              "stateName": "",
                                              "role": "",
                                              "payloadType": "",
                                              "readonly": "false",
                                              "stateUnit": "",
                                              "stateMin": "",
                                              "stateMax": "",
                                              "x": 1790,
                                              "y": 560,
                                              "wires": []
                                          },
                                          {
                                              "id": "c103c2ebb50e3ac7",
                                              "type": "switch",
                                              "z": "366db1589150b476",
                                              "name": "Nur wenn Records vorhanden sind",
                                              "property": "payload.number_of_records",
                                              "propertyType": "msg",
                                              "rules": [
                                                  {
                                                      "t": "gt",
                                                      "v": "0",
                                                      "vt": "num"
                                                  }
                                              ],
                                              "checkall": "true",
                                              "repair": false,
                                              "outputs": 1,
                                              "x": 980,
                                              "y": 500,
                                              "wires": [
                                                  [
                                                      "91f9c6c2e858c0ef"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "9a503778897afe95",
                                              "type": "debug",
                                              "z": "366db1589150b476",
                                              "name": "Ausgabe aus HTTP Request",
                                              "active": false,
                                              "tosidebar": true,
                                              "console": false,
                                              "tostatus": false,
                                              "complete": "payload",
                                              "targetType": "msg",
                                              "statusVal": "",
                                              "statusType": "auto",
                                              "x": 1320,
                                              "y": 380,
                                              "wires": []
                                          },
                                          {
                                              "id": "5737d0ece7c9cec4",
                                              "type": "split",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "splt": "\\n",
                                              "spltType": "str",
                                              "arraySplt": 1,
                                              "arraySpltType": "len",
                                              "stream": false,
                                              "addname": "",
                                              "x": 1210,
                                              "y": 520,
                                              "wires": [
                                                  [
                                                      "9a503778897afe95",
                                                      "02d816e5a1278999",
                                                      "54837ed0201857a8",
                                                      "0ccecb8f8339ab6b",
                                                      "19db7b1877623df5"
                                                  ]
                                              ]
                                          },
                                          {
                                              "id": "91f9c6c2e858c0ef",
                                              "type": "change",
                                              "z": "366db1589150b476",
                                              "name": "",
                                              "rules": [
                                                  {
                                                      "t": "set",
                                                      "p": "payload",
                                                      "pt": "msg",
                                                      "to": "payload.success",
                                                      "tot": "msg"
                                                  }
                                              ],
                                              "action": "",
                                              "property": "",
                                              "from": "",
                                              "to": "",
                                              "reg": false,
                                              "x": 1250,
                                              "y": 480,
                                              "wires": [
                                                  [
                                                      "5737d0ece7c9cec4"
                                                  ]
                                              ]
                                          }
                                      ]
                                      

                                      Yellowball 1 Reply Last reply Reply Quote 1
                                      • D
                                        docsnyder7 @Negalein last edited by docsnyder7

                                        @negalein
                                        Super cool…
                                        Hab grad den Thread über die Entstehung durchgelesen…und hab gefühlt 1,41% verstanden… auf den ersten Blick für mich irre komplex und wirr… aber ich fürchte dass hier ein blockly nicht mehr weiterführt…

                                        das/der flow gibt schlussendlich die Daten an DP´s im IObroker?

                                        Negalein 1 Reply Last reply Reply Quote 0
                                        • Negalein
                                          Negalein Global Moderator @docsnyder7 last edited by

                                          @docsnyder7 sagte in PAJ GPS abfragen:

                                          und hab gefühlt 1,41% verstanden… auf den ersten Blick für mich irre komplex und wirr

                                          so ging es mir auch. 😁
                                          Aber @mickym hat das super erklärt.

                                          das/der flow gibt schlussendlich die Daten an DP´s im IObroker?

                                          genau, der Flow speichert dann die Werte in DPe

                                          D 1 Reply Last reply Reply Quote 1
                                          • Yellowball
                                            Yellowball @Negalein last edited by Yellowball

                                            @negalein Ich habe den Flow importiert und die Credentials angepasst, aber es werden leider keine Objekte erstellt. In den Nodes ist es ja vorher schon richtig konfiguriert gewesen.

                                            Ich habe anschließend die Objekte manuell erstellt aber es wird nichts aktualisiert.

                                            Help!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            882
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            127
                                            6762
                                            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