gps-station is a project that is essentially a TCP server, its purpose is to let GPS devices with various protocols connect to it, process their data and send them to backend for storage and further processing.
- H02
- ST-901 (SinoTrack)
NOTE: those are devices that
gps-station
has been tested on, ideally it should work on every device that uses any one of the protocols listed in Supported Protocols section. If you know for a fact that it works with a particular device and it is not listed here, please make a pull request with updated device list.
To run gps-station
you need:
- Docker installed and running
- To be in the directory of this package
- Build
gps-station
image:docker build -t gps_station .
- Run the built image:
docker run --name gps_station -p 8090:8090/tcp --mount type=bind,source=$(pwd)/logs/,destination=/gps-station/logs/ --env BACKEND_URL=http://localhost:8000/add-location/ --env GPS_STATION_PORT=8090 gps_station
- Make sure port that you specified in
GPS_STATION_PORT
environment variable in previous step is open (I use this tool whilegps-station
is running)
NOTE: don't forget to replace
BACKEND_URL
environment variable value in step 2 with your own