Extracting gps coordinates from abeeway tracker





payload

{"applicationID":"1","applicationName":"cloud","data":"A0i4eAAKEOwyLd8tBfZMpg==","devEUI":"20635f01080016e9","deviceName":"ab8","fCnt":23,"fPort":17,"rxInfo":[{"altitude":0,"latitude":0,"loRaSNR":9,"longitude":0,"mac":"24e124fffef0a78e","name":"24e124fffef0a78e","rssi":-62,"time":"2021-01-26T06:25:31.188652Z"}],"time":"2021-01-26T06:25:31.188652Z","txInfo":{"adr":true,"codeRate":"4/5","dataRate":{"bandwidth":125,"modulation":"LORA","spreadFactor":7},"frequency":865402500}}

flow

[{"id":"959d3557.cd9348","type":"tab","label":"Flow 4","disabled":false,"info":""},{"id":"c210c881.13fa48","type":"mqtt in","z":"959d3557.cd9348","name":"","topic":"bachloo.rahul@gmail.com/test","qos":"0","datatype":"auto","broker":"c374bf02.4cc37","x":160,"y":60,"wires":[["5ed9595c.6c3da8"]]},{"id":"ad901abe.c4e568","type":"debug","z":"959d3557.cd9348","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":450,"y":220,"wires":[]},{"id":"5ed9595c.6c3da8","type":"function","z":"959d3557.cd9348","name":"","func":"var t=JSON.parse(msg.payload);\nmsg.payload=t.data;\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":260,"y":120,"wires":[["608edfd5.d8e4c"]]},{"id":"608edfd5.d8e4c","type":"base64","z":"959d3557.cd9348","name":"","action":"","property":"payload","x":430,"y":120,"wires":[["2ef05839.acaba8"]]},{"id":"2ef05839.acaba8","type":"buffer-parser","z":"959d3557.cd9348","name":"","data":"payload.data","dataType":"msg","specification":"spec","specificationType":"ui","items":[{"type":"byte","name":"lat","offset":6,"length":3,"offsetbit":0,"scale":"1","mask":""},{"type":"byte","name":"lon","offset":9,"length":3,"offsetbit":0,"scale":"1","mask":""}],"swap1":"","swap2":"","swap3":"","swap1Type":"swap","swap2Type":"swap","swap3Type":"swap","msgProperty":"payload.data","msgPropertyType":"str","resultType":"keyvalue","resultTypeType":"output","multipleResult":false,"fanOutMultipleResult":false,"setTopic":true,"outputs":1,"x":500,"y":160,"wires":[["ad901abe.c4e568"]]},{"id":"c374bf02.4cc37","type":"mqtt-broker","name":"local","broker":"maqiatto.com","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

Abeeway Micro Tracker_Reference_Guide_FW1.9_0.5.pdf (1.4 MB)

Use a debug - what comes out of the base64 node?

the error about data not being an array or buffer is a huge clue!

1 Like


yes steve now able to see latitude and longitude in terms of array of object.

Thanks for guidance steve now we are able to see latitude and longitude.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.