]> www.average.org Git - loctrkd.git/blobdiff - debian/gps303.conf
Multiprotocol support in zmq messages and storage
[loctrkd.git] / debian / gps303.conf
index 3b2ca38a6211cc5fe91ec38e1c18556fc38703ce..88bf74a8ebb2d2e4ae6ec9cbdd3076631cd8be3b 100644 (file)
@@ -1,20 +1,30 @@
 [collector]
+# configure your gps terminal with this SMS:
+# "server#<your_server_ip_or_fqdn>#4303#"
 port = 4303
 publishurl = ipc:///var/lib/gps303/collected
 listenurl = ipc:///var/lib/gps303/responses
+# comma-separated list of tracker protocols to accept
+protocols = gps303proto
 
 [wsgateway]
 port = 5049
 htmlfile = /var/lib/gps303/index.html
 
 [storage]
-dbfn = /var/lib/gps303/gps303.sqlite
+dbfn = /var/lib/gps303/trkloc.sqlite
 
 [lookaside]
-publishurl = ipc:///var/lib/gps303/locevt
+# "opencellid" and "googlemaps" can be here. Both require an access token,
+# though googlemaps is only online, while opencellid backend looks up a
+# local database, that can be updated once a week or once a month.
+backend = opencellid
 
 [opencellid]
 dbfn = /var/lib/opencellid/opencellid.sqlite
+# for testing: run `python -m http.server --directory <your_dir>` and use this:
+# downloadurl = http://localhost:8000/<your_mcc>.csv.gz
+# then the next two statements will be ignored
 downloadtoken = /var/lib/opencellid/opencellid.token
 downloadmcc = 262