[
{
"id": "57f4c65d44798663",
"type": "tab",
"label": "流程 2",
"disabled": false,
"info": "",
"env": []
},
{
"id": "9be7bcbe.6cb7f8",
"type": "http request",
"z": "57f4c65d44798663",
"name": "",
"method": "POST",
"ret": "txt",
"paytoqs": "ignore",
"url": "",
"tls": "",
"persist": true,
"proxy": "",
"insecureHTTPParser": false,
"authType": "",
"senderr": false,
"headers": [],
"x": 970,
"y": 500,
"wires": [
[
"593035b7536799e3"
]
]
},
{
"id": "593035b7536799e3",
"type": "debug",
"z": "57f4c65d44798663",
"name": "debug 107",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "true",
"targetType": "full",
"statusVal": "",
"statusType": "auto",
"x": 1130,
"y": 500,
"wires": []
},
{
"id": "f9a67820.19d028",
"type": "change",
"z": "57f4c65d44798663",
"name": "填入数据",
"rules": [
{
"t": "set",
"p": "url",
"pt": "msg",
"to": "http://www.n54lnas.cn:8082/?id=TRACKID&lat=LATITUDE&lon=LONGITUDE×tamp=TIMENOW",
"tot": "str"
},
{
"t": "change",
"p": "url",
"pt": "msg",
"from": "TRACKID",
"fromt": "str",
"to": "445818898",
"tot": "str"
},
{
"t": "change",
"p": "url",
"pt": "msg",
"from": "LATITUDE",
"fromt": "str",
"to": "latitude",
"tot": "msg"
},
{
"t": "change",
"p": "url",
"pt": "msg",
"from": "LONGITUDE",
"fromt": "str",
"to": "longitude",
"tot": "msg"
},
{
"t": "change",
"p": "url",
"pt": "msg",
"from": "TIMENOW",
"fromt": "str",
"to": "timenow",
"tot": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 830,
"y": 500,
"wires": [
[
"9be7bcbe.6cb7f8"
]
]
},
{
"id": "75d78712495edf49",
"type": "moment",
"z": "57f4c65d44798663",
"name": "",
"topic": "",
"input": "payload",
"inputType": "msg",
"inTz": "Asia/Shanghai",
"adjAmount": "0",
"adjType": "hours",
"adjDir": "add",
"format": "",
"locale": "C",
"output": "timenow",
"outputType": "msg",
"outTz": "Asia/Shanghai",
"x": 640,
"y": 500,
"wires": [
[
"f9a67820.19d028"
]
]
},
{
"id": "bd4f233db312e59b",
"type": "mqtt in",
"z": "57f4c65d44798663",
"name": "",
"topic": "/location/Trke",
"qos": "0",
"datatype": "auto-detect",
"broker": "b5800da4.cbd02",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 250,
"y": 500,
"wires": [
[
"f9b935342df47c70"
]
]
},
{
"id": "f9b935342df47c70",
"type": "change",
"z": "57f4c65d44798663",
"name": "gps数据整理",
"rules": [
{
"t": "move",
"p": "payload.longitude",
"pt": "msg",
"to": "longitude",
"tot": "msg"
},
{
"t": "move",
"p": "payload.latitude",
"pt": "msg",
"to": "latitude",
"tot": "msg"
},
{
"t": "delete",
"p": "payload",
"pt": "msg"
},
{
"t": "delete",
"p": "topic",
"pt": "msg"
},
{
"t": "delete",
"p": "qos",
"pt": "msg"
},
{
"t": "delete",
"p": "retain",
"pt": "msg"
},
{
"t": "delete",
"p": "_msgid",
"pt": "msg"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 440,
"y": 500,
"wires": [
[
"75d78712495edf49"
]
]
},
{
"id": "b5800da4.cbd02",
"type": "mqtt-broker",
"name": "mqtt",
"broker": "10.10.10.20",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]