[
{
"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"
]
]
}
]