Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

vondraussen/gt06_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo is depricated! Take a look at vondraussen/gt06 and vondraussen/gps_tracker_gateway

GT06 Server

This is a GT06 GPS Tracker server implementation written in javascript. It parses all messages received from the device and creates the response message, if needed. Eventually it will send the received information to an MQTT broker.

So it acts as a server for GT06 trackers and a gateway to MQTT.

Shout out to Anton Holubenko because I've copied the initial version from him. repo/gt06n

Configuration

Run a npm install after you cloned it and start it via node app.js.

You can create a .env file to configure the behavior off the app.

The following environment variables are recognized. If not defined a default will be used.

  • GT06_SERVER_PORT=64459
  • MQTT_ROOT_TOPIC=gt06
  • MQTT_BROKER_URL=localhost
  • MQTT_BROKER_PORT=1883
  • MQTT_BROKER_PROTO=mqtt
  • MQTT_BROKER_CA=/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
  • MQTT_BROKER_USER=user
  • MQTT_BROKER_PASSWD=passwd

MQTT

Messages received on the TCP port will be transmitted via MQTT MQTT_ROOT_TOPIC/IMEI/pos

For example: gt06/123456789012345/pos

About

GT06 GPS Tracker Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published