I have the following coordinates which i want to plot periodically one after the other on world maps at an interval of 10 seconds one after the other. At a time only one coordinate should show on the map.
Any help would be appreciated.
3.131642793965682, 101.65111593162418
3.131537809594334, 101.65140507041673
3.1312944366930315, 101.65145764110629
3.1310987839274307, 101.65139312253274
3.1308816570350233, 101.65122346258008
3.1307528124841864, 101.6510800879722
3.1306716881228427, 101.6510251277055
3.130695548227894, 101.65104902347346
3.1306096518471627, 101.65091998632637
3.1305500015786314, 101.65073359933612
3.130492737317644, 101.6506380162642
3.130485579284798, 101.65056632896027
3.1304092269314165, 101.65044446054357
3.130320944515891, 101.65047074588834
3.1303304885611785, 101.6505137582707
Following is my flow. I want to simulate a person walking along the coordinates mentioned in the Original post.
If you save those to a simple text file then you could do something like this (you will need to change the file node to point to your file location)
[{"id":"ab58e4265487e05b","type":"inject","z":"64eed394.c7935c","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":120,"y":640,"wires":[["3a6070de389e51a1"]]},{"id":"3a6070de389e51a1","type":"file in","z":"64eed394.c7935c","name":"","filename":"/tmp/points.txt","format":"lines","chunk":false,"sendError":false,"encoding":"none","x":300,"y":640,"wires":[["5427f59508fd1d6a"]]},{"id":"5427f59508fd1d6a","type":"delay","z":"64eed394.c7935c","name":"","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"10","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":500,"y":640,"wires":[["3e5be3673b1aa360"]]},{"id":"4d8c7195b67d9b07","type":"debug","z":"64eed394.c7935c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":870,"y":700,"wires":[]},{"id":"3e5be3673b1aa360","type":"csv","z":"64eed394.c7935c","name":"","sep":",","hdrin":"","hdrout":"none","multi":"one","ret":"\\n","temp":"lat,lon","skip":"0","strings":true,"include_empty_strings":"","include_null_values":"","x":670,"y":640,"wires":[["8a414e7f6f155664"]]},{"id":"8a414e7f6f155664","type":"template","z":"64eed394.c7935c","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{ \"name\":\"Fred\", \"lat\":{{payload.lat}}, \"lon\":{{payload.lon}}, \"icon\":\"fa-male\" }","output":"json","x":800,"y":640,"wires":[["4d8c7195b67d9b07","e3f5f112.39baa"]]}]
Thank you, that seems to do the job
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.