Skip to content
/ gpsd Public

A gps daemon with a gRPC API, can also map match against a local OSRM

Notifications You must be signed in to change notification settings

akhenakh/gpsd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gpsd

A gps daemon with a gRPC API

Used for my own car system project see this blogpost

Usage

Usage of ./cmd/gpsd/gpsd:
  -adjustTime
        adjust time from GPS
  -debug
        enable debug
  -device string
        Device path (default "/dev/ttyACM0")
  -fakeCount int
        how many fake NMEA lines per sequences (default 3)
  -fakePath string
        fake NMEA data file for debug
  -grpcPort int
        grpc port to listen (default 9402)
  -logNMEA
        log all NMEA output in current directory
  -osmrAddr string
        OSRM API address (default "http://localhost:5000")
  -speed int
        Speed in bauds (default 38400)
  -timeout duration
        Timeout in second (default 4s)

API

A gRPC API is exposed for a client to retrieve the positions updates:

rpc LivePosition(google.protobuf.Empty) returns (stream Position);

Look in cmd/gpsc for an example client.

Notes

You need some privileges to use adjustTime, on Linux use root user or sudo setcap cap_sys_time+ep /path/for/gpsd.

About

A gps daemon with a gRPC API, can also map match against a local OSRM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages