Flow helps to get GPS position in Node Red. I used it with Android smaptphone, Traccar Client app and Traccar demoserver. Demoserver provides json data in responce to GET request as http://demo5.traccar.org/api/session?token=Your_token For details visit my blog https://kipiaeng.wordpress.com/2019/04/16/gps-%D1%82%D1%80%D0%B5%D0%BA%D0%B8%D0%BD%D0%B3-android-%D1%81%D0%BC%D0%B0%D1%80%D1%82%D1%84%D0%BE%D0%BD%D0%B0-%D1%81-%D0%BF%D0%BE%D0%BC%D0%BE%D1%89%D1%8C%D1%8E-traccar-%D0%B8-node-red/
-
-
Save greyser83/67c9ccfdde00acbca51c99602cebc008 to your computer and use it in GitHub Desktop.
GPS Tracking with Traccar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"d763b77a.a4e3a8","type":"http request","z":"11a9e76c.e4d6c9","name":"","method":"GET","ret":"obj","paytoqs":false,"url":"http://demo5.traccar.org/api/session?token=your_token","tls":"","proxy":"","authType":"basic","x":390,"y":80,"wires":[["1de5dd9f.4d9022","83485321.7214"]]},{"id":"1de5dd9f.4d9022","type":"debug","z":"11a9e76c.e4d6c9","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":930,"y":80,"wires":[]},{"id":"ef0c06c9.de28a8","type":"inject","z":"11a9e76c.e4d6c9","name":"","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":80,"wires":[["d763b77a.a4e3a8"]]},{"id":"83485321.7214","type":"function","z":"11a9e76c.e4d6c9","name":"Adaptation","func":"var latitude = msg.payload.latitude;\nvar longitude = msg.payload.longitude;\nmsg.payload = {\"name\":\"HOMTOM\", \"lat\":latitude, \"lon\":longitude}; \nreturn msg;","outputs":1,"noerr":0,"x":650,"y":160,"wires":[["c158bb0d.8bbc08","1de5dd9f.4d9022"]]},{"id":"c158bb0d.8bbc08","type":"worldmap","z":"11a9e76c.e4d6c9","name":"","lat":"","lon":"","zoom":"18","layer":"OSM grey","cluster":"","maxage":"","usermenu":"show","layers":"show","panit":"true","panlock":"false","zoomlock":"false","hiderightclick":"false","coords":"deg","path":"/worldmap","x":920,"y":160,"wires":[]}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment