Mainly built for internal SVV usage. The purpose is to periodically get a collection
of road objects of a certain type that contains a POLYGON
. In this case we are using
that polygon as a "geofence" which we cache / store internally.
All "geofences" that are added, changed or deleted shall be forwarded to a custom AMQP server for further processing.
Simple, yeah?
Help:
$ python client.py --help
configuration file:
$ cat config.yml
# config file
broker_url: amqps://url.to.my.amqp.server.com:5671
sender: send_queue
receiver: recv_queue
ssl_keyfile: certs/my_priv.key
ssl_certfile: certs/my_crt.cert
username: user1
password: VerySecret
verbose: true
# Timeout in seconds. How often to check for new geofences from NVDB
timeout: 300
Run with config file:
$ python client.py -conf ./config.yml
Python ofcourse ;)
- First create your config file:
config.yml
- Then build the docker container
$ sudo docker-compose build
- Start the container (in background - if not, skip the '-d')
$ sudo docker-compose up -d
- Inspect the logs by running
$ sudo docker-compose logs