Skip to content

Latest commit

 

History

History
 
 

gps2val

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

GPS Feeder

consumes gpsd as datasource and pushes location to kuksa.val server. The gpsd_feeder.ini contains kuksa.val and gpsd configuration.

Before starting the gps feeder, you need start kuksa.val and gpsd:

<path to kuksa.val>/kuksa.val

gpsd -S <gpsd port> -N <gps device>

If you do not have a gps device, you can use your cellphone to forward gps data to gpsd. For example gpsd-forward is an open source android app. You can start gpsd with the following command to receive data from the app:

gpsd -N udp://0.0.0.0:29998

Install dependencies and execution

pip install -r requirements.txt
python gpsd_feeder.py

Using docker

You can also use docker to execute the feeder platform independently. To build a docker image:

docker build -t gpsd_feeder .

You can also download docker images from the release page.

To run:

docker run -it -p 29998:29998/udp -v $PWD/config:/config gpsd_feeder

Test with gpsfake

You can also use gpsfake to playback a gps logs in e.g. nmea format. To install gpsfake, follow the command in this link. After installation, run the following command to simulate a gps device as datasource:

gpsfake -P 2947 simplelog_example.nmea

Note: You need to use the gpsfake with the same version like the installed gpsd.

There are several tools for generating nmea log files: