Mercurial > lbo > hg > geohub
changeset 135:b740e572937a
gpsd: debug epx problem
author | Lewin Bormann <lbo@spheniscida.de> |
---|---|
date | Thu, 06 May 2021 12:24:14 +0200 |
parents | c7721d279d56 |
children | b276d33a364a |
files | examples/gpsd/gpsd.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/examples/gpsd/gpsd.py Thu May 06 12:17:17 2021 +0200 +++ b/examples/gpsd/gpsd.py Thu May 06 12:24:14 2021 +0200 @@ -16,6 +16,10 @@ print(*args, file=sys.stderr) def send_point(sess, args, info: dict[str, str]): + print(info) + if info['epx'] == 'n/a': + return None + geohub_templ = args.geohub + '/{CLIENT}/log?secret={SECRET}' geohub_url = geohub_templ.format(HOST=args.geohub_host, CLIENT=args.client, SECRET=args.secret, PROTOCOL=args.geohub_scheme) additional = '&lat={lat}&longitude={long}&s={spd}&time={ts}&unit=ms&accuracy={acc}&ele={ele}'.format(