Skip to content

al42and/gps-web-tracker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPS web-tracker for many devices

  • Simple.
  • Based on socket.io and Yandex maps.
  • No database, no jquery. Js script minified and gzipped is only 16 Kb.
  • Server accepts json messages through tcp like {id:1, lat:10, lng:20}. For devices to send these messages you can use translator server.

Installation

  • Clone repository to your server.
  • cp browser/config.example.js browser/config.js; paste your Yandex.Maps API key there and adjust serverUrl and browserPort. For local development, set them to http://localhost and 8020.
  • cp server/config.example.json server/config.json; don't edit it.
  • docker-compose build && docker-compose up.
  • Open http://localhost:8020 in your browser and rejoice.

How does it work

                   {id:1,lat:20,lng:30}                          {id:1,lat:20,lng:30}
Translator server ---------------------> GPS web-tracker server ---------------------> Browser
                      JSON over TCP                                    socket.io

What is translator server?

Cause each tracker device has its unique protocol to send gps information, there should be a translator server to decode messages from devices and send it in JSON format. The project is hosted here: http://github.com/vinograd19/gps-devices/

About

gps-web-tracker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.0%
  • TypeScript 13.3%
  • CSS 7.8%
  • HTML 5.7%
  • Dockerfile 1.2%