[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
dbfn = /var/lib/gps303/gps303.sqlite
[lookaside]
-publishurl = ipc:///var/lib/gps303/locevt
+# "opencellid" is the only implemented backend for the time being
+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
def runserver(conf):
+ if conf.get("lookaside", "backend") != "opencellid":
+ raise NotImplementedError(
+ "Lookaside only implements opencellid backend"
+ )
zctx = zmq.Context()
zsub = zctx.socket(zmq.SUB)
zsub.connect(conf.get("collector", "publishurl"))